Support Sapho ordering for shared arrivals
Verify and publish checkpoint container / container (push) Canceled after 0s
Verify and publish checkpoint container / container (push) Canceled after 0s
This commit is contained in:
1 parent
b18a767470
commit
e457478f7d
18 files changed
+808
-23
No files matched your search
@@ -4358,6 +4358,13 @@ export function botActions(g: GameView): Action[] {
|
||||
return g.status === 'playing' && !g.roomControl?.paused && !g.roomControl?.closed && !g.automaticContinuationPending
|
||||
? policyActions(g) : [];
|
||||
if (g.homeworldTupileBlocked) return [];
|
||||
if (g.saphoArrivalOrder) {
|
||||
const own = g.players.find(player => player.id === g.me), order = g.saphoArrivalOrder;
|
||||
return (own?.bot || own?.autopilot) && g.status === 'playing' &&
|
||||
!g.roomControl?.paused && !g.roomControl?.closed && !g.automaticContinuationPending &&
|
||||
order.order.includes(g.me) && !order.passed.includes(g.me)
|
||||
? [{type: 'arrivalOrderPass', event: order.event, revision: order.revision}] : [];
|
||||
}
|
||||
const dealPayer = g.players.find(player => player.id === g.me);
|
||||
if ((dealPayer?.bot || dealPayer?.autopilot) && g.status === 'playing' &&
|
||||
!g.roomControl?.paused && !g.roomControl?.closed && !g.automaticContinuationPending) {
|
||||
|
||||
Reference in new issue
Block a user