diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-11 15:56:06 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-11 20:26:34 +0100 |
commit | c11c5d79fb029614210b905569f9602d20ae3c86 (patch) | |
tree | e75528818fbf5f3f5b0c74c45e32f259fec2ad32 | |
parent | 66e6dec72f237dcc9fc9b22a2b052f1f80924225 (diff) | |
download | votes-for-women-c11c5d79fb029614210b905569f9602d20ae3c86.tar.gz |
Re-roll / Accept instead of Re-roll / Next.
-rw-r--r-- | play.js | 1 | ||||
-rw-r--r-- | rules.js | 16 |
2 files changed, 9 insertions, 8 deletions
@@ -881,6 +881,7 @@ function on_update() { // eslint-disable-line no-unused-vars action_button("roll", "Roll") action_button("reroll", "Re-roll") action_button("commit", "Commit") + action_button("accept", "Accept") action_button("next", "Next") action_button("end_event", "End Event") action_button("next_turn", "Next Turn") @@ -1439,7 +1439,7 @@ states.final_voting_roll = { gen_action("reroll") if (game.active === game.voting_winner) - gen_action("next") + gen_action("accept") else gen_action("pass") } @@ -1465,7 +1465,7 @@ states.final_voting_roll = { update_final_voting_result() }, - next() { + accept() { // allow opponent to re-roll if they can next_player() // if (!can_reroll()) @@ -1559,7 +1559,7 @@ states.campaigning = { view.prompt = `Campaigning: You rolled ${game.roll.join(", ")}.` if (player_buttons() > 0) gen_action("reroll") - gen_action("next") + gen_action("accept") } }, roll() { @@ -1569,7 +1569,7 @@ states.campaigning = { decrease_player_buttons(1) game.roll = roll_ndx_list(game.count, game.dice, "Re-rolled") }, - next() { + accept() { goto_campaigning_assign() } } @@ -1849,7 +1849,7 @@ states.lobbying = { if (player_buttons() > 0 && game.roll < game.count) gen_action("reroll") - gen_action("next") + gen_action("accept") } }, roll() { @@ -1859,7 +1859,7 @@ states.lobbying = { decrease_player_buttons(1) game.roll = roll_ndx_count_success(game.count, game.dice, "Re-rolled") }, - next() { + accept() { if (game.roll > 0) { game.count = game.roll if (game.active === SUF) { @@ -2945,7 +2945,7 @@ states.vm_roll = { } else { if (player_buttons() > 0 && (!game.vm.for_success || game.vm.roll < 3)) gen_action("reroll") - gen_action("next") + gen_action("accept") } }, roll() { @@ -2961,7 +2961,7 @@ states.vm_roll = { else game.vm.roll = roll_ndx(game.vm.count, game.vm.d, "Re-rolled") }, - next() { + accept() { push_undo() vm_next() } |