Support conditional Truthtrance before storm and spice
Verify and publish checkpoint container / container (push) Canceled after 0s

This commit is contained in:
Quintine committed 2026-10-28 22:10:08 +11:00
1 parent e529cc2d7a
commit 0e9209531a
7 files changed
+172 -10

No files matched your search

+12
View File
@@ -1,3 +1,15 @@
import type { Game } from './engine';
/** Early questions use the native pre-resolution Storm or pre-draw Spice
* window. Other phases retain their existing quiet-interaction checks. */
export function futureBattleLeaderTiming(g: Pick<Game, 'phase' | 'stormPending' | 'stormResolution' | 'spiceSequence' |
'spiceWindow' | 'spiceResolution' | 'nexus' | 'summonedWorm' | 'wormRides'>): boolean {
if (g.phase === 0) return Number.isInteger(g.stormPending) && !g.stormResolution;
if (g.phase === 1) return !g.spiceSequence && !g.spiceWindow && !g.spiceResolution &&
!g.nexus && !g.summonedWorm && !g.wormRides.length;
return [2, 3, 4, 5].includes(g.phase);
}
/** A conditional commitment for the respondent's first later native battle.
* Waiting does not require a battle to occur. The engine owns plan legality,
* answer feasibility and the decision that an obligation became impossible. */