Separate Guild transport permission, purchase price and loan approval

This commit is contained in:
Quintine committed 2026-10-15 22:52:37 +11:00
1 parent a12250320c
commit 11adb7dbf3
39 files changed
+1576 -121

No files matched your search

+3 -1
View File
@@ -3,7 +3,7 @@ import { viewGame, type Action, type Game } from '../game/engine';
import { distance, TERRITORIES } from '../game/board';
import { presenceAt } from '../game/force-presence';
import { quoteSmugglerShipment } from '../game/smuggler-shipment';
import { createGuildAmbassadorIncomeArrival } from './fixture-guild-ambassador-income-arrival';
import { createGuildAmbassadorIncomeArrival, passNativeGuildTransportPermission } from './fixture-guild-ambassador-income-arrival';
import {
nextPairedE3NexusStep, pairedE3NexusClean, pairedE3NexusPlayer,
pairedE3NexusReload, quietPairedE3NexusChoice, stepPairedE3Nexus,
@@ -50,6 +50,8 @@ export function declareNativeGuildRateModules(fixture: {
if (game.decision?.kind === 'guildShipment')
game = stepPairedE3Nexus(game, { actor: fixture.guild,
action: { type: 'decision', allow: true } }, actions);
const permission = passNativeGuildTransportPermission(game);
game = permission.game; actions.push(...permission.actions);
assert.equal(game.response?.kind, 'guildRate');
return { before, actions, game };
}