add fighting skills and update table spacings. add portrait.

This commit is contained in:
iamBadgers committed 2026-10-20 17:19:48 -07:00
1 parent b3d524133e
commit c355e55d67
8 files changed
+79 -17

No files matched your search

+2
View File
@@ -4,6 +4,7 @@ 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" import { Education } from "../skills/education"
import { Fighting } from "../skills/fighting"
export function meta({ }: Route.MetaArgs) { export function meta({ }: Route.MetaArgs) {
return [ return [
@@ -20,6 +21,7 @@ export default function Home() {
<Body /> <Body />
<Control /> <Control />
<Education /> <Education />
<Fighting />
</main> </main>
); );
+4 -4
View File
@@ -25,10 +25,10 @@ export function Awareness() {
<table className="cyber-table"> <table className="cyber-table">
<thead> <thead>
<tr> <tr>
<th>AWARENESS SKILLS</th> <th style={{ width: "70%" }}>AWARENESS SKILLS</th>
<th>RANKS</th> <th style={{ width: "10%" }}>RANKS</th>
<th>STAT</th> <th style={{ width: "10%" }}>STAT</th>
<th>BASE</th> <th style={{ width: "10%" }}>BASE</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
+4 -4
View File
@@ -25,10 +25,10 @@ export function Body() {
<table className="cyber-table"> <table className="cyber-table">
<thead> <thead>
<tr> <tr>
<th>BODY SKILL</th> <th style={{ width: "70%" }}>BODY SKILL</th>
<th>RANKS</th> <th style={{ width: "10%" }}>RANKS</th>
<th>STAT</th> <th style={{ width: "10%" }}>STAT</th>
<th>BASE</th> <th style={{ width: "10%" }}>BASE</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
+4 -4
View File
@@ -25,10 +25,10 @@ export function Control() {
<table className="cyber-table"> <table className="cyber-table">
<thead> <thead>
<tr> <tr>
<th>CONTROL SKILLS</th> <th style={{ width: "70%" }}>CONTROL SKILLS</th>
<th>RANKS</th> <th style={{ width: "10%" }}>RANKS</th>
<th>STAT</th> <th style={{ width: "10%" }}>STAT</th>
<th>BASE</th> <th style={{ width: "10%" }}>BASE</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
+4 -4
View File
@@ -25,10 +25,10 @@ export function Education() {
<table className="cyber-table"> <table className="cyber-table">
<thead> <thead>
<tr> <tr>
<th>EDUCATION SKILLS</th> <th style={{ width: "70%" }}>EDUCATION SKILLS</th>
<th>RANKS</th> <th style={{ width: "10%" }}>RANKS</th>
<th>STAT</th> <th style={{ width: "10%" }}>STAT</th>
<th>BASE</th> <th style={{ width: "10%" }}>BASE</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
+57
View File
@@ -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 (
<main>
<table className="cyber-table">
<thead>
<tr>
<th style={{ width: "70%" }}>FIGHTING SKILLS</th>
<th style={{ width: "10%" }}>RANKS</th>
<th style={{ width: "10%" }}>STAT</th>
<th style={{ width: "10%" }}>BASE</th>
</tr>
</thead>
<tbody>
<tr>
<td>BRAWLING</td>
<td>{skills.brawling}</td>
<td>{stats.dex}</td>
<td>{stats.dex + skills.brawling}</td>
</tr>
<tr>
<td>EVASION</td>
<td>{skills.evasion}</td>
<td>{stats.dex}</td>
<td>{stats.dex + skills.evasion}</td>
</tr>
<tr>
<td>MELEE WEAPONS</td>
<td>{skills.meleeweapons}</td>
<td>{stats.dex}</td>
<td>{stats.dex + skills.meleeweapons}</td>
</tr>
</tbody>
</table>
</main>
)
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 373 KiB

+4 -1
View File
@@ -31,5 +31,8 @@
"localex_ocz": 0, "localex_ocz": 0,
"localex_hotzone": 0, "localex_hotzone": 0,
"tactics": 0, "tactics": 0,
"wildernesssearch": 0 "wildernesssearch": 0,
"brawling": 2,
"evasion": 2,
"meleeweapons": 0
} }