summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-30 16:38:09 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-30 16:38:09 +0100
commit726b52c4c2833f6eceef540b3ca5102fee0cd5d4 (patch)
treea4ed71672267867082ceab4ce4915109000cce49
parent123e4f3941b9ed9bfff6613939c7988a3d4d3658 (diff)
downloadvotes-for-women-726b52c4c2833f6eceef540b3ca5102fee0cd5d4.tar.gz
campaigning prompts
-rw-r--r--rules.js15
1 files changed, 6 insertions, 9 deletions
diff --git a/rules.js b/rules.js
index f4e91e6..71a8783 100644
--- a/rules.js
+++ b/rules.js
@@ -1535,7 +1535,6 @@ function filter_us_states(us_states) {
states.campaigning_add_cubes = {
inactive: "do Campaigning.",
prompt() {
- // let has_opponent_cubes = false
let can_move = false
if (!game.campaigning.added && player_buttons() > 0 && !game.campaigning.moved) {
gen_action("move")
@@ -1547,7 +1546,6 @@ states.campaigning_add_cubes = {
for (let s of us_states) {
if (opponent_cubes(s)) {
- // has_opponent_cubes = true
if (game.active === SUF) {
gen_action_red_cube(s)
} else {
@@ -1563,16 +1561,15 @@ states.campaigning_add_cubes = {
if (us_states.length) {
- view.prompt = `Campaigning: Add a ${COLOR_NAMES[campaigner_color(game.selected_campaigner)]} cube`
- // if (has_opponent_cubes)
- // view.prompt += " or remove an Opponent's cube"
+ view.prompt = `Campaigning: Add ${pluralize(game.campaigning.count, COLOR_NAMES[campaigner_color(game.selected_campaigner)] + ' cube')}, remove opponent's cubes`
if (can_move) {
- view.prompt += " or Move to another Region"
+ view.prompt += ", and optionally Move Campaigner"
}
- let remaining = game.campaigning.count - game.campaigning.added
- view.prompt += `. ${pluralize(remaining, 'cube')} remaining.`
+ 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 a ${COLOR_NAMES[campaigner_color(game.selected_campaigner)]} cube.`
+ view.prompt = `Campaigning: No available States to Add or Remove cubes.`
gen_action("done")
}
},