Offer Emperor gifts before allied auction payment
Verify and publish checkpoint container / container (push) Canceled after 0s

This commit is contained in:
Quintine committed 2026-10-29 06:21:49 +11:00
1 parent 93b0146de9
commit 6cec4ed78b
11 files changed
+528 -2

No files matched your search

+7
View File
@@ -4359,6 +4359,13 @@ function botAdvisorMatchingAllowed(g:GameView,action:Action) {
} catch(error) { if(error instanceof AdvisorMatchingError) return false; throw error; }
}
export function botActions(g: GameView): Action[] {
if (g.emperorAuctionGiftPending && !g.response) {
const me = g.players.find(player => player.id === g.me);
return (me?.bot || me?.autopilot) && g.status === 'playing' &&
!g.roomControl?.paused && !g.roomControl?.closed && !g.automaticContinuationPending &&
g.emperorAuctionGift
? [{type: 'emperorAuctionGiftContinue', event: g.emperorAuctionGift.event}] : [];
}
if (g.victoryContinuation)
return g.status === 'playing' && !g.roomControl?.paused && !g.roomControl?.closed && !g.automaticContinuationPending
? policyActions(g) : [];