summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js18
1 files changed, 15 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 9f58ac2..8e9cf10 100644
--- a/rules.js
+++ b/rules.js
@@ -816,9 +816,21 @@ states.strategy_phase = {
gen_action("done")
} else {
view.prompt = `Strategy: Suffragist committed ${pluralize(game.support_committed, 'button')}.`
- 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
+ view.actions.defer = 0
+ view.actions.match = 0
+ view.actions.supersede = 0
+ if (game.support_committed > 0) {
+ view.actions.defer = 1
+ view.prompt += ` Defer with 0 buttons.`
+ }
+ if (game.opposition_buttons >= game.support_committed) {
+ view.actions.match = 1
+ view.prompt += ` Match with ${pluralize(game.support_committed, 'button')}.`
+ }
+ if (game.opposition_buttons > game.support_committed) {
+ view.actions.supersede = 1
+ view.prompt += ` Supersede with ${pluralize(game.support_committed + 1, 'button')}.`
+ }
}
},
commit_1_button() {