From 9f9aec48dec4797f6276e3e71a7a3a6d1cf651dc Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 19 Jun 2021 16:33:57 +0200 Subject: tripoli: Pause to show desertion results. --- rules.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rules.js b/rules.js index cbb3d96..b6bb546 100644 --- a/rules.js +++ b/rules.js @@ -1598,9 +1598,23 @@ states.land_battle_tripolitan_card = { for (let i = 0; i < n; ++i) move_one_piece(AR_INFANTRY, game.where, UNITED_STATES_SUPPLY); log("Deserters: " + n + " Arab infantry."); + game.flash = n + " Arab infantry deserted."; + game.state = 'mercenaries_desert_results'; + }, + next: function (card) { goto_land_battle_round(); }, +} + +states.mercenaries_desert_results = { + prompt: function (view, current) { + view.prompt = "Mercenaries Desert in " + SPACES[game.where] + " \u2014 " + game.flash; + if (is_inactive_player(current)) + return; + gen_action(view, 'next'); + }, next: function (card) { + delete game.flash; goto_land_battle_round(); }, } -- cgit v1.2.3