Since 6e49fc9. Engine: the teleport BFS in the view and the engine's
wallIgnoringDistance share teleportStep; the counter trail is weighed
between steps instead of on six arms; the bush attack takes its
adjacency from SIDES like the wall does; a dead redirected clause, a
one-member set, an identity ternary, and a stray try/catch are gone;
two tests now assert what their names promise. Server: KEEPER and
MAX_SEATS live in rooms.ts, the three Sentry bells ring through one
helper, the unread reply field is dropped, actingSeat comes from the
engine, and the protocol header names every message. Web: ReplayStep
is one type, cardName one helper, the say box and the reference section
one snippet each, the keeper's name arrives from the server rather than
the source, and the lifesaver ruling that ruled nothing is out.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jm2auWk6RP71CjaAb4FMoG
23 lines
693 B
TypeScript
23 lines
693 B
TypeScript
// What the help remembers between openings: the tab, each tab's search,
|
|
// the library's filters, and where the reader was on each page. Module
|
|
// state, so it lasts the session and costs nothing to restore.
|
|
|
|
import type { CardQuery } from "./reference";
|
|
|
|
export const HELP_TABS = ["play", "rules", "cards", "rulings", "about", "tally"] as const;
|
|
export type HelpTab = (typeof HELP_TABS)[number];
|
|
|
|
export const helpState: {
|
|
tab: HelpTab;
|
|
rulesSearch: string;
|
|
rulingsSearch: string;
|
|
cards: CardQuery;
|
|
scroll: Partial<Record<HelpTab, number>>;
|
|
} = {
|
|
tab: "play",
|
|
rulesSearch: "",
|
|
rulingsSearch: "",
|
|
cards: { text: "", set: "all", type: "all", sight: "all" },
|
|
scroll: {},
|
|
};
|