summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-04 13:48:31 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-04 13:48:31 +0100
commit1b54fb06b630dee302accfc2a7029bfb53efddd1 (patch)
tree731f898c2e9495dc4c36a32f8e45c72c42451b31
parenteec2f83dfbe003bf534d534fd9f818b82a539c89 (diff)
downloadvotes-for-women-1b54fb06b630dee302accfc2a7029bfb53efddd1.tar.gz
show how many cubes remaining
-rw-r--r--rules.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 050a36a..007c935 100644
--- a/rules.js
+++ b/rules.js
@@ -1617,13 +1617,12 @@ states.campaigning_add_cubes = {
if (us_states.length) {
- view.prompt = `Campaigning: Add ${pluralize(game.campaigning.count, COLOR_NAMES[campaigner_color(game.selected_campaigner)] + ' cube')}, remove opponent's cubes`
+ let remaining = game.campaigning.count - game.campaigning.added
+ view.prompt = `Campaigning: Add ${pluralize(remaining, COLOR_NAMES[campaigner_color(game.selected_campaigner)] + ' cube')}, remove opponent's cubes`
if (can_move) {
view.prompt += ", and optionally Move Campaigner"
}
view.prompt += '.'
- // let remaining = game.campaigning.count - game.campaigning.added
- // view.prompt += ` ${pluralize(remaining, 'cube')} remaining.`
} else {
view.prompt = `Campaigning: No available States to Add or Remove cubes.`
gen_action("done")
@@ -2624,9 +2623,9 @@ states.vm_remove_cubes = {
inactive: "remove a cube.",
prompt() {
if (game.vm.all) {
- event_prompt(`Remove all ${COLOR_NAMES[game.vm.cubes]} cube.`)
+ event_prompt(`Remove all ${COLOR_NAMES[game.vm.cubes]} cubes.`)
} else {
- event_prompt(`Remove ${game.vm.count} ${COLOR_NAMES[game.vm.cubes]} cube`)
+ event_prompt(`Remove ${pluralize(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 += '.'