From 869e814ec023077469e8603b3a591cbb99a7b803 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 21 Jul 2024 16:46:24 +0200 Subject: prompts --- rules.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/rules.js b/rules.js index 75c538f..1ed5c65 100644 --- a/rules.js +++ b/rules.js @@ -987,12 +987,15 @@ function goto_committees_of_correspondence() { states.committees_of_correspondence = { inactive: "to place PC markers", prompt() { - view.prompt = "Committees of Correspondence: Place 1 PC marker in each of the 13 colonies." if (game.colonies.length > 0) { - view.prompt += " " + game.colonies.length + " left." + view.prompt = "Committees of Correspondence: Place a PC marker in " + if (game.colonies.length <= 3) + view.prompt += game.colonies.map(x=>data.colony_name[x]).join(" and ") + "." + else + view.prompt += "each of the 13 colonies." gen_place_american_pc_in_colony(game.colonies) } else { - view.prompt += " Done." + view.prompt = "Committees of Correspondence: Done." view.actions.next = 1 } }, @@ -1022,11 +1025,13 @@ function goto_for_the_king() { states.for_the_king = { inactive: "to place PC markers", prompt() { - view.prompt = "For the King: Place 3 PC markers." - if (game.count > 0) + if (game.count > 0) { + view.prompt = "For the King: Place 3 PC markers." gen_british_pc_ops() - else + } else { view.actions.next = 1 + view.prompt = "For the King: Done." + } }, space(s) { push_undo() -- cgit v1.2.3