From a746170263e02374a3a0543bbe6944c5a0e71020 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 13 Nov 2024 18:23:36 +0100 Subject: add political trump suite choice undo pause --- rules.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'rules.js') 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() } } -- cgit v1.2.3