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 {
applyAction, createGame, initializeSpiceBankerIncomeGameForAudit,
applyAction, createGame, initializeLeaderSkillsGameForAudit,
joinGame, newPlayer, viewGame, type Game, type Action,
} from '../game/engine';
import { validateLeaderSkills } from '../game/leader-skills';
@@ -45,7 +45,7 @@ export function createClassicNexusBankerFixture(options: {
if (strongholds) game.strongholdCards = createStrongholdCards();
for (const player of game.players) game = applyAction(game, player.id, { type: 'ready' });
const lobby = structuredClone(game);
game = withSpiceBankerIncomeSetupRandomness(() => initializeSpiceBankerIncomeGameForAudit(game));
game = withSpiceBankerIncomeSetupRandomness(() => initializeLeaderSkillsGameForAudit(game));
const started = structuredClone(game);
while (game.status === 'setup') {
if (game.setupStage === 'leaderSkills') {