summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-20 23:56:00 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-21 00:28:20 +0200
commitfa19ba428bcce98aa084f58717aa363b51b1cfcd (patch)
treef11a6d9e17068e05753b87ad89c9ad6ee124f9ac /rules.js
parenta0c45f508147969b9f83070d973cf030e3af14ed (diff)
downloadwashingtons-war-fa19ba428bcce98aa084f58717aa363b51b1cfcd.tar.gz
fix undo and pause when returning congress
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index fc283b9..cfbe0a5 100644
--- a/rules.js
+++ b/rules.js
@@ -4136,13 +4136,25 @@ states.return_continental_congress = {
push_undo()
log("Returned Continental Congress to S" + where + ".")
game.congress = where
- goto_place_pc_markers_segment(false)
+ game.state = "return_continental_congress_confirm"
},
pass() {
goto_place_pc_markers_segment(false)
},
}
+states.return_continental_congress_confirm = {
+ inactive: "to return the continental congress",
+ prompt() {
+ view.prompt = "Return Continental Congress: Done."
+ view.actions.next = 1
+ },
+ next() {
+ clear_undo()
+ goto_place_pc_markers_segment(false)
+ },
+}
+
/* POLITICAL CONTROL PHASE: PLACE PC MARKERS */
function has_american_place_pc_markers_segment() {