From b0a774097c1d5f9e342b65d1413354cdf064a981 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 8 Feb 2023 16:11:54 +0100 Subject: Special handling of Converts when discarding due to hindered. --- rules.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/rules.js b/rules.js index d729f3d..5515fef 100644 --- a/rules.js +++ b/rules.js @@ -4742,13 +4742,30 @@ states.march_laden = { view.group = game.group - if (prov > transport * 2 || (prov > transport && view.actions < 2)) + if (prov <= transport * 2 && group_has_teutonic_converts()) + view.prompt = `March: Converts.` + else if (prov > transport * 2 || (prov > transport && view.actions < 2)) view.prompt = `March: Hindered with ${loot} Loot, ${prov} Provender, and ${transport} Transport.` else if (loot > 0 || prov > transport) view.prompt = `March: Laden with ${loot} Loot, ${prov} Provender, and ${transport} Transport.` else view.prompt = `March: Unladen.` + if (group_has_teutonic_converts()) { + if (prov <= transport * 2) { + view.actions.march = 1 + gen_action_locale(to) + } else { + for (let lord of game.group) { + if (get_lord_assets(lord, PROV) > 0) { + view.prompt += " Discard Provender." + gen_action_prov(lord) + } + } + } + return + } + if (prov <= transport * 2) { if (loot > 0 || prov > transport) { if (game.actions >= 2) { -- cgit v1.2.3