summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js30
1 files changed, 29 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 94139f8..dc9c448 100644
--- a/rules.js
+++ b/rules.js
@@ -4094,8 +4094,21 @@ states.place_french_navy = {
gen_place_french_navy()
},
sea(zone) {
+ push_undo()
log("French Navy at " + ZONE_NAME[zone] + ".")
game.french_navy = zone
+ game.state = "place_french_navy_confirm"
+ },
+}
+
+states.place_french_navy_confirm = {
+ inactive: "to place French navy",
+ prompt() {
+ view.prompt = "Place the French Navy: Done."
+ view.actions.next = 1
+ },
+ next() {
+ clear_undo()
goto_political_control_phase()
},
}
@@ -4441,17 +4454,32 @@ states.european_war = {
inactive: "to remove 2 British CUs",
prompt() {
view.prompt = "European War: Remove 2 British CU from any spaces. " + game.count + " left."
+ if (game.count > 0)
for (let space of all_spaces)
if (has_british_cu(space))
gen_action_space(space)
view.actions.pass = 1
},
space(where) {
+ push_undo()
remove_british_cu(where, 1)
if (--game.count === 0)
- goto_end_phase()
+ game.state = "european_war_confirm"
},
pass() {
+ clear_undo()
+ goto_end_phase()
+ },
+}
+
+states.european_war_confirm = {
+ inactive: "to remove 2 British CUs",
+ prompt() {
+ view.prompt = "European War: Done."
+ view.actions.next = 1
+ },
+ next() {
+ clear_undo()
goto_end_phase()
},
}