create skill tsx and update skill groups to use it. make things scrollable.
This commit is contained in:
1 parent
824ee6e1e8
commit
18298c35d4
13 files changed
+163
-436
No files matched your search
+2
-2
@@ -10,7 +10,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stats-and-skills-details-box {
|
.stats-and-skills-details-box {
|
||||||
width: 500px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.stats-and-skills-stats {
|
.stats-and-skills-stats {
|
||||||
@@ -18,7 +17,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stats-and-skills-skill-column {
|
.stats-and-skills-skill-column {
|
||||||
width: 500px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (width <= 1200px) {
|
@media screen and (width <= 1200px) {
|
||||||
@@ -38,4 +36,6 @@
|
|||||||
.stats-and-skills-skill-group {
|
.stats-and-skills-skill-group {
|
||||||
margin-left: 50px;
|
margin-left: 50px;
|
||||||
margin-right: 50px;
|
margin-right: 50px;
|
||||||
|
overflow-y: auto;
|
||||||
|
height: 85vh
|
||||||
}
|
}
|
||||||
@@ -68,8 +68,8 @@ export function Details() {
|
|||||||
<div className="cyber-card">
|
<div className="cyber-card">
|
||||||
<div className="cyber-card__body flex flex-col">
|
<div className="cyber-card__body flex flex-col">
|
||||||
<div className="flex">
|
<div className="flex">
|
||||||
<img style={{ height: "100px" }} src={`${baseUrl}/characters/collateral/portrait.jpg`}></img>
|
<img style={{ width: "100%" }} src={`${baseUrl}/characters/collateral/portrait.jpg`}></img>
|
||||||
<TechRole rank={dt.role_one_rank} fabrication={dt.fabrication_exp} upgrade={dt.upgrade_ex} field={dt.field_exp}/>
|
<TechRole rank={dt.role_one_rank} fabrication={dt.fabrication_exp} upgrade={dt.upgrade_exp} field={dt.field_exp}/>
|
||||||
<RockerRole rank={dt.role_two_rank} />
|
<RockerRole rank={dt.role_two_rank} />
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
+9
-10
@@ -5,7 +5,7 @@ import { Control } from "../skills/control";
|
|||||||
import { EducationTop, EducationBottom } from "../skills/education"
|
import { EducationTop, EducationBottom } from "../skills/education"
|
||||||
import { Fighting } from "../skills/fighting"
|
import { Fighting } from "../skills/fighting"
|
||||||
import { Performance } from "../skills/performance"
|
import { Performance } from "../skills/performance"
|
||||||
import { Ranged } from "../skills/ranged"
|
import { RangedTop, RangedBottom } from "../skills/ranged"
|
||||||
import { Social } from "../skills/social"
|
import { Social } from "../skills/social"
|
||||||
import { Technique } from "../skills/technique"
|
import { Technique } from "../skills/technique"
|
||||||
import { Details } from "../details/details"
|
import { Details } from "../details/details"
|
||||||
@@ -28,21 +28,19 @@ export default function Home() {
|
|||||||
<nav className="cyber-nav">
|
<nav className="cyber-nav">
|
||||||
<span className="cyber-nav__brand">Collateral</span>
|
<span className="cyber-nav__brand">Collateral</span>
|
||||||
<ul className="cyber-nav__links">
|
<ul className="cyber-nav__links">
|
||||||
<li><span className="cyber-nav__link">Stats and Skills</span></li>
|
<li><span className="cyber-nav__link cyber-nav__link--active">Stats and Skills</span></li>
|
||||||
<li><span className="cyber-nav__link">Stats and Skills</span></li>
|
<li><span className="cyber-nav__link">Cyber</span></li>
|
||||||
<li><span className="cyber-nav__link">Stats and Skills</span></li>
|
<li><span className="cyber-nav__link">Gear</span></li>
|
||||||
|
<li><span className="cyber-nav__link">Loadouts</span></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="stats-and-skills">
|
<div className="stats-and-skills">
|
||||||
<div className="stats-sand-skills-details-box">
|
<div className="stats-sand-skills-details-box">
|
||||||
<div>
|
<div style={{display: "flex", flexDirection: "row"}}>
|
||||||
<div>
|
|
||||||
<div className="stats-and-skills-details"><Details /></div>
|
<div className="stats-and-skills-details"><Details /></div>
|
||||||
<Health />
|
<div className="stats-and-skills-stats" style={{marginLeft: "20px"}}><Stats /></div>
|
||||||
</div>
|
|
||||||
<div className="stats-and-skills-stats"><Stats /></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -57,9 +55,10 @@ export default function Home() {
|
|||||||
<EducationBottom />
|
<EducationBottom />
|
||||||
<Fighting />
|
<Fighting />
|
||||||
<Performance />
|
<Performance />
|
||||||
<Ranged />
|
<RangedTop />
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-col stats-and-skills-skill-column">
|
<div className="flex-col stats-and-skills-skill-column">
|
||||||
|
<RangedBottom />
|
||||||
<Social />
|
<Social />
|
||||||
<Technique />
|
<Technique />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { useState, useEffect } from 'react'
|
import { useState, useEffect } from 'react'
|
||||||
|
import { SkillHeader, SkillRow } from './skill'
|
||||||
|
|
||||||
const baseUrl = typeof window !== 'undefined'
|
const baseUrl = typeof window !== 'undefined'
|
||||||
? window.location.origin
|
? window.location.origin
|
||||||
@@ -19,45 +20,13 @@ export function Awareness() {
|
|||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<table className="cyber-table">
|
<table className="cyber-table">
|
||||||
<thead>
|
<SkillHeader skillGroup="AWARENES SKILLS"/>
|
||||||
<tr>
|
|
||||||
<th style={{ width: "70%" }}>AWARENESS SKILLS</th>
|
|
||||||
<th style={{ width: "10%" }}>RANKS</th>
|
|
||||||
<th style={{ width: "10%" }}>STAT</th>
|
|
||||||
<th style={{ width: "10%" }}>BASE</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<SkillRow skillName="CONCENCTRATION" skillRank={skills.concentration} stat={stats.will} />
|
||||||
<td>CONCENTRATION</td>
|
<SkillRow skillName="CONCEAL/REVEAL" skillRank={skills.cro} stat={stats.int} />
|
||||||
<td>{skills.concentration}</td>
|
<SkillRow skillName="LIP READING" skillRank={skills.lipreading} stat={stats.int} />
|
||||||
<td>{stats.will}</td>
|
<SkillRow skillName="PERCEPTION" skillRank={skills.perception} stat={stats.int} />
|
||||||
<td>{stats.will + skills.concentration}</td>
|
<SkillRow skillName="TRACKING" skillRank={skills.tracking} stat={stats.int} />
|
||||||
</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>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
+8
-44
@@ -1,4 +1,5 @@
|
|||||||
import { useState, useEffect } from 'react'
|
import { useState, useEffect } from 'react'
|
||||||
|
import { SkillHeader, SkillRow } from './skill'
|
||||||
|
|
||||||
const baseUrl = typeof window !== 'undefined'
|
const baseUrl = typeof window !== 'undefined'
|
||||||
? window.location.origin
|
? window.location.origin
|
||||||
@@ -19,51 +20,14 @@ export function Body() {
|
|||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<table className="cyber-table">
|
<table className="cyber-table">
|
||||||
<thead>
|
<SkillHeader skillGroup="BODY SKILLS" />
|
||||||
<tr>
|
|
||||||
<th style={{ width: "70%" }}>BODY SKILL</th>
|
|
||||||
<th style={{ width: "10%" }}>RANKS</th>
|
|
||||||
<th style={{ width: "10%" }}>STAT</th>
|
|
||||||
<th style={{ width: "10%" }}>BASE</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<SkillRow skillName="ATHLETICS" skillRank={skills.athletics} stat={stats.dex} />
|
||||||
<td>ATHLETICS</td>
|
<SkillRow skillName="CONTOTION" skillRank={skills.contortion} stat={stats.dex} />
|
||||||
<td>{skills.athletics}</td>
|
<SkillRow skillName="DANCE" skillRank={skills.dance} stat={stats.dex} />
|
||||||
<td>{stats.dex}</td>
|
<SkillRow skillName="ENDURANCE" skillRank={skills.endurance} stat={stats.will} />
|
||||||
<td>{stats.dex + skills.athletics}</td>
|
<SkillRow skillName="RESIST T/D" skillRank={skills.stealth} stat={stats.will} />
|
||||||
</tr>
|
<SkillRow skillName="STEALTH" skillRank={skills.stealth} stat={stats.dex} />
|
||||||
<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>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
+6
-32
@@ -1,4 +1,5 @@
|
|||||||
import { useState, useEffect } from 'react'
|
import { useState, useEffect } from 'react'
|
||||||
|
import { SkillHeader, SkillRow } from './skill'
|
||||||
|
|
||||||
const baseUrl = typeof window !== 'undefined'
|
const baseUrl = typeof window !== 'undefined'
|
||||||
? window.location.origin
|
? window.location.origin
|
||||||
@@ -19,39 +20,12 @@ export function Control() {
|
|||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<table className="cyber-table">
|
<table className="cyber-table">
|
||||||
<thead>
|
<SkillHeader skillGroup="CONTROL SKILLS" />
|
||||||
<tr>
|
|
||||||
<th style={{ width: "70%" }}>CONTROL SKILLS</th>
|
|
||||||
<th style={{ width: "10%" }}>RANKS</th>
|
|
||||||
<th style={{ width: "10%" }}>STAT</th>
|
|
||||||
<th style={{ width: "10%" }}>BASE</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<SkillRow skillName="DRIVE LAND" skillRank={skills.driveland} stat={stats.dex} />
|
||||||
<td>DRIVE LAND VEHICLE</td>
|
<SkillRow skillName="PILOT AIR" skillRank={skills.pilotair} stat={stats.dex} />
|
||||||
<td>{skills.driveland}</td>
|
<SkillRow skillName="PILOT SEA" skillRank={skills.pilotsea} stat={stats.dex} />
|
||||||
<td>{stats.dex}</td>
|
<SkillRow skillName="RIDING" skillRank={skills.riding} stat={stats.dex} />
|
||||||
<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>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { useState, useEffect } from 'react'
|
import { useState, useEffect } from 'react'
|
||||||
|
import { SkillHeader, SkillRow } from './skill'
|
||||||
|
|
||||||
const baseUrl = typeof window !== 'undefined'
|
const baseUrl = typeof window !== 'undefined'
|
||||||
? window.location.origin
|
? window.location.origin
|
||||||
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env
|
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env
|
||||||
|
|
||||||
|
|
||||||
const st = await fetch(`${baseUrl}/characters/collateral/stats.json`)
|
const st = await fetch(`${baseUrl}/characters/collateral/stats.json`)
|
||||||
.then(r => r.json());
|
.then(r => r.json());
|
||||||
|
|
||||||
@@ -12,25 +12,6 @@ const sk = await
|
|||||||
fetch(`${baseUrl}/characters/collateral/skills.json`)
|
fetch(`${baseUrl}/characters/collateral/skills.json`)
|
||||||
.then(r => r.json());
|
.then(r => r.json());
|
||||||
|
|
||||||
function BaseVal({ skillRank, stat }) {
|
|
||||||
if (skillRank === "---") {
|
|
||||||
return <td>---</td>
|
|
||||||
} else {
|
|
||||||
return (<td>{skillRank + stat}</td>)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function SkillRow({ skillName, skillRank, stat }) {
|
|
||||||
return (
|
|
||||||
<tr>
|
|
||||||
<td>{skillName}</td>
|
|
||||||
<td>{skillRank}</td>
|
|
||||||
<td>{stat}</td>
|
|
||||||
<BaseVal skillRank={skillRank} stat={stat} />
|
|
||||||
</tr>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function EducationTopSkills({ stats, skills }) {
|
function EducationTopSkills({ stats, skills }) {
|
||||||
return (<>
|
return (<>
|
||||||
<SkillRow skillName="ACCOUNTING" skillRank={skills.accounting} stat={stats.int} />
|
<SkillRow skillName="ACCOUNTING" skillRank={skills.accounting} stat={stats.int} />
|
||||||
@@ -54,7 +35,7 @@ function EducationBottomSkills({ stats, skills }) {
|
|||||||
<SkillRow skillName="-- SPANISH" skillRank={skills.lang_spanish} 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="LIBRARY SEARCH" skillRank={skills.librarysearch} stat={stats.int} />
|
||||||
<SkillRow skillName="LOCAL EXPERT:" skillRank="---" stat="---" />
|
<SkillRow skillName="LOCAL EXPERT:" skillRank="---" stat="---" />
|
||||||
<SkillRow skillName="-- OLD COMBAT ZONE" skillRank={skills.localex_ocz} stat={stats.int} />
|
<SkillRow skillName="-- THE OCZ" skillRank={skills.localex_ocz} stat={stats.int} />
|
||||||
<SkillRow skillName="-- HOT ZONE" skillRank={skills.localex_hotzone} stat={stats.int} />
|
<SkillRow skillName="-- HOT ZONE" skillRank={skills.localex_hotzone} stat={stats.int} />
|
||||||
<SkillRow skillName="--" skillRank="---" stat="---" />
|
<SkillRow skillName="--" skillRank="---" stat="---" />
|
||||||
<SkillRow skillName="SCIENCE:" skillRank="---" stat="---" />
|
<SkillRow skillName="SCIENCE:" skillRank="---" stat="---" />
|
||||||
@@ -72,14 +53,7 @@ export function EducationTop() {
|
|||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<table className="cyber-table">
|
<table className="cyber-table">
|
||||||
<thead>
|
<SkillHeader skillGroup="EDUCATION SKILLS" />
|
||||||
<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>
|
<tbody>
|
||||||
<EducationTopSkills stats={stats} skills={skills} />
|
<EducationTopSkills stats={stats} skills={skills} />
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -95,14 +69,7 @@ export function EducationBottom() {
|
|||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<table className="cyber-table">
|
<table className="cyber-table">
|
||||||
<thead>
|
<SkillHeader skillGroup="EDUCATION SKILLS" />
|
||||||
<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>
|
<tbody>
|
||||||
<EducationBottomSkills stats={stats} skills={skills} />
|
<EducationBottomSkills stats={stats} skills={skills} />
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -119,14 +86,7 @@ export function Education() {
|
|||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<table className="cyber-table">
|
<table className="cyber-table">
|
||||||
<thead>
|
<SkillHeader skillGroup="EDUCATION SKILLS" />
|
||||||
<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>
|
<tbody>
|
||||||
<EducationTopSkills stats={stats} skills={skills} />
|
<EducationTopSkills stats={stats} skills={skills} />
|
||||||
<EducationBottomSkills stats={stats} skills={skills} />
|
<EducationBottomSkills stats={stats} skills={skills} />
|
||||||
|
|||||||
+6
-32
@@ -1,4 +1,5 @@
|
|||||||
import { useState, useEffect } from 'react'
|
import { useState, useEffect } from 'react'
|
||||||
|
import { SkillHeader, SkillRow } from './skill'
|
||||||
|
|
||||||
const baseUrl = typeof window !== 'undefined'
|
const baseUrl = typeof window !== 'undefined'
|
||||||
? window.location.origin
|
? window.location.origin
|
||||||
@@ -19,39 +20,12 @@ export function Fighting() {
|
|||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<table className="cyber-table">
|
<table className="cyber-table">
|
||||||
<thead>
|
<SkillHeader skillGroup="FIGHTING SKILLS" />
|
||||||
<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>
|
<tbody>
|
||||||
<tr>
|
<SkillRow skillName="BRAWLING" skillRank={skills.brawling} stat={stats.dex} />
|
||||||
<td>BRAWLING</td>
|
<SkillRow skillName="EVASION" skillRank={skills.evasion} stat={stats.dex} />
|
||||||
<td>{skills.brawling}</td>
|
<SkillRow skillName="MARTIAL ARTS" skillRank={0} stat={4} />
|
||||||
<td>{stats.dex}</td>
|
<SkillRow skillName="MELEE WEAPONS" skillRank={skills.meleeweapons} stat={stats.dex} />
|
||||||
<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>MARTIAL ARTS</td>
|
|
||||||
<td>0</td>
|
|
||||||
<td>4</td>
|
|
||||||
<td>4</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>MELEE WEAPONS</td>
|
|
||||||
<td>{skills.meleeweapons}</td>
|
|
||||||
<td>{stats.dex}</td>
|
|
||||||
<td>{stats.dex + skills.meleeweapons}</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { useState, useEffect } from 'react'
|
import { useState, useEffect } from 'react'
|
||||||
|
import { SkillHeader, SkillRow } from './skill'
|
||||||
|
|
||||||
const baseUrl = typeof window !== 'undefined'
|
const baseUrl = typeof window !== 'undefined'
|
||||||
? window.location.origin
|
? window.location.origin
|
||||||
@@ -19,39 +20,12 @@ export function Performance() {
|
|||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<table className="cyber-table">
|
<table className="cyber-table">
|
||||||
<thead>
|
<SkillHeader skillGroup="PERFORMANCE SKILLS" />
|
||||||
<tr>
|
|
||||||
<th style={{ width: "70%" }}>PERFORMANCE SKILLS</th>
|
|
||||||
<th style={{ width: "10%" }}>RANKS</th>
|
|
||||||
<th style={{ width: "10%" }}>STAT</th>
|
|
||||||
<th style={{ width: "10%" }}>BASE</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<SkillRow skillName="ACTING" skillRank={skills.acting} stat={stats.cool} />
|
||||||
<td>ACTING</td>
|
<SkillRow skillName="PLAY INSTRUMENT:" skillRank="---" stat="---" />
|
||||||
<td>{skills.acting}</td>
|
<SkillRow skillName="--" skillRank="---" stat="---" />
|
||||||
<td>{stats.cool}</td>
|
<SkillRow skillName="--" skillRank="---" stat="---" />
|
||||||
<td>{stats.cool + skills.acting}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>PLAY INSTRUMENT</td>
|
|
||||||
<td>---</td>
|
|
||||||
<td>---</td>
|
|
||||||
<td>---</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>---</td>
|
|
||||||
<td>---</td>
|
|
||||||
<td>---</td>
|
|
||||||
<td>---</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>---</td>
|
|
||||||
<td>---</td>
|
|
||||||
<td>---</td>
|
|
||||||
<td>---</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
+53
-39
@@ -1,5 +1,5 @@
|
|||||||
import { useState, useEffect } from 'react'
|
import { useState, useEffect } from 'react'
|
||||||
|
import { SkillHeader, SkillRow } from './skill'
|
||||||
const baseUrl = typeof window !== 'undefined'
|
const baseUrl = typeof window !== 'undefined'
|
||||||
? window.location.origin
|
? window.location.origin
|
||||||
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env
|
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env
|
||||||
@@ -11,6 +11,55 @@ const sk = await
|
|||||||
fetch(`${baseUrl}/characters/collateral/skills.json`)
|
fetch(`${baseUrl}/characters/collateral/skills.json`)
|
||||||
.then(r => r.json());
|
.then(r => r.json());
|
||||||
|
|
||||||
|
function RangedTopSkills({ stats, skills }) {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<SkillRow skillName="ARCHERY" skillRank={skills.archery} stat={stats.ref} />
|
||||||
|
<SkillRow skillName="AUTOFIRE" skillRank={skills.autofire} stat={stats.ref} />
|
||||||
|
<SkillRow skillName="HANDGUNS" skillRank={skills.handgun} stat={stats.ref} />
|
||||||
|
</>)
|
||||||
|
}
|
||||||
|
|
||||||
|
function RangedBottomSkills({ stats, skills }) {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<SkillRow skillName="HEAVY WEP" skillRank={skills.archery} stat={stats.ref} />
|
||||||
|
<SkillRow skillName="SHOULDER ARMS" skillRank={skills.autofire} stat={stats.ref} />
|
||||||
|
</>)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function RangedTop() {
|
||||||
|
const [stats] = useState(st)
|
||||||
|
const [skills] = useState(sk)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<main>
|
||||||
|
<table className="cyber-table">
|
||||||
|
<SkillHeader skillGroup="RANGED SKILLS" />
|
||||||
|
<tbody>
|
||||||
|
<RangedTopSkills stats={stats} skills={skills} />
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</main>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function RangedBottom() {
|
||||||
|
const [stats] = useState(st)
|
||||||
|
const [skills] = useState(sk)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<main>
|
||||||
|
<table className="cyber-table">
|
||||||
|
<SkillHeader skillGroup="RANGED SKILLS" />
|
||||||
|
<tbody>
|
||||||
|
<RangedBottomSkills stats={stats} skills={skills} />
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</main>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
export function Ranged() {
|
export function Ranged() {
|
||||||
|
|
||||||
const [stats, setStats] = useState(st)
|
const [stats, setStats] = useState(st)
|
||||||
@@ -19,45 +68,10 @@ export function Ranged() {
|
|||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<table className="cyber-table">
|
<table className="cyber-table">
|
||||||
<thead>
|
<SkillHeader skillGroup="RANGED SKILLS" />
|
||||||
<tr>
|
|
||||||
<th style={{ width: "70%" }}>RANGE SKILLS</th>
|
|
||||||
<th style={{ width: "10%" }}>RANKS</th>
|
|
||||||
<th style={{ width: "10%" }}>STAT</th>
|
|
||||||
<th style={{ width: "10%" }}>BASE</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<RangedTopSkills stats={stats} skills={skills} />
|
||||||
<td>ARCHERY</td>
|
<RangedBottomSkills stats={stats} skills={skills} />
|
||||||
<td>{skills.archery}</td>
|
|
||||||
<td>{stats.ref}</td>
|
|
||||||
<td>{stats.ref + skills.archery}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>AUTOFIRE</td>
|
|
||||||
<td>{skills.autofire}</td>
|
|
||||||
<td>{stats.ref}</td>
|
|
||||||
<td>{stats.ref + skills.autofire}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>HANDGUN</td>
|
|
||||||
<td>{skills.handgun}</td>
|
|
||||||
<td>{stats.ref}</td>
|
|
||||||
<td>{stats.ref + skills.handgun}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>HEAVY WEAPONS</td>
|
|
||||||
<td>{skills.heavyweapons}</td>
|
|
||||||
<td>{stats.dex}</td>
|
|
||||||
<td>{stats.dex + skills.meleeweapons}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>SHOULDER ARMS</td>
|
|
||||||
<td>{skills.heavyweapons}</td>
|
|
||||||
<td>{stats.ref}</td>
|
|
||||||
<td>{stats.ref + skills.meleeweapons}</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
function BaseVal({ skillRank, stat }) {
|
||||||
|
if (skillRank === "---") {
|
||||||
|
return <td>---</td>
|
||||||
|
} else {
|
||||||
|
return (<td>{skillRank + stat}</td>)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export function SkillRow({ skillName, skillRank, stat }) {
|
||||||
|
return (
|
||||||
|
<tr>
|
||||||
|
<td>{skillName}</td>
|
||||||
|
<td>{skillRank}</td>
|
||||||
|
<td>{stat}</td>
|
||||||
|
<BaseVal skillRank={skillRank} stat={stat} />
|
||||||
|
</tr>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function SkillHeader({skillGroup}) {
|
||||||
|
return (
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style={{ width: "70%" }}>{skillGroup}</th>
|
||||||
|
<th style={{ width: "10%" }}>RANKS</th>
|
||||||
|
<th style={{ width: "10%" }}>STAT</th>
|
||||||
|
<th style={{ width: "10%" }}>BASE</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
)
|
||||||
|
}
|
||||||
+11
-62
@@ -1,4 +1,5 @@
|
|||||||
import { useState, useEffect } from 'react'
|
import { useState, useEffect } from 'react'
|
||||||
|
import { SkillHeader, SkillRow } from './skill'
|
||||||
|
|
||||||
const baseUrl = typeof window !== 'undefined'
|
const baseUrl = typeof window !== 'undefined'
|
||||||
? window.location.origin
|
? window.location.origin
|
||||||
@@ -19,69 +20,17 @@ export function Social() {
|
|||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<table className="cyber-table">
|
<table className="cyber-table">
|
||||||
<thead>
|
<SkillHeader skillGroup="SOCIAL SKILLS" />
|
||||||
<tr>
|
|
||||||
<th style={{ width: "70%" }}>SOCIAL SKILLS</th>
|
|
||||||
<th style={{ width: "10%" }}>RANKS</th>
|
|
||||||
<th style={{ width: "10%" }}>STAT</th>
|
|
||||||
<th style={{ width: "10%" }}>BASE</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<SkillRow skillName="BRIBERY" skillRank={skills.bribery} stat={stats.cool} />
|
||||||
<td>BRIBERY</td>
|
<SkillRow skillName="CONVERSATION" skillRank={skills.conversation} stat={stats.emp} />
|
||||||
<td>{skills.bribery}</td>
|
<SkillRow skillName="HUMAN PERCEPTION" skillRank={skills.humper} stat={stats.emp} />
|
||||||
<td>{stats.cool}</td>
|
<SkillRow skillName="INTEROGATION" skillRank={skills.interogation} stat={stats.cool} />
|
||||||
<td>{stats.cool + skills.bribery}</td>
|
<SkillRow skillName="PERSUASION" skillRank={skills.persuasion} stat={stats.cool} />
|
||||||
</tr>
|
<SkillRow skillName="PERSONAL GROOM" skillRank={skills.personalgrooming} stat={stats.cool} />
|
||||||
<tr>
|
<SkillRow skillName="STREETWISE" skillRank={skills.streetwise} stat={stats.cool} />
|
||||||
<td>CONVERSATION</td>
|
<SkillRow skillName="TRADING" skillRank={skills.trading} stat={stats.cool} />
|
||||||
<td>{skills.conversation}</td>
|
<SkillRow skillName="WARDROBE/STYLE" skillRank={skills.wardrobe} stat={stats.cool} />
|
||||||
<td>{stats.emp}</td>
|
|
||||||
<td>{stats.emp + skills.conversation}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>HUMAN PERCEPTION</td>
|
|
||||||
<td>{skills.humper}</td>
|
|
||||||
<td>{stats.emp}</td>
|
|
||||||
<td>{stats.emp + skills.humper}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>INTERROGATION</td>
|
|
||||||
<td>{skills.interogation}</td>
|
|
||||||
<td>{stats.cool}</td>
|
|
||||||
<td>{stats.cool + skills.interogation}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>PERSUASION</td>
|
|
||||||
<td>{skills.persuasion}</td>
|
|
||||||
<td>{stats.cool}</td>
|
|
||||||
<td>{stats.cool + skills.persuasion}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>PERSONAL GROOMING</td>
|
|
||||||
<td>{skills.heavyweapons}</td>
|
|
||||||
<td>{stats.cool}</td>
|
|
||||||
<td>{stats.cool + skills.heavyweapons}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>STREETWISE</td>
|
|
||||||
<td>{skills.streetwise}</td>
|
|
||||||
<td>{stats.cool}</td>
|
|
||||||
<td>{stats.cool + skills.streetwise}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>TRADING</td>
|
|
||||||
<td>{skills.trading}</td>
|
|
||||||
<td>{stats.cool}</td>
|
|
||||||
<td>{stats.cool + skills.trading}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>WARDROBE AND STYLE</td>
|
|
||||||
<td>{skills.wardrobe}</td>
|
|
||||||
<td>{stats.cool}</td>
|
|
||||||
<td>{stats.cool + skills.wardrobe}</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
+17
-98
@@ -1,4 +1,5 @@
|
|||||||
import { useState, useEffect } from 'react'
|
import { useState, useEffect } from 'react'
|
||||||
|
import { SkillHeader, SkillRow } from './skill'
|
||||||
|
|
||||||
const baseUrl = typeof window !== 'undefined'
|
const baseUrl = typeof window !== 'undefined'
|
||||||
? window.location.origin
|
? window.location.origin
|
||||||
@@ -19,105 +20,23 @@ export function Technique() {
|
|||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<table className="cyber-table">
|
<table className="cyber-table">
|
||||||
<thead>
|
<SkillHeader skillGroup="TECH SKILLS"/>
|
||||||
<tr>
|
|
||||||
<th style={{ width: "70%" }}>TECHNIQUE SKILLS</th>
|
|
||||||
<th style={{ width: "10%" }}>RANKS</th>
|
|
||||||
<th style={{ width: "10%" }}>STAT</th>
|
|
||||||
<th style={{ width: "10%" }}>BASE</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<SkillRow skillName="AV Tech" skillRank={skills.avt} stat={stats.tech} />
|
||||||
<td>AIR VEHICLE TECH</td>
|
<SkillRow skillName="BASIC TECH" skillRank={skills.basic} stat={stats.tech} />
|
||||||
<td>{skills.avt}</td>
|
<SkillRow skillName="CYBER TECH" skillRank={skills.cyber} stat={stats.tech} />
|
||||||
<td>{stats.tech}</td>
|
<SkillRow skillName="DEMOLITIONS" skillRank={skills.demo} stat={stats.tech} />
|
||||||
<td>{stats.tech + skills.avt}</td>
|
<SkillRow skillName="ELEC/SEC" skillRank={skills.elecsec} stat={stats.tech} />
|
||||||
</tr>
|
<SkillRow skillName="FIRST AID" skillRank={skills.firstaid} stat={stats.tech} />
|
||||||
<tr>
|
<SkillRow skillName="FORGERY" skillRank={skills.forgery} stat={stats.tech} />
|
||||||
<td>BASIC TECH</td>
|
<SkillRow skillName="LV TECH" skillRank={skills.lvt} stat={stats.tech} />
|
||||||
<td>{skills.basic}</td>
|
<SkillRow skillName="P/D/S" skillRank={skills.pds} stat={stats.tech} />
|
||||||
<td>{stats.tech}</td>
|
<SkillRow skillName="PARAMEDIC" skillRank={skills.paramedic} stat={stats.tech} />
|
||||||
<td>{stats.tech + skills.basic}</td>
|
<SkillRow skillName="PHOTO/FILM" skillRank={skills.photofilm} stat={stats.tech} />
|
||||||
</tr>
|
<SkillRow skillName="PICK LOCK" skillRank={skills.picklock} stat={stats.tech} />
|
||||||
<tr>
|
<SkillRow skillName="PICK POCKET" skillRank={skills.pickpocket} stat={stats.tech} />
|
||||||
<td>CYBER TECH</td>
|
<SkillRow skillName="SV TECH" skillRank={skills.svt} stat={stats.tech} />
|
||||||
<td>{skills.cyber}</td>
|
<SkillRow skillName="WEAPONS TECH" skillRank={skills.weapons} stat={stats.tech} />
|
||||||
<td>{stats.tech}</td>
|
|
||||||
<td>{stats.tech + skills.cyber}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>DEMOLITIONS</td>
|
|
||||||
<td>{skills.demo}</td>
|
|
||||||
<td>{stats.tech}</td>
|
|
||||||
<td>{stats.tech + skills.demo}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>ELEC / SEC TECH</td>
|
|
||||||
<td>{skills.elecsec}</td>
|
|
||||||
<td>{stats.tech}</td>
|
|
||||||
<td>{stats.tech + skills.elecsec}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>FIRST AID</td>
|
|
||||||
<td>{skills.firstaid}</td>
|
|
||||||
<td>{stats.tech}</td>
|
|
||||||
<td>{stats.tech + skills.firstaid}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>FORGERY</td>
|
|
||||||
<td>{skills.forgery}</td>
|
|
||||||
<td>{stats.tech}</td>
|
|
||||||
<td>{stats.tech + skills.forgery}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>LAND VEHICLE TECH</td>
|
|
||||||
<td>{skills.lvt}</td>
|
|
||||||
<td>{stats.tech}</td>
|
|
||||||
<td>{stats.tech + skills.lvt}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>PAINT / DRAW / SCULPT</td>
|
|
||||||
<td>{skills.pds}</td>
|
|
||||||
<td>{stats.tech}</td>
|
|
||||||
<td>{stats.tech + skills.pds}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>PARAMEDIC</td>
|
|
||||||
<td>{skills.paramedic}</td>
|
|
||||||
<td>{stats.tech}</td>
|
|
||||||
<td>{stats.tech + skills.paramedic}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>PHOTOGRAPHY / FILM</td>
|
|
||||||
<td>{skills.photofilm}</td>
|
|
||||||
<td>{stats.tech}</td>
|
|
||||||
<td>{stats.tech + skills.photofilm}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>PICK LOCK</td>
|
|
||||||
<td>{skills.picklock}</td>
|
|
||||||
<td>{stats.tech}</td>
|
|
||||||
<td>{stats.tech + skills.picklock}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>PICK POCKET</td>
|
|
||||||
<td>{skills.pickpocket}</td>
|
|
||||||
<td>{stats.tech}</td>
|
|
||||||
<td>{stats.tech + skills.pickpocket}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>SEA VEHICLE TECH</td>
|
|
||||||
<td>{skills.svt}</td>
|
|
||||||
<td>{stats.tech}</td>
|
|
||||||
<td>{stats.tech + skills.svt}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>WEAPONS TECH</td>
|
|
||||||
<td>{skills.weapons}</td>
|
|
||||||
<td>{stats.tech}</td>
|
|
||||||
<td>{stats.tech + skills.weapons}</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in new issue
Block a user