From 3509c60db05641765e652dd60ca63b14cbed6369 Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Sat, 23 Sep 2023 22:45:33 +0200 Subject: marge L14 bugfix --- rules.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/rules.js b/rules.js index 8871d37..dc4e7e0 100644 --- a/rules.js +++ b/rules.js @@ -5515,13 +5515,14 @@ function has_friendly_lord_who_may_be_paid() { function goto_pay() { log_br() for (let lord = first_friendly_lord; lord <= last_friendly_lord; ++lord) { - if (count_lord_all_forces(lord) >= 13) - set_lord_unfed(lord, 3) - else if (count_lord_all_forces(lord) >= 7) - set_lord_unfed(lord, 2) - else - set_lord_unfed(lord, 1) + if (game.active === LANCASTER && is_lord_on_map(lord) && lord_has_capability(LORD_NORTHUMBERLAND_L, AOW_YORK_PERCYS_POWER) && data.locales[get_lord_locale(LORD_NORTHUMBERLAND_L)].region === "North" && data.locales[get_lord_locale(lord)].region === "North") { + set_lord_unfed(lord, 0) } + else { + n = Math.ceil(count_lord_all_forces(lord)/6) + set_lord_unfed(lord, n) + } + } game.state = "pay" } -- cgit v1.2.3