diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-02-08 16:11:54 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:40 +0100 |
commit | b0a774097c1d5f9e342b65d1413354cdf064a981 (patch) | |
tree | b9638639f94645a724f6f1623d90d0ca792b3e6b | |
parent | 1c296f4fc1fd5644dd70fd256e9fe1cb0edde79d (diff) | |
download | nevsky-b0a774097c1d5f9e342b65d1413354cdf064a981.tar.gz |
Special handling of Converts when discarding due to hindered.
-rw-r--r-- | rules.js | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -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) { |