summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-09 15:34:57 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-09 15:34:57 +0100
commit82b21e6c164fe02e38f0db5c53d5fdc19443202b (patch)
tree61244a7004c9db406d0efeb670b726dd7480d88c
parenta7eb28474e424d8fa549537486e5184e0fba0e34 (diff)
downloadvotes-for-women-82b21e6c164fe02e38f0db5c53d5fdc19443202b.tar.gz
[buttons] instead of [next]
-rw-r--r--play.js1
-rw-r--r--rules.js16
2 files changed, 9 insertions, 8 deletions
diff --git a/play.js b/play.js
index 97b1ea1..45b8f2c 100644
--- a/play.js
+++ b/play.js
@@ -847,6 +847,7 @@ function on_update() { // eslint-disable-line no-unused-vars
action_button("draw", "Draw")
action_button("next", "Next")
+ action_button("buttons", "Buttons")
action_button("move", "Move")
action_button("purple", "Purple")
action_button("yellow", "Yellow")
diff --git a/rules.js b/rules.js
index 0db656f..f69902f 100644
--- a/rules.js
+++ b/rules.js
@@ -1802,9 +1802,9 @@ states.organizing = {
inactive: "receive buttons.",
prompt() {
view.prompt = `Organizing: Receive ${pluralize(game.count, 'button')}`
- gen_action("next")
+ gen_action("buttons")
},
- next() {
+ buttons() {
push_undo()
if (game.count)
increase_player_buttons(game.count)
@@ -2484,9 +2484,9 @@ states.vm_receive_buttons = {
inactive: "receive buttons.",
prompt() {
event_prompt(`Receive ${pluralize(game.vm.count, 'button')}`)
- gen_action("next")
+ gen_action("buttons")
},
- next() {
+ buttons() {
push_undo()
increase_player_buttons(game.vm.count)
vm_next()
@@ -2497,9 +2497,9 @@ states.vm_spend_buttons = {
inactive: "spend buttons.",
prompt() {
event_prompt(`Spend ${pluralize(game.vm.count, 'button')}`)
- gen_action("next")
+ gen_action("buttons")
},
- next() {
+ buttons() {
push_undo()
decrease_player_buttons(game.vm.count)
vm_next()
@@ -2510,9 +2510,9 @@ states.vm_opponent_loses_buttons = {
inactive: "make you lose buttons.",
prompt() {
event_prompt(`Opponent loses ${pluralize(game.vm.count, 'button')}`)
- gen_action("next")
+ gen_action("buttons")
},
- next() {
+ buttons() {
push_undo()
decrease_opponent_buttons(game.vm.count)
vm_next()