summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-19 17:01:54 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-19 17:01:54 +0100
commit065ab5e64b856c1e03b965dcfd1d6649259a0bf5 (patch)
tree43f37aa6990704f6390d59fa5d32ff2a9a7dc23e
parent109a346abcfe6afe44b0efa925595e0417bc6719 (diff)
downloadvotes-for-women-065ab5e64b856c1e03b965dcfd1d6649259a0bf5.tar.gz
sensible strategy actions when 0 buttons committed
-rw-r--r--rules.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index ab4a56b..b4f6c20 100644
--- a/rules.js
+++ b/rules.js
@@ -713,8 +713,7 @@ states.strategy_phase = {
gen_action("done")
} else {
view.prompt = `Strategy: Suffragist committed ${pluralize(game.support_committed, 'button')}.`
- // TODO sensible actions when 0 buttons committed
- gen_action("defer")
+ view.actions.defer = game.support_committed > 0
view.actions.match = game.opposition_buttons >= game.support_committed
view.actions.supersede = game.opposition_buttons > game.support_committed
}