Allow Basic bribes during selected pending decisions
Verify and publish checkpoint container / container (push) Canceled after 0s

This commit is contained in:
Quintine committed 2026-10-29 06:42:50 +11:00
1 parent 171bc3a636
commit 72f6ec2b12
11 files changed
+435 -29

No files matched your search

+7
View File
@@ -3,6 +3,8 @@ import type { Action, Game } from './engine';
export interface BribeOptions {
available: number;
incoming: number;
/** When an ordinary payment made now becomes spendable. */
receiptTiming?: 'upcoming' | 'nextTurn';
blocked: string | null;
targets: { id: string; maximum: number; limitation: string | null }[];
}
@@ -21,6 +23,11 @@ export function bribeTimingBlock(g: Game): string | null {
return null;
}
/** A phase-8 opening may still precede the phase's actual collection. */
export function bribeReceiptTiming(g: Pick<Game, 'phase' | 'phaseOpening'>): 'upcoming' | 'nextTurn' {
return g.phase === 8 && !g.phaseOpening?.initialize ? 'nextTurn' : 'upcoming';
}
/** The existing automatic token lifecycle will turn an unflipped Cancel into
* Double at this opening. An owed payment must precede that known closure. */
export function bribesCloseBeforeNextMentat(g: Pick<Game, 'turn' | 'inflation'>): boolean {