diff options
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -1908,6 +1908,8 @@ function reset_unpaid_lords(here) { } } function goto_pay_troops() { + if (is_percys_power_triggered()) + logcap(AOW_LANCASTER_PERCYS_POWER); for (let lord of all_friendly_lords()) { let here = get_lord_locale(lord); let n = Math.ceil(count_lord_all_forces(lord) / 6); @@ -1915,8 +1917,7 @@ function goto_pay_troops() { logcap(AOW_LANCASTER_MADAME_LA_GRANDE); add_lord_assets(lord, COIN, 1); } - if (lord_has_capability(lord, AOW_LANCASTER_PERCYS_POWER) && is_lord_in_north(lord)) { - logcap(AOW_LANCASTER_PERCYS_POWER); + if (is_percys_power_triggered() && is_lord_in_north(lord)) { n = 0; } set_lord_unfed(lord, n); @@ -2086,7 +2087,7 @@ function goto_pay_lords() { log_br(); for (let lord of all_friendly_lords()) { if (is_lord_on_map(lord)) { - if (lord_has_capability(lord, AOW_LANCASTER_PERCYS_POWER) && is_lord_in_north(lord)) + if (is_percys_power_triggered() && is_lord_in_north(lord)) continue; set_lord_unfed(lord, 1); } @@ -2168,7 +2169,7 @@ function for_each_unpaid_vassal(f) { for (let v of all_vassals) { let lord = get_vassal_lord(v); if (is_friendly_lord(lord) && get_vassal_service(v) === current_turn()) { - if (lord_has_capability(lord, AOW_LANCASTER_PERCYS_POWER) && is_lord_in_north(lord)) + if (is_percys_power_triggered() && is_lord_in_north(lord)) continue; f(v); } @@ -9680,6 +9681,12 @@ function end_heralds_attempt() { spend_all_actions(); resume_command(); } +// === CAPABILITY: PERCY'S POWER === +function is_percys_power_triggered() { + return (game.active === LANCASTER && + lord_has_capability(LORD_NORTHUMBERLAND_L, AOW_LANCASTER_PERCYS_POWER) && + is_lord_in_north(LORD_NORTHUMBERLAND_L)); +} // === EVENTS: IMMEDIATE === function goto_immediate_event(c) { set_add(game.events, c); |