From 8978f968a967848bb848d9260a5a4385ee7c7c04 Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Mon, 16 Oct 2023 20:37:10 +0200 Subject: Capability L33 --- rules.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rules.js b/rules.js index c0c3bca..0625fc9 100644 --- a/rules.js +++ b/rules.js @@ -5020,6 +5020,13 @@ function add_battle_capability_troops() { if (lord_has_capability(lord, AOW_YORK_PERCYS_NORTH2) && can_supply_at(LOC_CARLISLE, 0)) { add_lord_forces(lord, MILITIA, 4) } + if (is_lord_on_map(lord) && + !is_lord_on_calendar(lord) && + lord_has_capability(lord, AOW_LANCASTER_PHILIBERT_DE_CHANDEE) && + (((is_friendly_locale(data.locales[here])) && data.port_2.includes(here)) || + is_adjacent_friendly_port_english_channel(here))) { + add_lord_forces(lord, MEN_AT_ARMS, 2) + } } } @@ -5047,6 +5054,13 @@ function remove_battle_capability_troops() { if (lord_has_capability(lord, AOW_YORK_PERCYS_NORTH2) && can_supply_at(LOC_CARLISLE, 0)) { add_lord_forces(lord, MILITIA, -4) } + if (is_lord_on_map(lord) && + !is_lord_on_calendar(lord) && + lord_has_capability(lord, AOW_LANCASTER_PHILIBERT_DE_CHANDEE) && + (((is_friendly_locale(data.locales[here])) && data.port_2.includes(here)) || + is_adjacent_friendly_port_english_channel(here))) { + add_lord_forces(lord, MEN_AT_ARMS, -2) + } } } -- cgit v1.2.3