From 6eaf48c560411a79d8e887b770ca5ae005b5d292 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 20 May 2024 11:04:44 +0200 Subject: Chevaliers only affects missile step. --- rules.js | 9 ++++++--- rules.ts | 9 ++++++--- tools/gendata.js | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/rules.js b/rules.js index 8ffefc2..1b235b7 100644 --- a/rules.js +++ b/rules.js @@ -6693,9 +6693,12 @@ function get_modified_protection(lord, force) { protection = 2; } } - if (lord_has_capability(lord, AOW_LANCASTER_CHEVALIERS)) - if (force === MEN_AT_ARMS) - protection--; + if (lord_has_capability(lord, AOW_LANCASTER_CHEVALIERS)) { + if (force === MEN_AT_ARMS) { + if (is_missiles_step()) + protection--; + } + } return protection; } function is_yeomen_of_the_crown_triggered(lord, type) { diff --git a/rules.ts b/rules.ts index 3f246a9..4f38744 100644 --- a/rules.ts +++ b/rules.ts @@ -7862,9 +7862,12 @@ function get_modified_protection(lord: Lord, force: Force) { } } - if (lord_has_capability(lord, AOW_LANCASTER_CHEVALIERS)) - if (force === MEN_AT_ARMS) - protection -- + if (lord_has_capability(lord, AOW_LANCASTER_CHEVALIERS)) { + if (force === MEN_AT_ARMS) { + if (is_missiles_step()) + protection -- + } + } return protection } diff --git a/tools/gendata.js b/tools/gendata.js index 78cf893..912b125 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -1241,7 +1241,7 @@ arts_of_war_event("L16", "Warden of the Marches", "hold") arts_of_war_event("L17", "My crown is in my heart", "this_levy") arts_of_war_event("L18", "Parliament Votes", "this_levy") arts_of_war_event("L19", "Henry's Proclamation", "now") -arts_of_war_event("L20", "Parliament Truce", "hold") +arts_of_war_event("L20", "Parliament's Truce", "hold") arts_of_war_event("L21", "French Fleet", "this_campaign") arts_of_war_event("L22", "French Troops", "now") arts_of_war_event("L23", "Warwick's Propaganda", "now") -- cgit v1.2.3