split education skills into top / bottom halves.
This commit is contained in:
1 parent
06fe33c450
commit
9387bcdf21
2 files changed
+81
-22
No files matched your search
+78
-20
@@ -31,6 +31,82 @@ function SkillRow({ skillName, skillRank, stat }) {
|
||||
);
|
||||
}
|
||||
|
||||
function EducationTopSkills({ stats, skills }) {
|
||||
return (<>
|
||||
<SkillRow skillName="ACCOUNTING" skillRank={skills.accounting} stat={stats.int} />
|
||||
<SkillRow skillName="ANIMAL HANDLING" skillRank={skills.animalhandling} stat={stats.int} />
|
||||
<SkillRow skillName="BUREAUCRAY" skillRank={skills.bureaucracy} stat={stats.int} />
|
||||
<SkillRow skillName="BUSINESS" skillRank={skills.business} stat={stats.int} />
|
||||
<SkillRow skillName="COMPOSITION" skillRank={skills.composition} stat={stats.int} />
|
||||
<SkillRow skillName="CRIMINOLOGY" skillRank={skills.criminology} stat={stats.int} />
|
||||
<SkillRow skillName="CRYPTOGRAPHY" skillRank={skills.cryptography} stat={stats.int} />
|
||||
<SkillRow skillName="DEDUCTION" skillRank={skills.deduction} stat={stats.int} />
|
||||
<SkillRow skillName="EDUCATION" skillRank={skills.education} stat={stats.int} />
|
||||
<SkillRow skillName="GAMBLE" skillRank={skills.gamble} stat={stats.int} />
|
||||
</>)
|
||||
}
|
||||
|
||||
function EducationBottomSkills({ stats, skills }) {
|
||||
return (<>
|
||||
<SkillRow skillName="LANGUAGE:" skillRank="---" stat="---" />
|
||||
<SkillRow skillName="-- STREETSLANG" skillRank={skills.lang_streetslang} stat={stats.int} />
|
||||
<SkillRow skillName="-- ENGLISH" skillRank={skills.lang_english} stat={stats.int} />
|
||||
<SkillRow skillName="-- SPANISH" skillRank={skills.lang_spanish} stat={stats.int} />
|
||||
<SkillRow skillName="LIBRARY SEARCH" skillRank={skills.librarysearch} stat={stats.int} />
|
||||
<SkillRow skillName="LOCAL EXPERT:" skillRank="---" stat="---" />
|
||||
<SkillRow skillName="-- OLD COMBAT ZONE" skillRank={skills.localex_ocz} stat={stats.int} />
|
||||
<SkillRow skillName="-- HOT ZONE" skillRank={skills.localex_hotzone} stat={stats.int} />
|
||||
<SkillRow skillName="TACTICS" skillRank={skills.tactics} stat={stats.int} />
|
||||
<SkillRow skillName="WILDERNESS SURVIVAL" skillRank={skills.wildernesssurvival} stat={stats.int} />
|
||||
</>)
|
||||
}
|
||||
|
||||
export function EducationTop() {
|
||||
const [stats] = useState(st)
|
||||
const [skills] = useState(sk)
|
||||
|
||||
return (
|
||||
<main>
|
||||
<table className="cyber-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style={{ width: "70%" }}>EDUCATION SKILLS</th>
|
||||
<th style={{ width: "10%" }}>RANKS</th>
|
||||
<th style={{ width: "10%" }}>STAT</th>
|
||||
<th style={{ width: "10%" }}>BASE</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<EducationTopSkills stats={stats} skills={skills} />
|
||||
</tbody>
|
||||
</table>
|
||||
</main>
|
||||
)
|
||||
}
|
||||
|
||||
export function EducationBottom() {
|
||||
const [stats] = useState(st)
|
||||
const [skills] = useState(sk)
|
||||
|
||||
return (
|
||||
<main>
|
||||
<table className="cyber-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style={{ width: "70%" }}>EDUCATION SKILLS</th>
|
||||
<th style={{ width: "10%" }}>RANKS</th>
|
||||
<th style={{ width: "10%" }}>STAT</th>
|
||||
<th style={{ width: "10%" }}>BASE</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<EducationBottomSkills stats={stats} skills={skills} />
|
||||
</tbody>
|
||||
</table>
|
||||
</main>
|
||||
)
|
||||
}
|
||||
|
||||
export function Education() {
|
||||
|
||||
const [stats] = useState(st)
|
||||
@@ -48,26 +124,8 @@ export function Education() {
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<SkillRow skillName="ACCOUNTING" skillRank={skills.accounting} stat={stats.int} />
|
||||
<SkillRow skillName="ANIMAL HANDLING" skillRank={skills.animalhandling} stat={stats.int} />
|
||||
<SkillRow skillName="BUREAUCRAY" skillRank={skills.bureaucracy} stat={stats.int} />
|
||||
<SkillRow skillName="BUSINESS" skillRank={skills.business} stat={stats.int} />
|
||||
<SkillRow skillName="COMPOSITION" skillRank={skills.composition} stat={stats.int} />
|
||||
<SkillRow skillName="CRIMINOLOGY" skillRank={skills.criminology} stat={stats.int} />
|
||||
<SkillRow skillName="CRYPTOGRAPHY" skillRank={skills.cryptography} stat={stats.int} />
|
||||
<SkillRow skillName="DEDUCTION" skillRank={skills.deduction} stat={stats.int} />
|
||||
<SkillRow skillName="EDUCATION" skillRank={skills.education} stat={stats.int} />
|
||||
<SkillRow skillName="GAMBLE" skillRank={skills.gamble} stat={stats.int} />
|
||||
<SkillRow skillName="LANGUAGE:" skillRank="---" stat="---" />
|
||||
<SkillRow skillName="-- STREETSLANG" skillRank={skills.lang_streetslang} stat={stats.int} />
|
||||
<SkillRow skillName="-- ENGLISH" skillRank={skills.lang_english} stat={stats.int} />
|
||||
<SkillRow skillName="-- SPANISH" skillRank={skills.lang_spanish} stat={stats.int} />
|
||||
<SkillRow skillName="LIBRARY SEARCH" skillRank={skills.librarysearch} stat={stats.int} />
|
||||
<SkillRow skillName="LOCAL EXPERT:" skillRank="---" stat="---" />
|
||||
<SkillRow skillName="-- OLD COMBAT ZONE" skillRank={skills.localex_ocz} stat={stats.int} />
|
||||
<SkillRow skillName="-- HOT ZONE" skillRank={skills.localex_hotzone} stat={stats.int} />
|
||||
<SkillRow skillName="TACTICS" skillRank={skills.tactics} stat={stats.int} />
|
||||
<SkillRow skillName="WILDERNESS SURVIVAL" skillRank={skills.wildernesssurvival} stat={stats.int} />
|
||||
<EducationTopSkills stats={stats} skills={skills} />
|
||||
<EducationBottomSkills stats={stats} skills={skills} />
|
||||
</tbody>
|
||||
</table>
|
||||
</main>
|
||||
|
||||
Reference in new issue
Block a user