diff --git a/app/routes/home.tsx b/app/routes/home.tsx index 586f1a0..5d2511f 100644 --- a/app/routes/home.tsx +++ b/app/routes/home.tsx @@ -4,6 +4,7 @@ import { Awareness } from "../skills/awareness"; import { Body } from "../skills/body"; import { Control } from "../skills/control"; import { Education } from "../skills/education" +import { Fighting } from "../skills/fighting" export function meta({ }: Route.MetaArgs) { return [ @@ -20,6 +21,7 @@ export default function Home() { + ); diff --git a/app/skills/awareness.tsx b/app/skills/awareness.tsx index 8791cf4..3ffdef2 100644 --- a/app/skills/awareness.tsx +++ b/app/skills/awareness.tsx @@ -25,10 +25,10 @@ export function Awareness() { - - - - + + + + diff --git a/app/skills/body.tsx b/app/skills/body.tsx index 55ed925..3072503 100644 --- a/app/skills/body.tsx +++ b/app/skills/body.tsx @@ -25,10 +25,10 @@ export function Body() {
AWARENESS SKILLSRANKSSTATBASEAWARENESS SKILLSRANKSSTATBASE
- - - - + + + + diff --git a/app/skills/control.tsx b/app/skills/control.tsx index b5d0551..4ef8cc8 100644 --- a/app/skills/control.tsx +++ b/app/skills/control.tsx @@ -25,10 +25,10 @@ export function Control() {
BODY SKILLRANKSSTATBASEBODY SKILLRANKSSTATBASE
- - - - + + + + diff --git a/app/skills/education.tsx b/app/skills/education.tsx index f954d50..21ab49a 100644 --- a/app/skills/education.tsx +++ b/app/skills/education.tsx @@ -25,10 +25,10 @@ export function Education() {
CONTROL SKILLSRANKSSTATBASECONTROL SKILLSRANKSSTATBASE
- - - - + + + + diff --git a/app/skills/fighting.tsx b/app/skills/fighting.tsx new file mode 100644 index 0000000..f7d02dd --- /dev/null +++ b/app/skills/fighting.tsx @@ -0,0 +1,57 @@ +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 Fighting() { + + 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 ( +
+
EDUCATION SKILLSRANKSSTATBASEEDUCATION SKILLSRANKSSTATBASE
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FIGHTING SKILLSRANKSSTATBASE
BRAWLING{skills.brawling}{stats.dex}{stats.dex + skills.brawling}
EVASION{skills.evasion}{stats.dex}{stats.dex + skills.evasion}
MELEE WEAPONS{skills.meleeweapons}{stats.dex}{stats.dex + skills.meleeweapons}
+ + ) +} diff --git a/public/characters/collateral/portrait.jpg b/public/characters/collateral/portrait.jpg new file mode 100644 index 0000000..a097b4e Binary files /dev/null and b/public/characters/collateral/portrait.jpg differ diff --git a/public/characters/collateral/skills.json b/public/characters/collateral/skills.json index d36e536..f80de35 100644 --- a/public/characters/collateral/skills.json +++ b/public/characters/collateral/skills.json @@ -31,5 +31,8 @@ "localex_ocz": 0, "localex_hotzone": 0, "tactics": 0, - "wildernesssearch": 0 + "wildernesssearch": 0, + "brawling": 2, + "evasion": 2, + "meleeweapons": 0 }