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

+3 -1
View File
@@ -2,6 +2,7 @@ import { fighterCount } from './advisors';
import { TERRITORIES } from './board';
import { harvesterAvailable, type Card } from './cards';
import type { FactionId } from './catalog';
import { choamSaleGholaTiming } from './choam-market-ghola';
export type OrdinaryCardEffect =
| 'weather'
@@ -27,6 +28,7 @@ export type OrdinaryCardState = {
phaseOpening?: { passed: readonly string[] } | null;
response?: object | null;
decision?: object | null;
choamMarket?: { owner: string } | null;
shieldWallDestroyed: boolean;
spiceWindow?: {
harvested: boolean;
@@ -83,7 +85,7 @@ export function ordinaryCardAvailability(
'Play Amal or pass the phase opening before taking other actions.',
);
}
if (state.response)
if (state.response && !(card?.effect === 'ghola' && choamSaleGholaTiming(state)))
return blocked('Resolve the Karama response window first.');
if (state.decision)
return blocked('Waiting for the player with the pending decision.');