summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-19 16:33:57 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:12:42 +0100
commit9f9aec48dec4797f6276e3e71a7a3a6d1cf651dc (patch)
tree591d49d2b5d1fb9605dcdee4a2d3cca217857481
parent87e4bf2532c8bb5c0aae10e0d076f5c59b1564e8 (diff)
downloadshores-of-tripoli-9f9aec48dec4797f6276e3e71a7a3a6d1cf651dc.tar.gz
tripoli: Pause to show desertion results.
-rw-r--r--rules.js14
1 files changed, 14 insertions, 0 deletions
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();
},
}