Support earlier Basic Truthtrance shipment promises
Accept current-turn shipment and mixed questions before Movement in bare classic Basic games. Project remaining owned Charity/normal Revival, net current auction invoices and unused outgoing refunds; do not invent future purchases, incoming Bidding aid or rival income. Physical Karama payment and shipping discounts require distinct cards. Reopen owned Charity/Revival readiness when binding and prevent voluntary spending or closure from evading an answer. Preserve unresolved foreign invoices until their actual outcome; preflight Emperor gifts and extra ally revival costs before responses. Connect persistent earlier-phase guidance and current preparation to the actual table and retain phase5 shipping timing. Minimal required-delivery policies preserve a legal route; nonrestrictive answers retain ordinary legal payment. Document the explicit provisional witness/readiness interpretation and inherited profile boundaries. Verify focused rules/controls, types/lint/build, two original public Basic Storm/Charity question programmes with actual purchase2 and shipment8, and four finite minimal legal policy continuations. Full rules, wider earlier-phase configurations, comprehensive assurance and deployed acceptance remain open. No strategic calibration, saved-room operation, reset, restart or deployment.
This commit is contained in:
1 parent
6d30e7c5e1
commit
16f654071a
17 files changed
+799
-48
No files matched your search
@@ -149,6 +149,7 @@ export function shipmentClaimText(
|
||||
/** Software readiness boundary; this is not a printed restriction on Truthtrance. */
|
||||
export function shipmentPromiseModeSupported(game: {
|
||||
advanced: boolean;
|
||||
phase?: number;
|
||||
expansions: readonly unknown[];
|
||||
players: readonly { id?: string; faction: string }[];
|
||||
techTokens?: unknown;
|
||||
@@ -159,7 +160,11 @@ export function shipmentPromiseModeSupported(game: {
|
||||
semutaPreview?: unknown;
|
||||
leaderSkills?: unknown;
|
||||
discoveryEnabled?: unknown;
|
||||
ecazTreachery?: unknown;
|
||||
}, respondent = game.active): boolean {
|
||||
if (game.phase !== undefined && game.phase < 5 &&
|
||||
(game.advanced || game.expansions.length || game.techTokens || game.strongholdCards ||
|
||||
game.nexusCards || game.homeworlds || game.leaderSkills || game.discoveryEnabled || game.ecazTreachery)) return false;
|
||||
if (game.semutaPreview === true && game.expansions.length === 1 &&
|
||||
game.expansions[0] === 'choam' && !game.techTokens &&
|
||||
!game.strongholdCards && !game.nexusCards && !game.homeworlds &&
|
||||
@@ -188,8 +193,9 @@ export function shipmentPromiseTurnAvailable(game: {
|
||||
active?: string | null;
|
||||
movementRemaining?: readonly string[] | null;
|
||||
}, player: string, unused: boolean): boolean {
|
||||
return game.status === 'playing' && game.phase === 5 && unused &&
|
||||
(game.active === player || !!game.movementRemaining?.includes(player));
|
||||
return game.status === 'playing' && Number.isInteger(game.phase) && game.phase >= 0 &&
|
||||
(game.phase < 5 || game.phase === 5 && unused &&
|
||||
(game.active === player || !!game.movementRemaining?.includes(player)));
|
||||
}
|
||||
export type ShipmentPromise = ShipmentClaim & {
|
||||
turn: number;
|
||||
|
||||
Reference in new issue
Block a user