summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-11 17:00:59 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-11 20:26:46 +0100
commit8cc937d6a2798bdc6de4fdf5ea1bf2e72859dd9e (patch)
treeed0253681e410f3d2d2e71e2baacb9d8e90d322a
parentc771b0b63ee569bfafee322ac8e1986c71eb35a2 (diff)
downloadvotes-for-women-8cc937d6a2798bdc6de4fdf5ea1bf2e72859dd9e.tar.gz
clicky congress
-rw-r--r--rules.js24
1 files changed, 16 insertions, 8 deletions
diff --git a/rules.js b/rules.js
index cfb7309..88353fb 100644
--- a/rules.js
+++ b/rules.js
@@ -1950,10 +1950,12 @@ states.lobbying_add_congress = {
gen_action("congress")
},
congress() {
- increase_congress(game.count)
+ increase_congress(1)
+ game.count--
if (game.congress >= 6 && trigger_nineteenth_amendment())
return
- end_play_card(game.played_card)
+ if (game.count === 0 || game.congress === 6 || game.nineteenth_amendment)
+ end_play_card(game.played_card)
}
}
@@ -1964,8 +1966,10 @@ states.lobbying_remove_congress = {
gen_action("congress")
},
congress() {
- decrease_congress(game.count)
- end_play_card(game.played_card)
+ decrease_congress(1)
+ game.count--
+ if (game.count === 0 || game.congress === 0)
+ end_play_card(game.played_card)
}
}
@@ -2862,10 +2866,12 @@ states.vm_add_congress = {
gen_action("congress")
},
congress() {
- increase_congress(game.vm.count)
+ increase_congress(1)
+ game.vm.count--
if (game.congress >= 6 && trigger_nineteenth_amendment())
return
- vm_next()
+ if (game.vm.count === 0 || game.congress === 6 || game.nineteenth_amendment)
+ vm_next()
}
}
@@ -2876,8 +2882,10 @@ states.vm_remove_congress = {
gen_action("congress")
},
congress() {
- decrease_congress(game.vm.count)
- vm_next()
+ decrease_congress(1)
+ game.vm.count--
+ if (game.vm.count === 0 || game.congress === 0)
+ vm_next()
}
}