summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2025-01-20 10:49:47 +0100
committerteisuru <31881306+teisuru@users.noreply.github.com>2025-01-20 10:49:47 +0100
commit7ce679fa9898be1df134ea0518ba4f120f2f3e73 (patch)
treeca150b0ded235bda77b739984fb888afc28672d8
parent3d1cd8b9569b3257938deccd64f931fc61fbde7a (diff)
downloadplantagenet-7ce679fa9898be1df134ea0518ba4f120f2f3e73.tar.gz
fix quartermasters
removal effects on supply for this capability
-rw-r--r--rules.js10
-rw-r--r--rules.ts11
2 files changed, 0 insertions, 21 deletions
diff --git a/rules.js b/rules.js
index 9a10d9b..b78f1c8 100644
--- a/rules.js
+++ b/rules.js
@@ -3393,14 +3393,6 @@ function chamberlains_eligible_supply(source) {
}
return false;
}
-function quartermasters_eligible_supply(source) {
- if (lord_has_capability(game.command, AOW_LANCASTER_QUARTERMASTERS)) {
- for (let vassal of all_vassals)
- if (is_vassal_mustered_with(vassal, game.command) && source === get_vassal_seat(vassal))
- return true;
- }
- return false;
-}
function lord_has_stafford_branch(loc, lord) {
if (lord_has_capability(lord, AOW_YORK_STAFFORD_BRANCH)) {
return (loc === LOC_EXETER ||
@@ -3520,8 +3512,6 @@ function use_stronghold_supply(source, amount) {
add_lord_assets(game.command, PROV, amount);
if (chamberlains_eligible_supply(source))
logcap(AOW_LANCASTER_CHAMBERLAINS);
- else if (quartermasters_eligible_supply(source))
- logcap(AOW_LANCASTER_QUARTERMASTERS);
else
deplete_locale(source);
}
diff --git a/rules.ts b/rules.ts
index 4e2f1b5..f58baef 100644
--- a/rules.ts
+++ b/rules.ts
@@ -4132,15 +4132,6 @@ function chamberlains_eligible_supply(source: Locale) {
return false
}
-function quartermasters_eligible_supply(source: Locale) {
- if (lord_has_capability(game.command, AOW_LANCASTER_QUARTERMASTERS)) {
- for (let vassal of all_vassals)
- if (is_vassal_mustered_with(vassal, game.command) && source === get_vassal_seat(vassal))
- return true
- }
- return false
-}
-
function lord_has_stafford_branch(loc: Locale, lord: Lord) {
if (lord_has_capability(lord, AOW_YORK_STAFFORD_BRANCH)) {
return (
@@ -4282,8 +4273,6 @@ function use_stronghold_supply(source: Locale, amount: number) {
add_lord_assets(game.command, PROV, amount)
if (chamberlains_eligible_supply(source))
logcap(AOW_LANCASTER_CHAMBERLAINS)
- else if (quartermasters_eligible_supply(source))
- logcap(AOW_LANCASTER_QUARTERMASTERS)
else
deplete_locale(source)
}