add education skills
This commit is contained in:
1 parent
15bb37b248
commit
b3d524133e
3 files changed
+180
-1
No files matched your search
@@ -3,6 +3,7 @@ import { Welcome } from "../welcome/welcome";
|
|||||||
import { Awareness } from "../skills/awareness";
|
import { Awareness } from "../skills/awareness";
|
||||||
import { Body } from "../skills/body";
|
import { Body } from "../skills/body";
|
||||||
import { Control } from "../skills/control";
|
import { Control } from "../skills/control";
|
||||||
|
import { Education } from "../skills/education"
|
||||||
|
|
||||||
export function meta({ }: Route.MetaArgs) {
|
export function meta({ }: Route.MetaArgs) {
|
||||||
return [
|
return [
|
||||||
@@ -18,6 +19,7 @@ export default function Home() {
|
|||||||
<Awareness />
|
<Awareness />
|
||||||
<Body />
|
<Body />
|
||||||
<Control />
|
<Control />
|
||||||
|
<Education />
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,159 @@
|
|||||||
|
import { useState, useEffect } from 'react'
|
||||||
|
|
||||||
|
const baseUrl = typeof window !== 'undefined'
|
||||||
|
? window.location.origin
|
||||||
|
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env
|
||||||
|
|
||||||
|
export function Education() {
|
||||||
|
|
||||||
|
const [stats, setStats] = useState([])
|
||||||
|
const [skills, setSkills] = useState([])
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
fetch(`${baseUrl}/characters/collateral/stats.json`)
|
||||||
|
.then(r => r.json())
|
||||||
|
.then(j => setStats(j))
|
||||||
|
|
||||||
|
fetch(`${baseUrl}/characters/collateral/skills.json`)
|
||||||
|
.then(r => r.json())
|
||||||
|
.then(j => setSkills(j))
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
return (
|
||||||
|
<main>
|
||||||
|
<table className="cyber-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>EDUCATION SKILLS</th>
|
||||||
|
<th>RANKS</th>
|
||||||
|
<th>STAT</th>
|
||||||
|
<th>BASE</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>ACCOUNTING</td>
|
||||||
|
<td>{skills.accounting}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.accounting}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>ANIMAL HANDLING</td>
|
||||||
|
<td>{skills.animalhandling}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.animalhandling}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>BUREAUCRAY</td>
|
||||||
|
<td>{skills.bureaucracy}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.bureaucracy}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>BUSINESS</td>
|
||||||
|
<td>{skills.business}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.business}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>COMPOSITION</td>
|
||||||
|
<td>{skills.composition}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.composition}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>CRIMINOLOGY</td>
|
||||||
|
<td>{skills.criminology}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.criminology}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>CRYPTOGRAPHY</td>
|
||||||
|
<td>{skills.cryptography}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.cryptography}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>DEDUCTION</td>
|
||||||
|
<td>{skills.deduction}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.deduction}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>EDUCATION</td>
|
||||||
|
<td>{skills.education}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.education}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>GAMBLE</td>
|
||||||
|
<td>{skills.gamble}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.gamble}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>LANGUAGE:</td>
|
||||||
|
<td>--</td>
|
||||||
|
<td>--</td>
|
||||||
|
<td>--</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>-- STREETSLANG</td>
|
||||||
|
<td>{skills.lang_streetslang}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.lang_streetslang}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>-- ENGLISH</td>
|
||||||
|
<td>{skills.lang_english}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.lang_english}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>-- SPANISH</td>
|
||||||
|
<td>{skills.lang_spanish}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.lang_spanish}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>LIBRARY SEARCH</td>
|
||||||
|
<td>{skills.librarysearch}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.librarysearch}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>LOCAL EXPERT:</td>
|
||||||
|
<td>--</td>
|
||||||
|
<td>--</td>
|
||||||
|
<td>--</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>-- OLD COMBAT ZONE</td>
|
||||||
|
<td>{skills.localex_ocz}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.localex_ocz}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>-- HOT ZONE</td>
|
||||||
|
<td>{skills.localex_hotzone}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.localex_hotzone}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>TACTICS</td>
|
||||||
|
<td>{skills.tactics}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.tactics}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>WILDERNESS SEARCH</td>
|
||||||
|
<td>{skills.wildernesssearch}</td>
|
||||||
|
<td>{stats.int}</td>
|
||||||
|
<td>{stats.int + skills.wildernesssearch}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</main>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -13,5 +13,23 @@
|
|||||||
"driveland": 0,
|
"driveland": 0,
|
||||||
"pilotair": 0,
|
"pilotair": 0,
|
||||||
"pilotsea": 0,
|
"pilotsea": 0,
|
||||||
"riding": 0
|
"riding": 0,
|
||||||
|
"accounting": 0,
|
||||||
|
"animalhandling": 0,
|
||||||
|
"bureaucracy": 0,
|
||||||
|
"business": 0,
|
||||||
|
"composition": 0,
|
||||||
|
"criminology": 0,
|
||||||
|
"cryptography": 0,
|
||||||
|
"deduction": 0,
|
||||||
|
"education": 2,
|
||||||
|
"gamble": 0,
|
||||||
|
"lang_streetslang": 2,
|
||||||
|
"lang_english": 4,
|
||||||
|
"lang_spanish": 2,
|
||||||
|
"librarysearch": 0,
|
||||||
|
"localex_ocz": 0,
|
||||||
|
"localex_hotzone": 0,
|
||||||
|
"tactics": 0,
|
||||||
|
"wildernesssearch": 0
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user