From 943839692c937960f479bae00ba393e25ae36560 Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Thu, 23 Nov 2023 05:47:14 +0100 Subject: remove state after 19th was ratified/rejected --- rules.js | 4 ++-- 1 file 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) -- cgit v1.2.3