summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-20 11:04:44 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-20 11:04:44 +0200
commit6eaf48c560411a79d8e887b770ca5ae005b5d292 (patch)
tree92c72d21414f2a0baf4a049550d815d6472f8614
parenta8b40c2aa493180c555953168cf58c46015595f2 (diff)
downloadplantagenet-6eaf48c560411a79d8e887b770ca5ae005b5d292.tar.gz
Chevaliers only affects missile step.
-rw-r--r--rules.js9
-rw-r--r--rules.ts9
-rw-r--r--tools/gendata.js2
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")