summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-07-21 16:46:24 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-21 00:28:20 +0200
commit869e814ec023077469e8603b3a591cbb99a7b803 (patch)
tree6ab252244884d54ddd16133befaf84ac5d3ee225 /rules.js
parentef6dc279b0aa0fc8a69d41458021e4fdbc6ec853 (diff)
downloadwashingtons-war-869e814ec023077469e8603b3a591cbb99a7b803.tar.gz
prompts
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js17
1 files 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()