Add three-member short alliance prototype
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
cdc47ed2e1
commit
ef92ddf2b9
12 files changed
+343
-12
No files matched your search
+4
-2
@@ -3228,9 +3228,11 @@ function policyActions(g: GameView): Action[] {
|
||||
const card = me.hand?.find((c) => c.effect === 'harvester');
|
||||
if (card) return [{ type: 'card', card: card.id }];
|
||||
}
|
||||
if (g.nexus && !g.spiceWindow && !g.ready.includes(me.id) && group?.variant === 'unlimited' &&
|
||||
if (g.nexus && !g.spiceWindow && !g.ready.includes(me.id) &&
|
||||
(group?.variant === 'unlimited' || group?.variant === 'three-short') &&
|
||||
!group.groups.some(alliance => alliance.members.includes(me.id))) {
|
||||
const alliance = group.groups.find(candidate => candidate.members.length >= 2 && candidate.members.length < 6 &&
|
||||
const limit = group.variant === 'unlimited' ? 6 : 3;
|
||||
const alliance = group.groups.find(candidate => candidate.members.length >= 2 && candidate.members.length < limit &&
|
||||
!group.blockedInvitations?.some(blocked => blocked.groupId === candidate.id && blocked.entrant === me.id));
|
||||
if (alliance) return [{type:'coalitionPropose', groupId:alliance.id, entrant:me.id,
|
||||
expectedRevision:group.revision}];
|
||||
|
||||
Reference in new issue
Block a user