diff --git a/src/App.css b/src/App.css index b509121..56f8d72 100644 --- a/src/App.css +++ b/src/App.css @@ -124,7 +124,6 @@ .warn { color: var(--atari-red); text-shadow: 0 0 8px rgba(255, 138, 122, 0.5); } .money { color: var(--atari-green); } -.inv, .inv-line { background: var(--atari-text); color: var(--atari-screen-dark); diff --git a/src/components/Crt.tsx b/src/components/Crt.tsx index 12f9de3..a4184a6 100644 --- a/src/components/Crt.tsx +++ b/src/components/Crt.tsx @@ -53,11 +53,6 @@ export function Line({ children, className = '' }: { children?: ReactNode; class return
{children ?? ' '}
} -/** Atari inverse video: light background, dark characters. */ -export function Inv({ children }: { children: ReactNode }) { - return {children} -} - export function Btn({ children, onClick, diff --git a/src/game/rng.ts b/src/game/rng.ts index 7154282..75b166b 100644 --- a/src/game/rng.ts +++ b/src/game/rng.ts @@ -15,7 +15,4 @@ export function makeRng(seed: number) { export type Rng = ReturnType -export const randInt = (rng: Rng, min: number, max: number) => - min + Math.floor(rng() * (max - min + 1)) - export const chance = (rng: Rng, p: number) => rng() < p