Enable Basic Nexus Kull and native reactions
Verify and publish checkpoint container / container (push) Successful in 11m12s

This commit is contained in:
Quintine committed 2026-10-30 18:26:05 +11:00
1 parent 5b66628399
commit 95ebd7f976
15 files changed
+388 -21

No files matched your search

+9 -1
View File
@@ -81,11 +81,13 @@ void test('Basic Semuta bank purchase uses the supported native roster, not unre
joinGame(game, newPlayer('g','Guild','guild'));
game.nexusCards = {cards:null,phase:null}; game.semutaPreview = true;
assert.equal(emperorNexusBankPurchaseModeSupported(game), true);
const unusedIx = structuredClone(game); unusedIx.expansions.push('ix');
assert.equal(emperorNexusBankPurchaseModeSupported(unusedIx), true);
for (const change of [
(g:Game) => { g.advanced = true; },
(g:Game) => { g.homeworlds = {custody:null}; },
(g:Game) => { g.discoveryEnabled = true; },
(g:Game) => { g.expansions.push('ix'); },
(g:Game) => { g.expansions.push('ix', 'ix'); },
(g:Game) => { g.nexusCards = undefined; },
(g:Game) => { joinGame(g,newPlayer('e','Emperor','emperor')); },
]) {
@@ -131,5 +133,11 @@ for (const claim of [false, true]) for (const use of [false, true]) void test(
game = applyAction(game, 'r', use ? {type:'nexusEmperorPurchase',event:originalOffer.event} : {type:'decision',karama:false});
assert.equal(semutaNexusTradePlayer(game,'r').spice,spice - (use ? 0 : 2));
assert.equal(game.nexusCards!.cards!.hands.r,use ? null : 'emperor');
// Paying retains the held Emperor Nexus, so the newly initialized neutral
// Ixian Secret Ally purchase window must be passed before the lot closes.
if (!use) {
assert.ok(game.pendingNexusIxianReplacement);
game = applyAction(game, 'r', {type:'nexusIxianReplacementPass',event:game.pendingNexusIxianReplacement.event});
}
assert.deepEqual(semutaNexusTradeInventory(game),original);
});