summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-30 16:23:11 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-30 16:23:11 +0100
commit123e4f3941b9ed9bfff6613939c7988a3d4d3658 (patch)
tree3797e9de34662186158cb3dac73b7d3cdc1a2ffc /rules.js
parentb7e7aa9fedaed26830ea961f21f86e303fd2528d (diff)
downloadvotes-for-women-123e4f3941b9ed9bfff6613939c7988a3d4d3658.tar.gz
show how many cubes to add/remove
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 09befdf..f4e91e6 100644
--- a/rules.js
+++ b/rules.js
@@ -2442,7 +2442,11 @@ states.vm_add_cubes = {
// if (has_opponent_cubes)
// event_prompt("Choose a cube color to add or remove an Opponent's cube.")
} else {
- event_prompt(`Add a ${COLOR_NAMES[game.vm.cube_color]} cube.`)
+
+ event_prompt(`Add ${pluralize(game.vm.count, COLOR_NAMES[game.vm.cube_color] + ' cube')}`)
+ if (game.vm.limit)
+ view.prompt += `, no more than ${game.vm.limit} per state`
+ view.prompt += '.'
// if (has_opponent_cubes)
// event_prompt(`Add a ${COLOR_NAMES[game.vm.cube_color]} cube or remove an Opponent's cube.`)
}
@@ -2546,7 +2550,14 @@ function goto_vm_remove_cubes() {
states.vm_remove_cubes = {
inactive: "remove a cube.",
prompt() {
- event_prompt(`Remove a ${COLOR_NAMES[game.vm.cubes]} cube.`)
+ if (game.vm.all) {
+ event_prompt(`Remove all ${COLOR_NAMES[game.vm.cubes]} cube.`)
+ } else {
+ event_prompt(`Remove ${game.vm.count} ${COLOR_NAMES[game.vm.cubes]} cube`)
+ if (game.vm.limit)
+ view.prompt += `, no more than ${game.vm.limit} per state`
+ view.prompt += '.'
+ }
for (let s of game.vm.us_states) {
if ((game.vm.cubes === PURPLE || game.vm.cubes === PURPLE_OR_YELLOW) && purple_cubes(s))