diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-08-20 23:56:00 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-08-21 00:28:20 +0200 |
commit | fa19ba428bcce98aa084f58717aa363b51b1cfcd (patch) | |
tree | f11a6d9e17068e05753b87ad89c9ad6ee124f9ac | |
parent | a0c45f508147969b9f83070d973cf030e3af14ed (diff) | |
download | washingtons-war-fa19ba428bcce98aa084f58717aa363b51b1cfcd.tar.gz |
fix undo and pause when returning congress
-rw-r--r-- | rules.js | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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() { |