Protect Sapho priority at the Testing Station
Verify and publish checkpoint container / container (push) Successful in 11m16s

This commit is contained in:
Quintine committed 2026-10-30 17:35:55 +11:00
1 parent f73a6e0a9c
commit a6be17fc5d
12 files changed
+391 -9

No files matched your search

+6
View File
@@ -1250,6 +1250,12 @@ function policyActions(g: GameView): Action[] {
? [{ type: 'victoryContinuation', event: g.victoryContinuation.event, mode: 'finish' }]
: [];
if (g.homeworldTupileBlocked) return [];
if (g.saphoStationPriority) {
const own = g.players.find(player => player.id === g.me), priority = g.saphoStationPriority;
return (own?.bot || own?.autopilot) && g.status === 'playing' && priority.canPass &&
!g.roomControl?.paused && !g.roomControl?.closed && !g.automaticContinuationPending
? [{type:'saphoStationPass', event:priority.event}] : [];
}
const dukeGrant = g.homeworldEcazDuke;
if (dukeGrant && dukeGrant.occupier === me.id && !dukeGrant.blocked && dukeGrant.event && dukeGrant.recipients.length)
return [{ type: 'homeworldDuke', event: dukeGrant.event, recipient: dukeGrant.recipients[0].id }];