Add skill for aware, body and control.

This commit is contained in:
iamBadgers committed 2026-10-20 17:19:48 -07:00
1 parent ae3e2f0d86
commit 15bb37b248
7 files changed
+254 -14

No files matched your search

+69
View File
@@ -0,0 +1,69 @@
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 Awareness() {
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>AWARENESS SKILLS</th>
<th>RANKS</th>
<th>STAT</th>
<th>BASE</th>
</tr>
</thead>
<tbody>
<tr>
<td>CONCENTRATION</td>
<td>{skills.concentration}</td>
<td>{stats.will}</td>
<td>{stats.will + skills.concentration}</td>
</tr>
<tr>
<td>CONCEAL / REVEAL OBJECT</td>
<td>{skills.cro}</td>
<td>{stats.int}</td>
<td>{stats.int + skills.cro}</td>
</tr>
<tr>
<td>LIP READING</td>
<td>{skills.lipreading}</td>
<td>{stats.int}</td>
<td>{stats.int + skills.lipreading}</td>
</tr>
<tr>
<td>PERCEPTION</td>
<td>{skills.perception}</td>
<td>{stats.int}</td>
<td>{stats.int + skills.perception}</td>
</tr>
<tr>
<td>TRACKING</td>
<td>{skills.tracking}</td>
<td>{stats.int}</td>
<td>{stats.int + skills.tracking}</td>
</tr>
</tbody>
</table>
</main>
)
}
View File
Whitespace-only changes.
+75
View File
@@ -0,0 +1,75 @@
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 Body() {
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>BODY SKILL</th>
<th>RANKS</th>
<th>STAT</th>
<th>BASE</th>
</tr>
</thead>
<tbody>
<tr>
<td>ATHLETICS</td>
<td>{skills.athletics}</td>
<td>{stats.dex}</td>
<td>{stats.dex + skills.athletics}</td>
</tr>
<tr>
<td>CONTORTION</td>
<td>{skills.contortion}</td>
<td>{stats.dex}</td>
<td>{stats.dex + skills.contortion}</td>
</tr>
<tr>
<td>DANCE</td>
<td>{skills.dance}</td>
<td>{stats.dex}</td>
<td>{stats.dex + skills.dance}</td>
</tr>
<tr>
<td>ENDURANCE</td>
<td>{skills.endurance}</td>
<td>{stats.will}</td>
<td>{stats.will + skills.endurance}</td>
</tr>
<tr>
<td>RESIST TORTURE / DRUGS</td>
<td>{skills.rtd}</td>
<td>{stats.will}</td>
<td>{stats.will + skills.rtd}</td>
</tr>
<tr>
<td>STEALTH</td>
<td>{skills.stealth}</td>
<td>{stats.dex}</td>
<td>{stats.dex + skills.stealth}</td>
</tr>
</tbody>
</table>
</main>
)
}
+63
View File
@@ -0,0 +1,63 @@
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 Control() {
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>CONTROL SKILLS</th>
<th>RANKS</th>
<th>STAT</th>
<th>BASE</th>
</tr>
</thead>
<tbody>
<tr>
<td>DRIVE LAND VEHICLE</td>
<td>{skills.driveland}</td>
<td>{stats.dex}</td>
<td>{stats.dex + skills.driveland}</td>
</tr>
<tr>
<td>PILOT AIR VEHICLE</td>
<td>{skills.pilotair}</td>
<td>{stats.dex}</td>
<td>{stats.dex + skills.pilotair}</td>
</tr>
<tr>
<td>PILOT SEA VEHICLE</td>
<td>{skills.lipreading}</td>
<td>{stats.dex}</td>
<td>{stats.dex + skills.pilotsea}</td>
</tr>
<tr>
<td>RIDING</td>
<td>{skills.riding}</td>
<td>{stats.dex}</td>
<td>{stats.dex + skills.riding}</td>
</tr>
</tbody>
</table>
</main>
)
}