Compose Basic bid revival and shipment commitments
Verify and publish checkpoint container / container (push) Successful in 10m33s
Verify and publish checkpoint container / container (push) Successful in 10m33s
This commit is contained in:
1 parent
c3e13a2525
commit
9536c77062
7 files changed
+328
-15
No files matched your search
@@ -10,7 +10,7 @@ export const futureShipmentPlayer = (game: Game, actor = 'emperor') => {
|
||||
const player = game.players.find(player => player.id === actor); assert.ok(player); return player;
|
||||
};
|
||||
export const futureShipmentClean = (game: Game) => !game.response && !game.phaseOpening &&
|
||||
!game.decision && !game.truthtrance && !game.pendingTreacheryDiscard;
|
||||
!game.decision && !game.truthtrance && !game.pendingTreacheryDiscard && !game.pendingEmperorAuctionGift;
|
||||
export function actFutureShipment(game: Game, actor: string, action: Action, actions: FutureShipmentStep[] = []): Game {
|
||||
const next = withClassicDiscoveryNexusLottery(() => applyAction(game, actor, action));
|
||||
actions.push({ actor, action: structuredClone(action) }); return next;
|
||||
@@ -23,6 +23,10 @@ export function nextFutureShipmentStep(game: Game): FutureShipmentStep | null {
|
||||
const actor = game.players.find(player => !game.truthtrance!.passed.includes(player.id)); assert.ok(actor);
|
||||
return { actor: actor.id, action: { type: 'truthPass' } };
|
||||
}
|
||||
if (game.pendingEmperorAuctionGift && !game.response && !game.pendingKarama && !game.pendingKull)
|
||||
return { actor: game.pendingEmperorAuctionGift.owner, action: {
|
||||
type: 'emperorAuctionGiftContinue', event: game.pendingEmperorAuctionGift.event,
|
||||
} };
|
||||
if (!game.response && !game.phaseOpening && !game.pendingTreacheryDiscard && game.decision?.kind === 'guildTiming')
|
||||
return { actor: game.decision.player, action: { type: 'decision', take: false } };
|
||||
return nextStrongholdFactionsNativeStep(game);
|
||||
|
||||
Reference in new issue
Block a user