Compare commits

..
12 Commits
30 changed files with 1585 additions and 1335 deletions

No files matched your search

+25 -4
View File
@@ -1,8 +1,11 @@
@import "tailwindcss";
@import "cybercore-css"; @import "cybercore-css";
.stats-and-skills { :root {
}
.stats-and-skills {
margin-top: 20px;
display: flex;
} }
.stats-and-skills-details { .stats-and-skills-details {
@@ -10,7 +13,6 @@
} }
.stats-and-skills-details-box { .stats-and-skills-details-box {
width: 500px;
} }
.stats-and-skills-stats { .stats-and-skills-stats {
@@ -18,5 +20,24 @@
} }
.stats-and-skills-skill-column { .stats-and-skills-skill-column {
width: 500px; }
@media screen and (width <= 1200px) {
.stats-and-skills-skill-group {
display: flex;
flex-direction: column;
}
}
@media screen and (width > 1200px) {
.stats-and-skills-skill-group {
display: flex;
flex-direction: row;
}
}
.stats-and-skills-skill-group {
margin-left: 50px;
margin-right: 50px;
overflow-y: auto;
} }
+82 -27
View File
@@ -1,41 +1,96 @@
const baseUrl = typeof window !== 'undefined' import { Health } from "./health";
? window.location.origin
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env
const st = await fetch(`${baseUrl}/characters/collateral/stats.json`) const baseUrl =
.then(r => r.json()); typeof window !== "undefined"
? window.location.origin
: process.env.VITE_VERCEL_URL || "http://localhost:5173"; // Fallback for your server env
const sk = await const st = await fetch(`${baseUrl}/characters/collateral/stats.json`).then(
fetch(`${baseUrl}/characters/collateral/skills.json`) (r) => r.json(),
.then(r => r.json()); );
const dt = await const sk = await fetch(`${baseUrl}/characters/collateral/skills.json`).then(
fetch(`${baseUrl}/characters/collateral/details.json`) (r) => r.json(),
.then(r => r.json()); );
const dt = await fetch(`${baseUrl}/characters/collateral/details.json`).then(
(r) => r.json(),
);
function RockerRole({ rank }) {
const topDiv = {
display: "flex",
flexDirection: "column",
marginTop: "10px",
paddingTop: "10px",
borderTop: "1px solid var(--color-border-default)",
};
if (rank > 0) {
return (
<main>
<div style={topDiv}>
<h5 className="cyber-h5">Rocker {rank}</h5>
</div>
</main>
);
}
return <main />;
}
function TechRole({ rank, fabrication, upgrade, field }) {
const topDiv = {
display: "flex",
flexDirection: "column",
marginTop: "10px",
paddingTop: "10px",
borderTop: "1px solid var(--color-border-default)",
};
if (rank > 0) {
return (
<main>
<div style={topDiv}>
<h5 className="cyber-h5">TECH {rank}</h5>
<div>-- Fabrication Expertiese: {fabrication}</div>
<div>-- Upgrade Expertiese: {upgrade}</div>
<div>-- Field Expertiese: {field}</div>
</div>
</main>
);
}
return <main />;
}
export function Details() { export function Details() {
return ( return (
<main> <main style={{ display: "flex", flexDirection: "column" }}>
<div className="cyber-card"> <div className="cyber-card">
<div className="cyber-card__body flex flex-col"> <div className="cyber-card__body flex flex-col">
<h4 className="cyber-h5">{dt.name}</h4>
<div className="flex"> <div className="flex">
<img style={{ height: "100px" }} src={`${baseUrl}/characters/collateral/portrait.jpg`}></img> <img
<div className="flex-col"> style={{ width: "100%" }}
<h5>{dt.role_one} {dt.role_one_rank}</h5> src={`${baseUrl}/characters/collateral/portrait.jpg`}
<h5>{dt.role_two} {dt.role_two_rank}</h5> ></img>
<h5>{dt.role_three} {dt.role_three_rank}</h5> <TechRole
</div> rank={dt.role_one_rank}
fabrication={dt.fabrication_exp}
upgrade={dt.upgrade_exp}
field={dt.field_exp}
/>
<RockerRole rank={dt.role_two_rank} />
</div> </div>
<br /> <br />
<h4 className="cyber-h5">Notes</h4>
<div className="flex flex-col">
<span>Fabrication Expertiese: {dt.fabrication_exp}</span>
<span>Upgrade Expertiese: {dt.upgrade_exp}</span>
<span>Field Expertiese: {dt.field_exp}</span>
</div>
</div> </div>
</div> </div>
</main >
) <span style={{ flexGrow: "1" }} />
<div className="cyber-card" style={{ marginTop: "20px", flexGrow: 1 }}>
<div className="cyber-card__body">
<Health />
</div>
</div>
</main>
);
} }
+25 -2
View File
@@ -1,7 +1,30 @@
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
const st = await fetch(`${baseUrl}/characters/collateral/stats.json`).then(
(r) => r.json(),
);
const sk = await fetch(`${baseUrl}/characters/collateral/skills.json`).then(
(r) => r.json(),
);
export function Health() { export function Health() {
const [stats, setStats] = useState(st);
const [skills, setSkills] = useState(sk);
return ( return (
<main> <main>
<span>HEALTH</span> <div style={{ display: "flex", flexDirection: "column" }}>
<span>
Health: {stats.hp} / {stats.maxhp}
</span>
<span>Seriously Wounded: {stats.seriouslywounded}</span>
</div>
</main> </main>
) );
} }
+1 -1
View File
@@ -5,5 +5,5 @@ export function Humanity() {
<span>30</span> <span>30</span>
<span>44</span> <span>44</span>
</main> </main>
) );
} }
@@ -1,20 +1,21 @@
import { useState, useEffect } from 'react' import { useState, useEffect } from "react";
const baseUrl = typeof window !== 'undefined' const baseUrl =
? window.location.origin typeof window !== "undefined"
: process.env.VITE_VERCEL_URL || 'http://localhost:5173'; // Fallback for your server env ? window.location.origin
: 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(
.then(r => r.json()); (r) => r.json(),
);
const sk = await const sk = await fetch(`${baseUrl}/characters/collateral/skills.json`).then(
fetch(`${baseUrl}/characters/collateral/skills.json`) (r) => r.json(),
.then(r => r.json()); );
export function Welcome() {
export function Stats() {
const [stats, setStats] = useState(st); const [stats, setStats] = useState(st);
const [skills, setSkills] = useState(sk) const [skills, setSkills] = useState(sk);
return ( return (
<main> <main>
@@ -52,7 +53,9 @@ export function Welcome() {
</tr> </tr>
<tr> <tr>
<td>LUCK</td> <td>LUCK</td>
<td>{stats.luck}/{stats.luck}</td> <td>
{stats.luck}/{stats.luck}
</td>
</tr> </tr>
<tr> <tr>
<td>MOVE</td> <td>MOVE</td>
@@ -64,11 +67,13 @@ export function Welcome() {
</tr> </tr>
<tr> <tr>
<td>EMP</td> <td>EMP</td>
<td>{stats.emp}/{stats.emp}</td> <td>
{stats.emp}/{stats.emp}
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</main > </main>
); );
} }
@@ -131,5 +136,4 @@ const resources = [
</svg> </svg>
), ),
}, },
]; ];
+119
View File
@@ -0,0 +1,119 @@
import type { ReactElement } from "react";
const baseUrl =
typeof window !== "undefined"
? window.location.origin
: process.env.VITE_VERCEL_URL || "http://localhost:5173"; // Fallback for your server env
const wandr = await fetch(
`${baseUrl}/characters/collateral/weaponsandarmor.json`,
).then((r) => r.json());
type DisplayArmor = {
displayheadarmor: string;
displayheadarmorsp: number;
dislpayheadarmorpenalty: number;
displaybodyarmor: number;
displaybodyarmorsp: number;
displaybodyarmorpenalty: number;
};
type DisplayWeapon = {
name: string;
features: Array<string>;
magazine: number;
damage: string;
rof: number;
};
function Armor({ armor }: { armor: DisplayArmor }): ReactElement {
return (
<table className="cyber-table" style={{ fontSize: "10px" }}>
<tbody>
<tr style={{ lineHeight: 1 }}>
<td>
<b>Head: {armor.displayheadarmor}</b>
</td>
<td>SP: {armor.displayheadarmorsp}</td>
<td>AP: {armor.dislpayheadarmorpenalty}</td>
</tr>
<tr style={{ lineHeight: 1 }}>
<td>
<b>Body: {armor.displaybodyarmor}</b>
</td>
<td>SP: {armor.displaybodyarmorsp}</td>
<td>AP: {armor.displaybodyarmorpenalty}</td>
</tr>
<tr style={{ lineHeight: 1 }}>
<td>
<b>Shield:</b>
</td>
<td>HP:</td>
<td>AP:</td>
</tr>
</tbody>
</table>
);
}
function Weapons({ weapons }: { weapons: Array<DisplayWeapon> }): ReactElement {
const rows: ReactElement[] = weapons.map((weapon, index) => {
return (
<tr key={index}>
<td>
<b>{weapon.name}</b>
</td>
<td>MAG: {weapon.magazine}</td>
<td>SMG: {weapon.damage}</td>
<td>ROF: {weapon.rof}</td>
<td>{weapon.features.join(" | ")}</td>
</tr>
);
});
return (
<table className="cyber-table" style={{ fontSize: "10px" }}>
<tbody>{rows}</tbody>
</table>
);
}
const card = {
lineHeight: "1",
paddingTop: "20px",
paddingLeft: "15px",
paddingRight: "15px",
paddingBottom: "10px",
fontWeight: "10px",
};
const header = {
marginBottom: "5px",
paddingBottom: "15px",
};
export function WeaponsAndArmor() {
return (
<div
style={{
display: "flex",
flexDirection: "row",
justifyContent: "space-between",
height: "230px",
}}
>
<div className="cyber-card" style={card}>
<div className="cyber-card__header" style={header}>
<div>Armor</div>
</div>
<Armor armor={wandr} />
</div>
<div className="cyber-card" style={card}>
<div className="cyber-card__header" style={header}>
<div>Weapons</div>
</div>
<Weapons weapons={wandr.displayweapons} />
</div>
</div>
);
}
+27
View File
@@ -36,7 +36,34 @@ export function Layout({ children }: { children: React.ReactNode }) {
<Meta /> <Meta />
<Links /> <Links />
</head> </head>
<body> <body>
<nav className="cyber-nav">
<span className="cyber-nav__brand">Collateral</span>
<ul className="cyber-nav__links">
<li>
<a href="/" className="cyber-nav__link cyber-nav__link--active">
Stats and Skills
</a>
</li>
<li>
<a href="/cyber" className="cyber-nav__link">
Cyber
</a>
</li>
<li>
<a
href="/gear"
className="cyber-nav__link cyber-nav__link--active"
>
Gear
</a>
</li>
<li>
<a className="cyber-nav__link">Loadouts</a>
</li>
</ul>
</nav>
{children} {children}
<ScrollRestoration /> <ScrollRestoration />
<Scripts /> <Scripts />
+6 -2
View File
@@ -1,3 +1,7 @@
import { type RouteConfig, index } from "@react-router/dev/routes"; import { type RouteConfig, index, route } from "@react-router/dev/routes";
export default [index("routes/home.tsx")] satisfies RouteConfig; export default [
index("routes/statsandskills.tsx"),
route("gear", "routes/gear.tsx"),
route("cyber", "routes/cyberware.tsx"),
] satisfies RouteConfig;
+147
View File
@@ -0,0 +1,147 @@
import { useState, useEffect } from "react";
import type { Route } from "./+types/home";
export function meta({}: Route.MetaArgs) {
return [
{ title: "Collateral - Cyberware" },
{ name: "description", content: "Stats and Skills" },
];
}
const baseUrl =
typeof window !== "undefined"
? window.location.origin
: process.env.VITE_VERCEL_URL || "http://localhost:5173"; // Fallback for your server env
const c = await fetch(`${baseUrl}/characters/collateral/cyberware.json`).then(
(r) => r.json(),
);
type CyberBodyData = {
neural: FoundationData;
audio: FoundationData;
lefteye: FoundationData;
righteye: FoundationData;
leftarm: FoundationData;
rightarm: FoundationData;
leftleg: FoundationData;
rightleg: FoundationData;
internal: CyberData[];
external: CyberData[];
borgware: CyberData[];
};
type FoundationData = {
name: string;
slots: number;
upgraded: boolean;
hl: number;
contents: CyberData[];
};
type CyberData = {
name: string;
description: string;
hl: number;
};
function FoundationHeader(): ReactElement {
return (
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
);
}
function FoundationRow({
cyber,
}: {
cyber: CyberData | undefined;
}): ReactElement {
if (!cyber) {
return (
<tr>
<td>--</td>
<td>--</td>
</tr>
);
}
const upgrade = !cyber.upgraded ? (
<></>
) : (
<tr>
<td colspan="2">
{cyber.upgraded.name}: {cyber.upgraded.description}
</td>
</tr>
);
return (
<>
<tr>
<td>{cyber.name}</td>
<td>{cyber.description}</td>
</tr>
</>
);
}
function Foundation({
foundation,
}: {
foundation: FoundationData;
}): ReactElement {
const rows: ReactElement[] = Array(foundation.slots);
for (let i = 0; i < foundation.slots; i++) {
rows[i] = <FoundationRow key={i} cyber={foundation.contents[i]} />;
}
return (
<>
<div>{foundation.name}</div>
<table className="cyber-table">
<FoundationHeader />
<tbody>{rows}</tbody>
</table>
</>
);
}
const rowStyle = {
display: "flex",
flexDirection: "column",
width: "25%",
};
export default function Cyberware() {
const [cyber, setCyber] = useState(c);
return (
<div style={{ display: "flex", flexDirection: "row" }}>
<div style={rowStyle}>
<Foundation foundation={cyber.lefteye} />
<Foundation foundation={cyber.leftarm} />
<Foundation foundation={cyber.leftleg} />
</div>
<div style={rowStyle}>
<Foundation foundation={cyber.neural} />
<Foundation foundation={cyber.audio} />
</div>
<div style={rowStyle}>
<Foundation foundation={cyber.righteye} />
<Foundation foundation={cyber.rightarm} />
<Foundation foundation={cyber.rightleg} />
</div>
<div style={rowStyle}>
<Foundation foundation={cyber.internal} />
<Foundation foundation={cyber.external} />
<Foundation foundation={cyber.borgware} />
</div>
</div>
);
}
+135
View File
@@ -0,0 +1,135 @@
import { useState, useEffect } from "react";
import type { Route } from "./+types/home";
export function meta({}: Route.MetaArgs) {
return [
{ title: "Collateral - Gear" },
{ name: "description", content: "Gear" },
];
}
const baseUrl =
typeof window !== "undefined"
? window.location.origin
: process.env.VITE_VERCEL_URL || "http://localhost:5173"; // Fallback for your server env
const g = await fetch(`${baseUrl}/characters/collateral/gear.json`).then((r) =>
r.json(),
);
type AmmunitionData = {
caliber: string;
type: string;
count: number;
};
type GearData = {
name: string;
description: string;
count: number;
contents: GearData[];
};
function AmmunitionRow({ ammo }: { ammo: AmunitionData }) {
return (
<tr>
<td>{ammo.caliber}</td>
<td>{ammo.type}</td>
<td>{ammo.count}x</td>
</tr>
);
}
function AmmunitionHeader() {
return (
<thead>
<tr>
<th>Caliber</th>
<th>Type</th>
<th>Count</th>
</tr>
</thead>
);
}
function Ammunition({ ammo }: { ammo: AmmunitionData[] }) {
const ammoRows: ReactElement[] = ammo.map((entry, index) => (
<AmmunitionRow key={index} ammo={entry} />
));
return (
<table className="cyber-table">
<AmmunitionHeader />
<tbody>{ammoRows}</tbody>
</table>
);
}
function InventoryHeader(): ReactElement {
return (
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Count</th>
</tr>
</thead>
);
}
function InventoryWithDepth(name: string, depth: number): string {
if (depth === 0) {
return name;
}
return "|" + "-".repeat(depth - 1) + "> " + name;
}
function InventoryRow({
gear,
depth,
}: {
gear: GearData;
depth: number;
}): ReactElement {
const contents = gear.contents
? gear.contents.map((entry, index) => (
<InventoryRow gear={entry} key={index} depth={depth + 1} />
))
: [];
return (
<>
<tr>
<td>{InventoryWithDepth(gear.name, depth)}</td>
<td>{InventoryWithDepth(gear.description, depth)}</td>
<td>{gear.count}x</td>
</tr>
{contents}
</>
);
}
function Inventory({ gear }: { gear: GearData[] }) {
const inventoryRows = gear.map((entry, index) => (
<InventoryRow key={index} gear={entry} depth={0} />
));
return (
<table className="cyber-table">
<InventoryHeader />
<tbody>{inventoryRows}</tbody>
</table>
);
}
export default function Gear() {
const [gear] = useState(g);
return (
<main>
<Ammunition ammo={gear.ammo} />
<Inventory gear={gear.gear} />
</main>
);
}
-67
View File
@@ -1,67 +0,0 @@
import type { Route } from "./+types/home";
import { Welcome } from "../welcome/welcome";
import { Awareness } from "../skills/awareness";
import { Body } from "../skills/body";
import { Control } from "../skills/control";
import { EducationTop, EducationBottom } from "../skills/education"
import { Fighting } from "../skills/fighting"
import { Performance } from "../skills/performance"
import { Ranged } from "../skills/ranged"
import { Social } from "../skills/social"
import { Technique } from "../skills/technique"
import { Details } from "../details/details"
import { Humanity } from "../details/humanity"
import { Health } from "../details/health"
export function meta({ }: Route.MetaArgs) {
return [
{ title: "New React Router App" },
{ name: "description", content: "Welcome to React Router!" },
];
}
export default function Home() {
return (
<main>
<nav className="cyber-nav">
<a className="cyber-nav__brand">Collateral</a>
<ul className="cyber-nav__links">
<li><a className="cyber-nav__link cyber-nav__link--active">Stats and Skills</a></li>
<li><a className="cyber-nav__link">Cyberware</a></li>
<li><a className="cyber-nav__link">Gear</a></li>
<li><a className="cyber-nav__link">Cuddles</a></li>
<li><a className="cyber-nav__link"><i>SKIN</i></a></li>
<li><a className="cyber-nav__link">Loadouts</a></li>
</ul>
</nav>
<div className="flex stats-and-skills">
<div className="flex-col stats-sand-skills-details-box">
<div className="flex">
<div className="stats-and-skills-details"><Details /></div>
<div className="stats-and-skills-stats"><Welcome /></div>
</div>
<Humanity />
<Health />
</div>
<div className="flex-col stats-and-skills-skill-column">
<Awareness />
<Body />
<Control />
<EducationTop />
</div>
<div className="flex-col stats-and-skills-skill-column">
<EducationBottom />
<Fighting />
<Performance />
<Ranged />
</div>
<div className="flex-col stats-and-skills-skill-column">
<Social />
<Technique />
</div>
</div>
</main>
);
}
View File
Whitespace-only changes.
+80
View File
@@ -0,0 +1,80 @@
import type { Route } from "./+types/home";
import { Awareness } from "../skills/awareness";
import { Body } from "../skills/body";
import { Control } from "../skills/control";
import { EducationTop, EducationBottom } from "../skills/education";
import { Fighting } from "../skills/fighting";
import { Performance } from "../skills/performance";
import { RangedTop, RangedBottom } from "../skills/ranged";
import { Social } from "../skills/social";
import { Technique } from "../skills/technique";
import { Details } from "../details/details";
import { Stats } from "../details/stats";
import { WeaponsAndArmor } from "../details/weaponsandarmor";
export function meta({}: Route.MetaArgs) {
return [
{ title: "Collateral - Stats and Skills" },
{ name: "description", content: "Stats and Skills" },
];
}
function SkillTable() {
return (
<div style={{ display: "flex", flexDirection: "row" }}>
<div style={{ flexGrow: 1 }}>
<Awareness />
<Body />
<Control />
<EducationTop />
</div>
<div style={{ flexGrow: 1 }}>
<EducationBottom />
<Fighting />
<Performance />
<RangedTop />
</div>
<div style={{ flexGrow: 1 }}>
<RangedBottom />
<Social />
<Technique />
</div>
</div>
);
}
export default function StatsAndSkills() {
return (
<main style={{ display: "flex", flexDirection: "column", height: "100vh" }}>
<div style={{ position: "relative", height: "100%", margin: "10px" }}>
<div
style={{
display: "flex",
flexDirection: "row",
justifyContent: "space-evenly",
position: "absolute",
height: "100%",
width: "100%",
}}
>
<div style={{ width: "400px", height: "100%" }}>
<Details />
</div>
<div style={{ overflow: "auto" }}>
<Stats />
</div>
<div style={{ display: "flex", flexDirection: "column" }}>
<div style={{ overflow: "auto" }}>
<SkillTable />
</div>
<div>
<WeaponsAndArmor />
</div>
</div>
</div>
</div>
</main>
);
}
+41 -51
View File
@@ -1,65 +1,55 @@
import { useState, useEffect } from 'react' import { useState, useEffect } from "react";
import { SkillHeader, SkillRow } from "./skill";
const baseUrl = typeof window !== 'undefined' const baseUrl =
? window.location.origin typeof window !== "undefined"
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env ? window.location.origin
: 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(
.then(r => r.json()); (r) => r.json(),
);
const sk = await const sk = await fetch(`${baseUrl}/characters/collateral/skills.json`).then(
fetch(`${baseUrl}/characters/collateral/skills.json`) (r) => r.json(),
.then(r => r.json()); );
export function Awareness() { export function Awareness() {
const [stats, setStats] = useState(st);
const [stats, setStats] = useState(st) const [skills, setSkills] = useState(sk);
const [skills, setSkills] = useState(sk)
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
<td>CONCENTRATION</td> skillName="CONCENCTRATION"
<td>{skills.concentration}</td> skillRank={skills.concentration}
<td>{stats.will}</td> stat={stats.will}
<td>{stats.will + skills.concentration}</td> />
</tr> <SkillRow
<tr> skillName="CONCEAL/REVEAL"
<td>CONCEAL / REVEAL OBJECT</td> skillRank={skills.cro}
<td>{skills.cro}</td> stat={stats.int}
<td>{stats.int}</td> />
<td>{stats.int + skills.cro}</td> <SkillRow
</tr> skillName="LIP READING"
<tr> skillRank={skills.lipreading}
<td>LIP READING</td> stat={stats.int}
<td>{skills.lipreading}</td> />
<td>{stats.int}</td> <SkillRow
<td>{stats.int + skills.lipreading}</td> skillName="PERCEPTION"
</tr> skillRank={skills.perception}
<tr> stat={stats.int}
<td>PERCEPTION</td> />
<td>{skills.perception}</td> <SkillRow
<td>{stats.int}</td> skillName="TRACKING"
<td>{stats.int + skills.perception}</td> skillRank={skills.tracking}
</tr> stat={stats.int}
<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>
) );
} }
+46 -57
View File
@@ -1,71 +1,60 @@
import { useState, useEffect } from 'react' import { useState, useEffect } from "react";
import { SkillHeader, SkillRow } from "./skill";
const baseUrl = typeof window !== 'undefined' const baseUrl =
? window.location.origin typeof window !== "undefined"
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env ? window.location.origin
: 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(
.then(r => r.json()); (r) => r.json(),
);
const sk = await const sk = await fetch(`${baseUrl}/characters/collateral/skills.json`).then(
fetch(`${baseUrl}/characters/collateral/skills.json`) (r) => r.json(),
.then(r => r.json()); );
export function Body() { export function Body() {
const [stats, setStats] = useState(st);
const [stats, setStats] = useState(st) const [skills, setSkills] = useState(sk);
const [skills, setSkills] = useState(sk)
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
<td>ATHLETICS</td> skillName="ATHLETICS"
<td>{skills.athletics}</td> skillRank={skills.athletics}
<td>{stats.dex}</td> stat={stats.dex}
<td>{stats.dex + skills.athletics}</td> />
</tr> <SkillRow
<tr> skillName="CONTOTION"
<td>CONTORTION</td> skillRank={skills.contortion}
<td>{skills.contortion}</td> stat={stats.dex}
<td>{stats.dex}</td> />
<td>{stats.dex + skills.contortion}</td> <SkillRow
</tr> skillName="DANCE"
<tr> skillRank={skills.dance}
<td>DANCE</td> stat={stats.dex}
<td>{skills.dance}</td> />
<td>{stats.dex}</td> <SkillRow
<td>{stats.dex + skills.dance}</td> skillName="ENDURANCE"
</tr> skillRank={skills.endurance}
<tr> stat={stats.will}
<td>ENDURANCE</td> />
<td>{skills.endurance}</td> <SkillRow
<td>{stats.will}</td> skillName="RESIST T/D"
<td>{stats.will + skills.endurance}</td> skillRank={skills.stealth}
</tr> stat={stats.will}
<tr> />
<td>RESIST TORTURE / DRUGS</td> <SkillRow
<td>{skills.rtd}</td> skillName="STEALTH"
<td>{stats.will}</td> skillRank={skills.stealth}
<td>{stats.will + skills.rtd}</td> stat={stats.dex}
</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>
) );
} }
+36 -45
View File
@@ -1,59 +1,50 @@
import { useState, useEffect } from 'react' import { useState, useEffect } from "react";
import { SkillHeader, SkillRow } from "./skill";
const baseUrl = typeof window !== 'undefined' const baseUrl =
? window.location.origin typeof window !== "undefined"
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env ? window.location.origin
: 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(
.then(r => r.json()); (r) => r.json(),
);
const sk = await const sk = await fetch(`${baseUrl}/characters/collateral/skills.json`).then(
fetch(`${baseUrl}/characters/collateral/skills.json`) (r) => r.json(),
.then(r => r.json()); );
export function Control() { export function Control() {
const [stats, setStats] = useState(st);
const [stats, setStats] = useState(st) const [skills, setSkills] = useState(sk);
const [skills, setSkills] = useState(sk)
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
<td>DRIVE LAND VEHICLE</td> skillName="DRIVE LAND"
<td>{skills.driveland}</td> skillRank={skills.driveland}
<td>{stats.dex}</td> stat={stats.dex}
<td>{stats.dex + skills.driveland}</td> />
</tr> <SkillRow
<tr> skillName="PILOT AIR"
<td>PILOT AIR VEHICLE</td> skillRank={skills.pilotair}
<td>{skills.pilotair}</td> stat={stats.dex}
<td>{stats.dex}</td> />
<td>{stats.dex + skills.pilotair}</td> <SkillRow
</tr> skillName="PILOT SEA"
<tr> skillRank={skills.pilotsea}
<td>PILOT SEA VEHICLE</td> stat={stats.dex}
<td>{skills.lipreading}</td> />
<td>{stats.dex}</td> <SkillRow
<td>{stats.dex + skills.pilotsea}</td> skillName="RIDING"
</tr> skillRank={skills.riding}
<tr> stat={stats.dex}
<td>RIDING</td> />
<td>{skills.riding}</td>
<td>{stats.dex}</td>
<td>{stats.dex + skills.riding}</td>
</tr>
</tbody> </tbody>
</table> </table>
</main> </main>
) );
} }
+123 -91
View File
@@ -1,138 +1,170 @@
import { useState, useEffect } from 'react' import { useState, useEffect } from "react";
import { SkillHeader, SkillRow } from "./skill";
const baseUrl = typeof window !== 'undefined' const baseUrl =
? window.location.origin typeof window !== "undefined"
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env ? window.location.origin
: process.env.VITE_VERCEL_URL || "http://localhost:5173"; // Fallback for your server env
const st = await fetch(`${baseUrl}/characters/collateral/stats.json`).then(
(r) => r.json(),
);
const st = await fetch(`${baseUrl}/characters/collateral/stats.json`) const sk = await fetch(`${baseUrl}/characters/collateral/skills.json`).then(
.then(r => r.json()); (r) => r.json(),
);
const sk = await function EducationTopSkills({ stats, skills }) {
fetch(`${baseUrl}/characters/collateral/skills.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 ( return (
<tr> <>
<td>{skillName}</td> <SkillRow
<td>{skillRank}</td> skillName="ACCOUNTING"
<td>{stat}</td> skillRank={skills.accounting}
<BaseVal skillRank={skillRank} stat={stat} /> stat={stats.int}
</tr> />
<SkillRow
skillName="ANIMAL HANDLING"
skillRank={skills.animalhandling}
stat={stats.int}
/>
<SkillRow
skillName="BUREAUCRAY"
skillRank={skills.bureaucracy}
stat={stats.int}
/>
<SkillRow
skillName="BUSINESS"
skillRank={skills.business}
stat={stats.int}
/>
<SkillRow
skillName="COMPOSITION"
skillRank={skills.composition}
stat={stats.int}
/>
<SkillRow
skillName="CRIMINOLOGY"
skillRank={skills.criminology}
stat={stats.int}
/>
<SkillRow
skillName="CRYPTOGRAPHY"
skillRank={skills.cryptography}
stat={stats.int}
/>
<SkillRow
skillName="DEDUCTION"
skillRank={skills.deduction}
stat={stats.int}
/>
<SkillRow
skillName="EDUCATION"
skillRank={skills.education}
stat={stats.int}
/>
<SkillRow skillName="GAMBLE" skillRank={skills.gamble} stat={stats.int} />
</>
); );
} }
function EducationTopSkills({ stats, skills }) {
return (<>
<SkillRow skillName="ACCOUNTING" skillRank={skills.accounting} stat={stats.int} />
<SkillRow skillName="ANIMAL HANDLING" skillRank={skills.animalhandling} stat={stats.int} />
<SkillRow skillName="BUREAUCRAY" skillRank={skills.bureaucracy} stat={stats.int} />
<SkillRow skillName="BUSINESS" skillRank={skills.business} stat={stats.int} />
<SkillRow skillName="COMPOSITION" skillRank={skills.composition} stat={stats.int} />
<SkillRow skillName="CRIMINOLOGY" skillRank={skills.criminology} stat={stats.int} />
<SkillRow skillName="CRYPTOGRAPHY" skillRank={skills.cryptography} stat={stats.int} />
<SkillRow skillName="DEDUCTION" skillRank={skills.deduction} stat={stats.int} />
<SkillRow skillName="EDUCATION" skillRank={skills.education} stat={stats.int} />
<SkillRow skillName="GAMBLE" skillRank={skills.gamble} stat={stats.int} />
</>)
}
function EducationBottomSkills({ stats, skills }) { function EducationBottomSkills({ stats, skills }) {
return (<> return (
<SkillRow skillName="LANGUAGE:" skillRank="---" stat="---" /> <>
<SkillRow skillName="-- STREETSLANG" skillRank={skills.lang_streetslang} stat={stats.int} /> <SkillRow skillName="LANGUAGE:" skillRank="---" stat="---" />
<SkillRow skillName="-- ENGLISH" skillRank={skills.lang_english} stat={stats.int} /> <SkillRow
<SkillRow skillName="-- SPANISH" skillRank={skills.lang_spanish} stat={stats.int} /> skillName="-- STREETSLANG"
<SkillRow skillName="LIBRARY SEARCH" skillRank={skills.librarysearch} stat={stats.int} /> skillRank={skills.lang_streetslang}
<SkillRow skillName="LOCAL EXPERT:" skillRank="---" stat="---" /> stat={stats.int}
<SkillRow skillName="-- OLD COMBAT ZONE" skillRank={skills.localex_ocz} stat={stats.int} /> />
<SkillRow skillName="-- HOT ZONE" skillRank={skills.localex_hotzone} stat={stats.int} /> <SkillRow
<SkillRow skillName="--" skillRank="---" stat="---" /> skillName="-- ENGLISH"
<SkillRow skillName="SCIENCE:" skillRank="---" stat="---" /> skillRank={skills.lang_english}
<SkillRow skillName="--" skillRank="---" stat="---" /> stat={stats.int}
<SkillRow skillName="--" skillRank="---" stat="---" /> />
<SkillRow skillName="--" skillRank="---" stat="---" /> <SkillRow
<SkillRow skillName="TACTICS" skillRank={skills.tactics} stat={stats.int} /> skillName="-- SPANISH"
<SkillRow skillName="WILDERNESS SURVIVAL" skillRank={skills.wildernesssurvival} stat={stats.int} /> skillRank={skills.lang_spanish}
</>) stat={stats.int}
/>
<SkillRow
skillName="LIBRARY SEARCH"
skillRank={skills.librarysearch}
stat={stats.int}
/>
<SkillRow skillName="LOCAL EXPERT:" skillRank="---" stat="---" />
<SkillRow
skillName="-- THE OCZ"
skillRank={skills.localex_ocz}
stat={stats.int}
/>
<SkillRow
skillName="-- HOT ZONE"
skillRank={skills.localex_hotzone}
stat={stats.int}
/>
<SkillRow skillName="--" skillRank="---" stat="---" />
<SkillRow skillName="SCIENCE:" skillRank="---" stat="---" />
<SkillRow skillName="--" skillRank="---" stat="---" />
<SkillRow skillName="--" skillRank="---" stat="---" />
<SkillRow
skillName="TACTICS"
skillRank={skills.tactics}
stat={stats.int}
/>
<SkillRow
skillName="WILDERNESS SURVIVAL"
skillRank={skills.wildernesssurvival}
stat={stats.int}
/>
</>
);
} }
export function EducationTop() { export function EducationTop() {
const [stats] = useState(st) const [stats] = useState(st);
const [skills] = useState(sk) const [skills] = useState(sk);
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>
</table> </table>
</main> </main>
) );
} }
export function EducationBottom() { export function EducationBottom() {
const [stats] = useState(st) const [stats] = useState(st);
const [skills] = useState(sk) const [skills] = useState(sk);
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>
</table> </table>
</main> </main>
) );
} }
export function Education() { export function Education() {
const [stats] = useState(st);
const [stats] = useState(st) const [skills] = useState(sk);
const [skills] = useState(sk)
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} />
</tbody> </tbody>
</table> </table>
</main> </main>
) );
} }
+32 -39
View File
@@ -1,53 +1,46 @@
import { useState, useEffect } from 'react' import { useState, useEffect } from "react";
import { SkillHeader, SkillRow } from "./skill";
const baseUrl = typeof window !== 'undefined' const baseUrl =
? window.location.origin typeof window !== "undefined"
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env ? window.location.origin
: 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(
.then(r => r.json()); (r) => r.json(),
);
const sk = await const sk = await fetch(`${baseUrl}/characters/collateral/skills.json`).then(
fetch(`${baseUrl}/characters/collateral/skills.json`) (r) => r.json(),
.then(r => r.json()); );
export function Fighting() { export function Fighting() {
const [stats, setStats] = useState(st);
const [stats, setStats] = useState(st) const [skills, setSkills] = useState(sk);
const [skills, setSkills] = useState(sk)
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
<td>BRAWLING</td> skillName="BRAWLING"
<td>{skills.brawling}</td> skillRank={skills.brawling}
<td>{stats.dex}</td> stat={stats.dex}
<td>{stats.dex + skills.brawling}</td> />
</tr> <SkillRow
<tr> skillName="EVASION"
<td>EVASION</td> skillRank={skills.evasion}
<td>{skills.evasion}</td> stat={stats.dex}
<td>{stats.dex}</td> />
<td>{stats.dex + skills.evasion}</td> <SkillRow skillName="MARTIAL ARTS" skillRank={0} stat={4} />
</tr> <SkillRow
<tr> skillName="MELEE WEAPONS"
<td>MELEE WEAPONS</td> skillRank={skills.meleeweapons}
<td>{skills.meleeweapons}</td> stat={stats.dex}
<td>{stats.dex}</td> />
<td>{stats.dex + skills.meleeweapons}</td>
</tr>
</tbody> </tbody>
</table> </table>
</main> </main>
) );
} }
+24 -27
View File
@@ -1,41 +1,38 @@
import { useState, useEffect } from 'react' import { useState, useEffect } from "react";
import { SkillHeader, SkillRow } from "./skill";
const baseUrl = typeof window !== 'undefined' const baseUrl =
? window.location.origin typeof window !== "undefined"
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env ? window.location.origin
: 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(
.then(r => r.json()); (r) => r.json(),
);
const sk = await const sk = await fetch(`${baseUrl}/characters/collateral/skills.json`).then(
fetch(`${baseUrl}/characters/collateral/skills.json`) (r) => r.json(),
.then(r => r.json()); );
export function Performance() { export function Performance() {
const [stats, setStats] = useState(st);
const [stats, setStats] = useState(st) const [skills, setSkills] = useState(sk);
const [skills, setSkills] = useState(sk)
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
<td>ACTING</td> skillName="ACTING"
<td>{skills.acting}</td> skillRank={skills.acting}
<td>{stats.cool}</td> stat={stats.cool}
<td>{stats.cool + skills.acting}</td> />
</tr> <SkillRow skillName="PLAY INSTRUMENT:" skillRank="---" stat="---" />
<SkillRow skillName="--" skillRank="---" stat="---" />
<SkillRow skillName="--" skillRank="---" stat="---" />
</tbody> </tbody>
</table> </table>
</main> </main>
) );
} }
+88 -51
View File
@@ -1,65 +1,102 @@
import { useState, useEffect } from 'react' import { useState, useEffect } from "react";
import { SkillHeader, SkillRow } from "./skill";
const baseUrl =
typeof window !== "undefined"
? window.location.origin
: process.env.VITE_VERCEL_URL || "http://localhost:5173"; // Fallback for your server env
const baseUrl = typeof window !== 'undefined' const st = await fetch(`${baseUrl}/characters/collateral/stats.json`).then(
? window.location.origin (r) => r.json(),
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env );
const st = await fetch(`${baseUrl}/characters/collateral/stats.json`) const sk = await fetch(`${baseUrl}/characters/collateral/skills.json`).then(
.then(r => r.json()); (r) => r.json(),
);
const sk = await function RangedTopSkills({ stats, skills }) {
fetch(`${baseUrl}/characters/collateral/skills.json`) return (
.then(r => r.json()); <>
<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}
/>
</>
);
}
export function Ranged() { 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}
/>
</>
);
}
const [stats, setStats] = useState(st) export function RangedTop() {
const [skills, setSkills] = useState(sk) const [stats] = useState(st);
const [skills] = useState(sk);
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>
<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>
) );
}
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() {
const [stats, setStats] = useState(st);
const [skills, setSkills] = useState(sk);
return (
<main>
<table className="cyber-table">
<SkillHeader skillGroup="RANGED SKILLS" />
<tbody>
<RangedTopSkills stats={stats} skills={skills} />
<RangedBottomSkills stats={stats} skills={skills} />
</tbody>
</table>
</main>
);
} }
+31
View File
@@ -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>
);
}
+61 -75
View File
@@ -1,89 +1,75 @@
import { useState, useEffect } from 'react' import { useState, useEffect } from "react";
import { SkillHeader, SkillRow } from "./skill";
const baseUrl = typeof window !== 'undefined' const baseUrl =
? window.location.origin typeof window !== "undefined"
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env ? window.location.origin
: 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(
.then(r => r.json()); (r) => r.json(),
);
const sk = await const sk = await fetch(`${baseUrl}/characters/collateral/skills.json`).then(
fetch(`${baseUrl}/characters/collateral/skills.json`) (r) => r.json(),
.then(r => r.json()); );
export function Social() { export function Social() {
const [stats, setStats] = useState(st);
const [stats, setStats] = useState(st) const [skills, setSkills] = useState(sk);
const [skills, setSkills] = useState(sk)
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
<td>BRIBERY</td> skillName="BRIBERY"
<td>{skills.bribery}</td> skillRank={skills.bribery}
<td>{stats.cool}</td> stat={stats.cool}
<td>{stats.cool + skills.bribery}</td> />
</tr> <SkillRow
<tr> skillName="CONVERSATION"
<td>CONVERSATION</td> skillRank={skills.conversation}
<td>{skills.conversation}</td> stat={stats.emp}
<td>{stats.emp}</td> />
<td>{stats.emp + skills.conversation}</td> <SkillRow
</tr> skillName="HUMAN PERCEPTION"
<tr> skillRank={skills.humper}
<td>HUMAN PERCEPTION</td> stat={stats.emp}
<td>{skills.humper}</td> />
<td>{stats.emp}</td> <SkillRow
<td>{stats.emp + skills.humper}</td> skillName="INTEROGATION"
</tr> skillRank={skills.interogation}
<tr> stat={stats.cool}
<td>INTERROGATION</td> />
<td>{skills.interogation}</td> <SkillRow
<td>{stats.cool}</td> skillName="PERSUASION"
<td>{stats.cool + skills.interogation}</td> skillRank={skills.persuasion}
</tr> stat={stats.cool}
<tr> />
<td>PERSUASION</td> <SkillRow
<td>{skills.persuasion}</td> skillName="PERSONAL GROOM"
<td>{stats.cool}</td> skillRank={skills.personalgrooming}
<td>{stats.cool + skills.persuasion}</td> stat={stats.cool}
</tr> />
<tr> <SkillRow
<td>PERSONAL GROOMING</td> skillName="STREETWISE"
<td>{skills.heavyweapons}</td> skillRank={skills.streetwise}
<td>{stats.cool}</td> stat={stats.cool}
<td>{stats.cool + skills.heavyweapons}</td> />
</tr> <SkillRow
<tr> skillName="TRADING"
<td>STREETWISE</td> skillRank={skills.trading}
<td>{skills.streetwise}</td> stat={stats.cool}
<td>{stats.cool}</td> />
<td>{stats.cool + skills.streetwise}</td> <SkillRow
</tr> skillName="WARDROBE/STYLE"
<tr> skillRank={skills.wardrobe}
<td>TRADING</td> stat={stats.cool}
<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>
) );
} }
+91 -111
View File
@@ -1,125 +1,105 @@
import { useState, useEffect } from 'react' import { useState, useEffect } from "react";
import { SkillHeader, SkillRow } from "./skill";
const baseUrl = typeof window !== 'undefined' const baseUrl =
? window.location.origin typeof window !== "undefined"
: process.env.VITE_VERCEL_URL || 'http://localhost:5173' // Fallback for your server env ? window.location.origin
: 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(
.then(r => r.json()); (r) => r.json(),
);
const sk = await const sk = await fetch(`${baseUrl}/characters/collateral/skills.json`).then(
fetch(`${baseUrl}/characters/collateral/skills.json`) (r) => r.json(),
.then(r => r.json()); );
export function Technique() { export function Technique() {
const [stats, setStats] = useState(st);
const [stats, setStats] = useState(st) const [skills, setSkills] = useState(sk);
const [skills, setSkills] = useState(sk)
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
<td>AIR VEHICLE TECH</td> skillName="AV Tech"
<td>{skills.avt}</td> skillRank={skills.avt}
<td>{stats.tech}</td> stat={stats.tech}
<td>{stats.tech + skills.avt}</td> />
</tr> <SkillRow
<tr> skillName="BASIC TECH"
<td>BASIC TECH</td> skillRank={skills.basic}
<td>{skills.basic}</td> stat={stats.tech}
<td>{stats.tech}</td> />
<td>{stats.tech + skills.basic}</td> <SkillRow
</tr> skillName="CYBER TECH"
<tr> skillRank={skills.cyber}
<td>CYBER TECH</td> stat={stats.tech}
<td>{skills.cyber}</td> />
<td>{stats.tech}</td> <SkillRow
<td>{stats.tech + skills.cyber}</td> skillName="DEMOLITIONS"
</tr> skillRank={skills.demo}
<tr> stat={stats.tech}
<td>DEMOLITIONS</td> />
<td>{skills.demo}</td> <SkillRow
<td>{stats.tech}</td> skillName="ELEC/SEC"
<td>{stats.tech + skills.demo}</td> skillRank={skills.elecsec}
</tr> stat={stats.tech}
<tr> />
<td>ELEC / SEC TECH</td> <SkillRow
<td>{skills.elecsec}</td> skillName="FIRST AID"
<td>{stats.tech}</td> skillRank={skills.firstaid}
<td>{stats.tech + skills.elecsec}</td> stat={stats.tech}
</tr> />
<tr> <SkillRow
<td>FIRST AID</td> skillName="FORGERY"
<td>{skills.firstaid}</td> skillRank={skills.forgery}
<td>{stats.tech}</td> stat={stats.tech}
<td>{stats.tech + skills.firstaid}</td> />
</tr> <SkillRow
<tr> skillName="LV TECH"
<td>FORGERY</td> skillRank={skills.lvt}
<td>{skills.forgery}</td> stat={stats.tech}
<td>{stats.tech}</td> />
<td>{stats.tech + skills.forgery}</td> <SkillRow
</tr> skillName="P/D/S"
<tr> skillRank={skills.pds}
<td>LAND VEHICLE TECH</td> stat={stats.tech}
<td>{skills.lvt}</td> />
<td>{stats.tech}</td> <SkillRow
<td>{stats.tech + skills.lvt}</td> skillName="PARAMEDIC"
</tr> skillRank={skills.paramedic}
<tr> stat={stats.tech}
<td>PAINT / DRAW / SCULPT</td> />
<td>{skills.pds}</td> <SkillRow
<td>{stats.tech}</td> skillName="PHOTO/FILM"
<td>{stats.tech + skills.pds}</td> skillRank={skills.photofilm}
</tr> stat={stats.tech}
<tr> />
<td>PARAMEDIC</td> <SkillRow
<td>{skills.paramedic}</td> skillName="PICK LOCK"
<td>{stats.tech}</td> skillRank={skills.picklock}
<td>{stats.tech + skills.paramedic}</td> stat={stats.tech}
</tr> />
<tr> <SkillRow
<td>PHOTOGRAPHY / FILM</td> skillName="PICK POCKET"
<td>{skills.photofilm}</td> skillRank={skills.pickpocket}
<td>{stats.tech}</td> stat={stats.tech}
<td>{stats.tech + skills.photofilm}</td> />
</tr> <SkillRow
<tr> skillName="SV TECH"
<td>PICK LOCK</td> skillRank={skills.svt}
<td>{skills.picklock}</td> stat={stats.tech}
<td>{stats.tech}</td> />
<td>{stats.tech + skills.picklock}</td> <SkillRow
</tr> skillName="WEAPONS TECH"
<tr> skillRank={skills.weapons}
<td>PICK POCKET</td> stat={stats.tech}
<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>
) );
} }
+11 -662
View File
@@ -16,11 +16,9 @@
}, },
"devDependencies": { "devDependencies": {
"@react-router/dev": "^8.4.0", "@react-router/dev": "^8.4.0",
"@tailwindcss/vite": "^4.2.2",
"@types/node": "^22", "@types/node": "^22",
"@types/react": "^19.2.18", "@types/react": "^19.3.0",
"@types/react-dom": "^19.2.7", "@types/react-dom": "^19.3.0",
"tailwindcss": "^4.2.2",
"typescript": "^5.9.3", "typescript": "^5.9.3",
"vite": "^8.0.3" "vite": "^8.0.3"
} }
@@ -598,9 +596,6 @@
"arm64" "arm64"
], ],
"dev": true, "dev": true,
"libc": [
"glibc"
],
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"os": [ "os": [
@@ -618,9 +613,6 @@
"arm64" "arm64"
], ],
"dev": true, "dev": true,
"libc": [
"musl"
],
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"os": [ "os": [
@@ -638,9 +630,6 @@
"ppc64" "ppc64"
], ],
"dev": true, "dev": true,
"libc": [
"glibc"
],
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"os": [ "os": [
@@ -658,9 +647,6 @@
"s390x" "s390x"
], ],
"dev": true, "dev": true,
"libc": [
"glibc"
],
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"os": [ "os": [
@@ -678,9 +664,6 @@
"x64" "x64"
], ],
"dev": true, "dev": true,
"libc": [
"glibc"
],
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"os": [ "os": [
@@ -698,9 +681,6 @@
"x64" "x64"
], ],
"dev": true, "dev": true,
"libc": [
"musl"
],
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"os": [ "os": [
@@ -768,290 +748,6 @@
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },
"node_modules/@tailwindcss/node": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz",
"integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==",
"dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/remapping": "^2.3.5",
"enhanced-resolve": "^5.24.1",
"jiti": "^2.7.0",
"lightningcss": "1.32.0",
"magic-string": "^0.30.21",
"source-map-js": "^1.2.1",
"tailwindcss": "4.3.3"
}
},
"node_modules/@tailwindcss/oxide": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz",
"integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">= 20"
},
"optionalDependencies": {
"@tailwindcss/oxide-android-arm64": "4.3.3",
"@tailwindcss/oxide-darwin-arm64": "4.3.3",
"@tailwindcss/oxide-darwin-x64": "4.3.3",
"@tailwindcss/oxide-freebsd-x64": "4.3.3",
"@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3",
"@tailwindcss/oxide-linux-arm64-gnu": "4.3.3",
"@tailwindcss/oxide-linux-arm64-musl": "4.3.3",
"@tailwindcss/oxide-linux-x64-gnu": "4.3.3",
"@tailwindcss/oxide-linux-x64-musl": "4.3.3",
"@tailwindcss/oxide-wasm32-wasi": "4.3.3",
"@tailwindcss/oxide-win32-arm64-msvc": "4.3.3",
"@tailwindcss/oxide-win32-x64-msvc": "4.3.3"
}
},
"node_modules/@tailwindcss/oxide-android-arm64": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz",
"integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"android"
],
"engines": {
"node": ">= 20"
}
},
"node_modules/@tailwindcss/oxide-darwin-arm64": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz",
"integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">= 20"
}
},
"node_modules/@tailwindcss/oxide-darwin-x64": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz",
"integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">= 20"
}
},
"node_modules/@tailwindcss/oxide-freebsd-x64": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz",
"integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"freebsd"
],
"engines": {
"node": ">= 20"
}
},
"node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz",
"integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==",
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 20"
}
},
"node_modules/@tailwindcss/oxide-linux-arm64-gnu": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz",
"integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==",
"cpu": [
"arm64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 20"
}
},
"node_modules/@tailwindcss/oxide-linux-arm64-musl": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz",
"integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==",
"cpu": [
"arm64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 20"
}
},
"node_modules/@tailwindcss/oxide-linux-x64-gnu": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz",
"integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==",
"cpu": [
"x64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 20"
}
},
"node_modules/@tailwindcss/oxide-linux-x64-musl": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz",
"integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==",
"cpu": [
"x64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 20"
}
},
"node_modules/@tailwindcss/oxide-wasm32-wasi": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz",
"integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==",
"bundleDependencies": [
"@napi-rs/wasm-runtime",
"@emnapi/core",
"@emnapi/runtime",
"@tybys/wasm-util",
"@emnapi/wasi-threads",
"tslib"
],
"cpu": [
"wasm32"
],
"dev": true,
"license": "MIT",
"optional": true,
"dependencies": {
"@emnapi/core": "^1.11.1",
"@emnapi/runtime": "^1.11.1",
"@emnapi/wasi-threads": "^1.2.2",
"@napi-rs/wasm-runtime": "^1.1.4",
"@tybys/wasm-util": "^0.10.2",
"tslib": "^2.8.1"
},
"engines": {
"node": ">=14.0.0"
}
},
"node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz",
"integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 20"
}
},
"node_modules/@tailwindcss/oxide-win32-x64-msvc": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz",
"integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 20"
}
},
"node_modules/@tailwindcss/vite": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.3.tgz",
"integrity": "sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==",
"dev": true,
"license": "MIT",
"dependencies": {
"@tailwindcss/node": "4.3.3",
"@tailwindcss/oxide": "4.3.3",
"tailwindcss": "4.3.3"
},
"peerDependencies": {
"vite": "^5.2.0 || ^6 || ^7 || ^8"
}
},
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "22.20.5", "version": "22.20.5",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.5.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.5.tgz",
@@ -1156,18 +852,18 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/body-parser": { "node_modules/body-parser": {
"version": "2.3.0", "version": "2.4.0",
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.4.0.tgz",
"integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==", "integrity": "sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"bytes": "^3.1.2", "bytes": "^3.1.2",
"content-type": "^2.0.0", "content-type": "^2.1.0",
"debug": "^4.4.3", "debug": "^4.4.3",
"http-errors": "^2.0.1", "http-errors": "^2.0.1",
"iconv-lite": "^0.7.2", "iconv-lite": "^0.7.3",
"on-finished": "^2.4.1", "on-finished": "^2.4.1",
"qs": "^6.15.2", "qs": "^6.16.1",
"raw-body": "^3.0.2", "raw-body": "^3.0.2",
"type-is": "^2.1.0" "type-is": "^2.1.0"
}, },
@@ -1521,20 +1217,6 @@
"node": ">= 0.8" "node": ">= 0.8"
} }
}, },
"node_modules/enhanced-resolve": {
"version": "5.26.0",
"resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.26.0.tgz",
"integrity": "sha512-9vhedylFonb2YGogzUKX6+Ja72gOJbN1QHAqdrvqLwhdl/QWbKopzoUC9EbQNVsAns/bx/4uyqalrQAoy1IByw==",
"dev": true,
"license": "MIT",
"dependencies": {
"graceful-fs": "^4.2.4",
"tapable": "^2.3.3"
},
"engines": {
"node": ">=10.13.0"
}
},
"node_modules/es-define-property": { "node_modules/es-define-property": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
@@ -1800,13 +1482,6 @@
"url": "https://github.com/sponsors/ljharb" "url": "https://github.com/sponsors/ljharb"
} }
}, },
"node_modules/graceful-fs": {
"version": "4.2.11",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
"dev": true,
"license": "ISC"
},
"node_modules/has-symbols": { "node_modules/has-symbols": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
@@ -1897,16 +1572,6 @@
"node": ">=18" "node": ">=18"
} }
}, },
"node_modules/jiti": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",
"integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",
"dev": true,
"license": "MIT",
"bin": {
"jiti": "lib/jiti-cli.mjs"
}
},
"node_modules/js-tokens": { "node_modules/js-tokens": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
@@ -1940,279 +1605,6 @@
"node": ">=6" "node": ">=6"
} }
}, },
"node_modules/lightningcss": {
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",
"integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",
"dev": true,
"license": "MPL-2.0",
"dependencies": {
"detect-libc": "^2.0.3"
},
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
},
"optionalDependencies": {
"lightningcss-android-arm64": "1.32.0",
"lightningcss-darwin-arm64": "1.32.0",
"lightningcss-darwin-x64": "1.32.0",
"lightningcss-freebsd-x64": "1.32.0",
"lightningcss-linux-arm-gnueabihf": "1.32.0",
"lightningcss-linux-arm64-gnu": "1.32.0",
"lightningcss-linux-arm64-musl": "1.32.0",
"lightningcss-linux-x64-gnu": "1.32.0",
"lightningcss-linux-x64-musl": "1.32.0",
"lightningcss-win32-arm64-msvc": "1.32.0",
"lightningcss-win32-x64-msvc": "1.32.0"
}
},
"node_modules/lightningcss-android-arm64": {
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",
"integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"android"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-darwin-arm64": {
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",
"integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-darwin-x64": {
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",
"integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",
"cpu": [
"x64"
],
"dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-freebsd-x64": {
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",
"integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",
"cpu": [
"x64"
],
"dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"freebsd"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-linux-arm-gnueabihf": {
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",
"integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",
"cpu": [
"arm"
],
"dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-linux-arm64-gnu": {
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",
"integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",
"cpu": [
"arm64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-linux-arm64-musl": {
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",
"integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",
"cpu": [
"arm64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-linux-x64-gnu": {
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",
"integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",
"cpu": [
"x64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-linux-x64-musl": {
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",
"integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",
"cpu": [
"x64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-win32-arm64-msvc": {
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",
"integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-win32-x64-msvc": {
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",
"integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",
"cpu": [
"x64"
],
"dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lodash": { "node_modules/lodash": {
"version": "4.18.1", "version": "4.18.1",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",
@@ -2230,16 +1622,6 @@
"yallist": "^3.0.2" "yallist": "^3.0.2"
} }
}, },
"node_modules/magic-string": {
"version": "0.30.21",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
"integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.5.5"
}
},
"node_modules/math-intrinsics": { "node_modules/math-intrinsics": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
@@ -2538,9 +1920,9 @@
} }
}, },
"node_modules/qs": { "node_modules/qs": {
"version": "6.16.0", "version": "6.16.1",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.16.0.tgz", "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.1.tgz",
"integrity": "sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==", "integrity": "sha512-5Px6J7rfHBAGUhNQ3es4YzcOdBBw0SDcVtThJml4RdnKw4tKs2epA0kPZ+K8X+WiHktT93RHVcQ/3ym5aTCgtg==",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"dependencies": { "dependencies": {
"es-define-property": "^1.0.1", "es-define-property": "^1.0.1",
@@ -2904,27 +2286,6 @@
"node": ">= 0.8" "node": ">= 0.8"
} }
}, },
"node_modules/tailwindcss": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz",
"integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==",
"dev": true,
"license": "MIT"
},
"node_modules/tapable": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",
"integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=6"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
}
},
"node_modules/tinyglobby": { "node_modules/tinyglobby": {
"version": "0.2.17", "version": "0.2.17",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",
@@ -3275,9 +2636,6 @@
"arm64" "arm64"
], ],
"dev": true, "dev": true,
"libc": [
"glibc"
],
"license": "MPL-2.0", "license": "MPL-2.0",
"optional": true, "optional": true,
"os": [ "os": [
@@ -3299,9 +2657,6 @@
"arm64" "arm64"
], ],
"dev": true, "dev": true,
"libc": [
"musl"
],
"license": "MPL-2.0", "license": "MPL-2.0",
"optional": true, "optional": true,
"os": [ "os": [
@@ -3323,9 +2678,6 @@
"x64" "x64"
], ],
"dev": true, "dev": true,
"libc": [
"glibc"
],
"license": "MPL-2.0", "license": "MPL-2.0",
"optional": true, "optional": true,
"os": [ "os": [
@@ -3347,9 +2699,6 @@
"x64" "x64"
], ],
"dev": true, "dev": true,
"libc": [
"musl"
],
"license": "MPL-2.0", "license": "MPL-2.0",
"optional": true, "optional": true,
"os": [ "os": [
+2 -4
View File
@@ -19,11 +19,9 @@
}, },
"devDependencies": { "devDependencies": {
"@react-router/dev": "^8.4.0", "@react-router/dev": "^8.4.0",
"@tailwindcss/vite": "^4.2.2",
"@types/node": "^22", "@types/node": "^22",
"@types/react": "^19.2.18", "@types/react": "^19.3.0",
"@types/react-dom": "^19.2.7", "@types/react-dom": "^19.3.0",
"tailwindcss": "^4.2.2",
"typescript": "^5.9.3", "typescript": "^5.9.3",
"vite": "^8.0.3" "vite": "^8.0.3"
} }
+195
View File
@@ -0,0 +1,195 @@
{
"neural": {
"name": "Neural Link",
"installed": true,
"slots": 5,
"upgraded": false,
"hl": 2,
"contents": [
{
"name": "Interfacec Plugs",
"description": "Plugs in your brain.",
"hl": 2
},
{
"name": "Interfacec Plugs",
"description": "Plugs in your brain.",
"hl": 2
},
{
"name": "Subdermal Grip Res.",
"description": "Subdermal Grip requires 1 neural slot.",
"hl": 0
}
]
},
"audio": {
"name": "Audio Suite",
"installed": false,
"slots": 3,
"upgraded": false,
"hl": 2,
"contents": []
},
"lefteye": {
"name": "Left Meat Eye",
"installed": true,
"slots": 3,
"upgraded": false,
"hl": 2,
"contents": []
},
"righteye": {
"name": "Right Meat Eye",
"installed": true,
"slots": 3,
"upgraded": false,
"hl": 2,
"contents": []
},
"leftarm": {
"name": "Left Cyber Arm",
"installed": true,
"slots": 5,
"upgraded": {
"name": "slot+",
"description": "Add an extra option slot."
},
"hl": 2,
"contents": [
{
"name": "PopUp Dragon (Open Bay)",
"description": "SQ Flamethrower with S.Choke.",
"hl": 2
},
{
"name": "PopUp Dragon (Open Bay)",
"description": "Second Slot.",
"hl": 0
},
{
"name": "Tech Scanner",
"description": "+2 to tech skills.",
"hl": 2
},
{
"name": "Tech Scanner",
"description": "Second Slot.",
"hl": 2
},
{
"name": "Tech Tool",
"description": "Never loose your tools.",
"hl": 2
}
]
},
"rightarm": {
"name": "Right Cyber Arm",
"installed": true,
"slots": 5,
"upgraded": {
"name": "slot+",
"description": "Add an extra option slot."
},
"hl": 2,
"contents": [
{
"name": "PopUp HSMG+",
"description": "EQ sub-caliber chaingun. S.Link | D.Mag",
"hl": 2
},
{
"name": "PopUp HSMG+",
"description": "Second Slot.",
"hl": 0,
"upgraded": {
"name": "Open Bay Mounting",
"description": "Swap mounted weapons."
}
},
{
"name": "PopUp HSMG+",
"description": "EQ sub-caliber chaingun. S.Link | D.Mag",
"hl": 2
},
{
"name": "PopUp HSMG+",
"description": "Second Slot.",
"hl": 0
},
{
"name": "Subdermal Grip",
"description": "Gun Connection via Skin.",
"hl": 2
}
]
},
"rightleg": {
"name": "Right Cyber Leg",
"installed": true,
"slots": 3,
"upgraded": {
"name": "Burden Managment",
"description": "Reduce MOVE Armor Penalty by 2."
},
"hl": 1,
"contents": [
{
"name": "Bilatteral Coprocessor",
"description": "Havles HL contributions.",
"hl": 0
}
]
},
"leftleg": {
"name": "Left Cyber Leg",
"installed": true,
"slots": 3,
"upgraded": {
"name": "Burden Managment",
"description": "Reduce MOVE Armor Penalty by 2."
},
"hl": 1,
"contents": [
{
"name": "Bilatteral Coprocessor",
"description": "Havles HL contributions.",
"hl": 0
}
]
},
"internal": {
"name": "Internal",
"installed": true,
"slots": 7,
"upgraded": {
"name": "Burden Managment",
"description": "Reduce MOVE Armor Penalty by 2."
},
"hl": 1,
"contents": []
},
"external": {
"name": "External",
"installed": true,
"slots": 7,
"upgraded": {
"name": "Burden Managment",
"description": "Reduce MOVE Armor Penalty by 2."
},
"hl": 1,
"contents": []
},
"borgware": {
"name": "Borgware",
"installed": true,
"slots": 7,
"upgraded": {
"name": "Burden Managment",
"description": "Reduce MOVE Armor Penalty by 2."
},
"hl": 1,
"contents": []
}
}
+95
View File
@@ -0,0 +1,95 @@
{
"cash": 100,
"ammo": [
{
"type": "Tracer",
"caliber": "HP",
"count": "210"
},
{
"type": "Armor Piercing",
"caliber": "Grenade",
"count": "3"
},
{
"type": "Chalk",
"caliber": "Grenade",
"count": "5"
},
{
"type": "Targeting",
"caliber": "Grenade",
"count": "1"
},
{
"type": "Smoke",
"caliber": "Grenade",
"count": "2"
}
],
"gear": [
{
"name": "Agent",
"description": "Standard SAAI powered device. +2 to Lib Search",
"count": 1
},
{
"name": "Radio",
"description": "Standard comms. 1 mile range. Discrete ear piece.",
"count": 1
},
{
"name": "Grapple Gun",
"description": "One-handed grapple gun with 30m of rope.",
"count": 1
},
{
"name": "Kit Bags",
"description": "A set of kit bags worn around the waist.",
"count": 1,
"contents": [
{
"name": "Kaisarin EOD Bag",
"description": "+2 to Demolitions Checks.",
"count": 1,
"contents": [
{
"name": "Remote Detonantor",
"description": "1 Mile Range.",
"count": 1
}
]
},
{
"name": "Tech Bag",
"description": "Tools of the trade.",
"count": 1,
"contents": [
{
"name": "Tech Tool",
"description": "Every kit needs one.",
"count": 1
}
]
},
{
"name": "Smart Artists Kit",
"description": "+2 to Paint / Draw / Sculpt Checks.",
"count": 1,
"contents": [
{
"name": "Smart-Linked Rattle Can",
"description": "'Cause sometimes a bad idea just works.",
"count": 1
},
{
"name": "Glow Paint",
"description": "Flourescing paint, so you can enjoy the art in all wavelngths.",
"count": 4
}
]
}
]
}
]
}
+7 -1
View File
@@ -8,5 +8,11 @@
"luck": 6, "luck": 6,
"move": 8, "move": 8,
"body": 12, "body": 12,
"emp": 8 "emp": 3,
"maxemp": 8,
"humanity": 32,
"maxhumanity": 40,
"hp": 55,
"maxhp": 55,
"seriouslywounded": 32
} }
@@ -0,0 +1,34 @@
{
"displayheadarmor": "Lotos Smart Helm",
"displayheadarmorsp": 11,
"dislpayheadarmorpenalty": 0,
"displaybodyarmor": "Light Metal Gear",
"displaybodyarmorsp": 16,
"displaybodyarmorpenalty": 2,
"displayshield": "",
"displayshieldhp": 0,
"displayshieldpenalty": 0,
"displayweapons": [
{
"name": "Popup EQ HSMG x2",
"features": ["T.UP (EQ)", "Auto(4)", "D.MAG", "S.LINK"],
"magazine": 120,
"damage": "3d6",
"rof": 1
},
{
"name": "Popup Dragon",
"features": ["T.UP (SLOT)", "Burn(4)", "S.CHOKE"],
"magazine": 2,
"damage": "3d6/5d6",
"rof": 1
},
{
"name": "China Lake EQ GL",
"features": ["T.UP (EQ)", "AoE(5)", "Select D.MAG", "S.LINK"],
"magazine": 6,
"damage": "6d6",
"rof": 1
}
]
}
+1 -2
View File
@@ -1,9 +1,8 @@
import { reactRouter } from "@react-router/dev/vite"; import { reactRouter } from "@react-router/dev/vite";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite"; import { defineConfig } from "vite";
export default defineConfig({ export default defineConfig({
plugins: [tailwindcss(), reactRouter()], plugins: [reactRouter()],
resolve: { resolve: {
tsconfigPaths: true, tsconfigPaths: true,
}, },