Make normal Banker income mandatory in fresh Skills setups

This commit is contained in:
Quintine committed 2026-10-17 12:58:29 +11:00
1 parent 628f59b73a
commit 3ed9856578
43 files changed
+1244 -263

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import { applyAction, initializeSpiceBankerIncomeGameForAudit, viewGame } from '../game/engine';
import { applyAction, initializeLeaderSkillsGameForAudit, viewGame } from '../game/engine';
import { botActions } from '../game/bots';
import { validateLeaderSkills } from '../game/leader-skills';
import { quoteSpiceCollection } from '../game/board-resolution-quote';
@@ -84,7 +84,7 @@ void test('Nexus Banker keeps available wallet budgets and existing legal policy
assert.equal(nexusBankerPlayer(next, f.owner).spice, nexusBankerPlayer(f.paid, f.owner).spice);
assert.deepEqual(viewGame(next, f.owner).spiceBankerIncome!.deferred, [{owner:'a',amount:1}]);
const snapshot = structuredClone(f.paid);
assert.throws(()=>initializeSpiceBankerIncomeGameForAudit(f.paid));
assert.throws(()=>initializeLeaderSkillsGameForAudit(f.paid));
assert.deepEqual(f.paid,snapshot);
assert.throws(()=>applyAction(f.paid,f.owner,{type:'collectSpiceBankerIncome'}));
assert.deepEqual(f.paid,snapshot);