summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-02-08 16:11:54 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:40 +0100
commitb0a774097c1d5f9e342b65d1413354cdf064a981 (patch)
treeb9638639f94645a724f6f1623d90d0ca792b3e6b
parent1c296f4fc1fd5644dd70fd256e9fe1cb0edde79d (diff)
downloadnevsky-b0a774097c1d5f9e342b65d1413354cdf064a981.tar.gz
Special handling of Converts when discarding due to hindered.
-rw-r--r--rules.js19
1 files changed, 18 insertions, 1 deletions
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) {