From 2663781a5dae52f23bab0ffe2b7f16ca0c6b17f5 Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Sun, 15 Oct 2023 05:01:18 +0200 Subject: various fixes for exiled lords and vassals --- rules.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rules.js b/rules.js index 5ca0d14..24fa6b6 100644 --- a/rules.js +++ b/rules.js @@ -1352,7 +1352,7 @@ function muster_vassal(vassal, lord) { } function disband_vassal(vassal) { - if (data.vassals[vassa].service > 0) { + if (data.vassals[vassal].service > 0) { let new_turn = current_turn() + (6 - data.vassals[vassal].service) set_vassal_lord_and_service(vassal, VASSAL_CALENDAR, new_turn) log(`Disbanded V${vassal} to turn ${current_turn() + (6 - data.vassals[vassal].service)}.`) @@ -4241,7 +4241,7 @@ function get_lord_in_exile(lord) { function exile_lord(lord) { set_lord_in_exile(lord) - disband_lord(lord) + disband_lord(lord, false) } function remove_lord_from_exile(lord) { @@ -7000,7 +7000,7 @@ function disband_lord(lord, permanently = false) { for (let x = 0; x < FORCE_TYPE_COUNT; ++x) { set_lord_forces(lord, x, 0) - set_lord_routed(lord, x, 0) + //set_lord_routed(lord, x, 0) } set_lord_moved(lord, 0) -- cgit v1.2.3