Support Emperor gifts in Nexus Richese cache sales
Verify and publish checkpoint container / container (push) Successful in 11m37s

This commit is contained in:
Quintine committed 2026-11-16 13:25:56 +11:00
1 parent eaaab566e2
commit 021a8c3e7f
11 files changed
+276 -20

No files matched your search

+4 -1
View File
@@ -21,7 +21,8 @@ function finishOriginalLot(f: NexusEmperorSellerFixture, game: Game): { game: Ga
const bonus = game.response?.kind === 'harkonnenBonus';
if (bonus && !inBonus) bonuses++;
inBonus = bonus;
assert.ok(!game.decision, 'The original paid/free acquisition cannot reopen buyer confirmation');
assert.ok(!game.decision || game.decision.kind === 'nexusIxianReplacement',
'The original paid/free acquisition cannot reopen buyer confirmation');
game = stepNexusEmperorSeller(game, nextNexusEmperorSellerStep(game));
}
throw Error(`Original ${f.source} acquisition did not reach its source successor`);
@@ -44,6 +45,8 @@ for (const scenario of scenarios) for (const use of [false, true]) void test(
assert.deepEqual(f.game, original);
assert.equal(nexusEmperorSellerPlayer(game, f.winner).spice, f.wallets[f.winner] - (use ? 0 : f.price));
assert.equal(nexusEmperorSellerPlayer(game, f.winner).hand.filter(card => card.id === f.card.id).length, 1);
if (game.decision?.kind === 'nexusIxianReplacement')
game = stepNexusEmperorSeller(game, nextNexusEmperorSellerStep(game));
assert.equal(game.response?.kind, 'harkonnenBonus', 'The existing native bonus cancellation boundary must remain');
assert.equal(game.currentAuctionSale!.origin, f.source);
assert.equal(game.currentAuctionSale!.free, use);