Implement Homeworld mechanics through Caladan reinforcement checkpoint

Connect typed Homeworld custody, transport, battle, income, revival and Caladan reinforcement flows with private multiplayer recovery and controls. Preserve the optimized test workflow and keep unfinished rules modes gated. Verified with 3682 offline tests, typecheck, lint, production build and 40 HTTP tests; existing saved games remain unchanged.
This commit is contained in:
Quintine committed 2026-09-10 08:12:26 +10:00
1 parent 3be49512f7
commit 28ba1618ba
266 files changed
+47680 -16851

No files matched your search

+8 -1
View File
@@ -11,7 +11,8 @@ type TurnView = Pick<
| 'truthtrance'
| 'phaseOpening'
| 'automaticContinuationPending'
>;
> &
Partial<Pick<GameView, 'biddingEnd'>>;
/** The single current decision owner for the table banner and seat highlight.
* Shared response windows have no single acting seat. Only public view fields
@@ -28,6 +29,12 @@ export function tableActionOwner(g: TurnView): string | null {
const seated = (id: string | null | undefined) =>
g.players.some((p) => p.id === id) ? id! : null;
if (g.decision) return seated(g.decision.player);
if (g.biddingEnd) {
const pending = g.biddingEnd.owners.filter(
(id) => !g.biddingEnd!.ready.includes(id),
);
return pending.length === 1 ? seated(pending[0]) : null;
}
const b = g.battle;
if (!b) return seated(g.active);
const combatants = [b.attacker, b.defender];