From fa19ba428bcce98aa084f58717aa363b51b1cfcd Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 20 Aug 2024 23:56:00 +0200 Subject: fix undo and pause when returning congress --- rules.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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() { -- cgit v1.2.3