summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-05-09 22:16:23 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:31:29 +0100
commitbbbc61f7428723b7d4000600a55a1fbf9557d01d (patch)
tree3afaeaf9c5558a1e6783f3a6d51896e0b13ed911
parent0db7bfb141e9cc77615138cadea3952a5949ff6d (diff)
downloadpax-pamir-bbbc61f7428723b7d4000600a55a1fbf9557d01d.tar.gz
Nationalism.
-rw-r--r--rules.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index b16295c..d98f4e1 100644
--- a/rules.js
+++ b/rules.js
@@ -1825,7 +1825,10 @@ function count_player_cylinders(p, r) {
}
function count_active_armies_in_region(where) {
- return count_player_armies_in_region(game.active, where);
+ let n = count_player_armies_in_region(game.active, where);
+ if (player.events.nationalism)
+ n += count_player_cylinders(game.active, where);
+ return n;
}
function count_enemy_blocks_on_border(where) {