summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-13 18:23:36 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-13 18:23:36 +0100
commita746170263e02374a3a0543bbe6944c5a0e71020 (patch)
treea3c97537da47293b6a60c60a6d5f8aa7c20cc2df
parenta1fbe6661a86a81adfcb8a0fb531f03ae3218d3e (diff)
downloadmaria-a746170263e02374a3a0543bbe6944c5a0e71020.tar.gz
add political trump suite choice undo pause
-rw-r--r--rules.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index f72fec2..b68aef9 100644
--- a/rules.js
+++ b/rules.js
@@ -4510,9 +4510,21 @@ states.determine_trump_suit = {
view.actions.suit = [ 0, 1, 2, 3 ]
},
suit(s) {
+ push_undo()
game.trump = s
log(power_name[game.power] + " chose " + suit_name[game.trump] + " as trump.")
log_br()
+ game.state = "determine_trump_suit_done"
+ }
+}
+
+states.determine_trump_suit_done = {
+ inactive: "determine the political trump suit",
+ prompt() {
+ prompt("Political trump suit is " + suit_name[game.trump] + ".")
+ view.actions.next = 1
+ },
+ next() {
goto_place_tc_on_display()
}
}