diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-19 16:33:57 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:12:42 +0100 |
commit | 9f9aec48dec4797f6276e3e71a7a3a6d1cf651dc (patch) | |
tree | 591d49d2b5d1fb9605dcdee4a2d3cca217857481 | |
parent | 87e4bf2532c8bb5c0aae10e0d076f5c59b1564e8 (diff) | |
download | shores-of-tripoli-9f9aec48dec4797f6276e3e71a7a3a6d1cf651dc.tar.gz |
tripoli: Pause to show desertion results.
-rw-r--r-- | rules.js | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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(); }, } |