diff options
author | teisuru <31881306+teisuru@users.noreply.github.com> | 2023-10-15 05:01:18 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:55 +0100 |
commit | 2663781a5dae52f23bab0ffe2b7f16ca0c6b17f5 (patch) | |
tree | b61766ce9084aedb7d50ef17d8c4b3d7e8095b1b | |
parent | 84f422e65573348e58c8dc278a693086ce22aa47 (diff) | |
download | plantagenet-2663781a5dae52f23bab0ffe2b7f16ca0c6b17f5.tar.gz |
various fixes for exiled lords and vassals
-rw-r--r-- | rules.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |