summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-11 16:02:08 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-11 16:02:08 +0100
commit4bdd35c50cc542d4ed4bdd78f8d925f9de65c5ce (patch)
treec62d65cb274b717b1fcf09271d7343c61785fd6d
parent3bbd310ccc1b8d7e0471a0904501de0fc7079ed8 (diff)
downloadvotes-for-women-4bdd35c50cc542d4ed4bdd78f8d925f9de65c5ce.tar.gz
Reconsideration rule change for The Civil War effect
-rw-r--r--rules.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 5a7dfb0..32d007d 100644
--- a/rules.js
+++ b/rules.js
@@ -2208,7 +2208,13 @@ function vm_replace() {
game.vm.us_states = ANYWHERE.slice()
set_filter(game.vm.us_states, s => is_green_check(s) || is_red_x(s))
- if (!game.nineteenth_amendment || (game.vm.what === GREEN_CHECK && !count_green_checks()) || game.vm.what === RED_X && !count_red_xs()) {
+ // If Civil War is in effect the Suffragist cannot play Reconsideration in Atlantic & Appalachia and South regions
+ if (game.active === SUF && game.persistent_turn.includes(THE_CIVIL_WAR)) {
+ let excluded = region_us_states(ATLANTIC_APPALACHIA, SOUTH)
+ set_filter(game.vm.us_states, s => !set_has(excluded, s))
+ }
+
+ if (!game.nineteenth_amendment || !game.vm.us_states.length || (game.vm.what === GREEN_CHECK && !count_green_checks()) || game.vm.what === RED_X && !count_red_xs()) {
vm_next()
} else {
goto_vm_replace()