diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-13 18:23:36 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-13 18:23:36 +0100 |
commit | a746170263e02374a3a0543bbe6944c5a0e71020 (patch) | |
tree | a3c97537da47293b6a60c60a6d5f8aa7c20cc2df /rules.js | |
parent | a1fbe6661a86a81adfcb8a0fb531f03ae3218d3e (diff) | |
download | maria-a746170263e02374a3a0543bbe6944c5a0e71020.tar.gz |
add political trump suite choice undo pause
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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() } } |