Allow Richese special purchase at Ix openings
Verify and publish checkpoint container / container (push) Successful in 10m34s

This commit is contained in:
Quintine committed 2026-11-16 15:40:07 +11:00
1 parent d169740adf
commit 53780c11d8
10 files changed
+395 -5

No files matched your search

+7 -2
View File
@@ -174,6 +174,7 @@ export type RicheseCancellationContext = Pick<
| 'turn'
| 'phase'
| 'advanced'
| 'expansions'
| 'players'
| 'pendingRicheseGift'
| 'richeseGiftBlocked'
@@ -304,6 +305,10 @@ function calculate(
g.players.some((p) => p.faction === 'richese'),
'The canceled purchase income needs its original Emperor and three-spice receipt.',
);
if (object(value.resume) && Object.hasOwn(value.resume, 'phaseOpening'))
requireRichese(g.expansions.includes('ix') && object(value.resume.phaseOpening) &&
value.resume.response == null && value.resume.decision == null && value.resume.pendingKarama == null,
'The suspended Richese purchase opening lost its original clean Ix window.');
}
};
receipt(response, pending);
@@ -349,7 +354,7 @@ function calculate(
receipt(r, parent);
const nested = new Set(nextPath);
nested.add(parent);
controls(parent.resume, r.kind === 'richeseGift', nested);
controls(parent.resume, true, nested);
}
};
followResponse(value.response);
@@ -424,7 +429,7 @@ function calculate(
'The suspended BG response has no conversion declaration.',
);
};
controls(pending.resume, response.kind === 'richeseGift', new Set([pending]));
controls(pending.resume, true, new Set([pending]));
if (response.kind === 'richeseGift') {
const gift = g.pendingRicheseGift!;
const current =