diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-30 16:38:09 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-30 16:38:09 +0100 |
commit | 726b52c4c2833f6eceef540b3ca5102fee0cd5d4 (patch) | |
tree | a4ed71672267867082ceab4ce4915109000cce49 | |
parent | 123e4f3941b9ed9bfff6613939c7988a3d4d3658 (diff) | |
download | votes-for-women-726b52c4c2833f6eceef540b3ca5102fee0cd5d4.tar.gz |
campaigning prompts
-rw-r--r-- | rules.js | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -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") } }, |