Support group Fremen worm protection
Verify and publish checkpoint container / container (push) Successful in 10m58s
Verify and publish checkpoint container / container (push) Successful in 10m58s
This commit is contained in:
1 parent
6e26ceb216
commit
40c9651b80
12 files changed
+479
-24
No files matched your search
@@ -12,8 +12,9 @@ export function stormExposesTerritory(id: string, shieldWallDestroyed = false) {
|
||||
(shieldWallDestroyed && ['arrakeen', 'carthag', 'imperial_basin'].includes(t.id));
|
||||
}
|
||||
|
||||
export function wormConsumesForces(player: { id: string; faction: FactionId }, protectedAlly?: string, protectFremen = true) {
|
||||
return (!protectFremen || player.faction !== 'fremen') && player.id !== protectedAlly;
|
||||
export function wormConsumesForces(player: { id: string; faction: FactionId }, protectedAlly?: string | readonly string[], protectFremen = true) {
|
||||
const protectedIds = typeof protectedAlly === 'string' ? [protectedAlly] : protectedAlly ?? [];
|
||||
return (!protectFremen || player.faction !== 'fremen') && !protectedIds.includes(player.id);
|
||||
}
|
||||
|
||||
/** A territory card adds to existing spice unless its printed sector is under storm. */
|
||||
|
||||
Reference in new issue
Block a user