summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-23 05:47:14 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-23 05:47:14 +0100
commit943839692c937960f479bae00ba393e25ae36560 (patch)
tree4ac181f59d6a72016346df817ab0f710d13a58d8
parent5ddb954b3dcfc74c4d9f20831e9450922be69483 (diff)
downloadvotes-for-women-943839692c937960f479bae00ba393e25ae36560.tar.gz
remove state after 19th was ratified/rejected
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index f06da3f..1113c0e 100644
--- a/rules.js
+++ b/rules.js
@@ -2243,10 +2243,11 @@ function on_4th_cube(us_state) {
}
}
-// XXX pick a better name
function after_vm_add_cube(us_state) {
if (player_cubes(us_state) === 4) {
on_4th_cube(us_state)
+ if (game.nineteenth_amendment)
+ set_delete(game.vm.us_states, us_state)
if (check_victory())
return true
}
@@ -2314,7 +2315,6 @@ states.vm_remove_cubes = {
}
}
-// XXX pick a better name
function after_vm_remove_cube(us_state) {
map_incr(game.vm.removed, us_state, 1)