Drop two helpers nothing calls
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -53,11 +53,6 @@ export function Line({ children, className = '' }: { children?: ReactNode; class
|
||||
return <div className={`line ${className}`}>{children ?? ' '}</div>
|
||||
}
|
||||
|
||||
/** Atari inverse video: light background, dark characters. */
|
||||
export function Inv({ children }: { children: ReactNode }) {
|
||||
return <span className="inv">{children}</span>
|
||||
}
|
||||
|
||||
export function Btn({
|
||||
children,
|
||||
onClick,
|
||||
|
||||
@@ -15,7 +15,4 @@ export function makeRng(seed: number) {
|
||||
|
||||
export type Rng = ReturnType<typeof makeRng>
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user