From 9f27a950fcf6041dddd013155c24450bf8af52f6 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 27 Jan 2023 12:02:18 +0100 Subject: Fix disbanding lord past end of calendar. Use the helper function! --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index db4d977..aebb1cb 100644 --- a/rules.js +++ b/rules.js @@ -10110,9 +10110,9 @@ function disband_lord(lord, permanently = false) { set_lord_service(lord, NEVER) } else { if (is_levy_phase()) - set_lord_locale(lord, CALENDAR + turn + data.lords[lord].service) + set_lord_cylinder_on_calendar(lord, turn + data.lords[lord].service) else - set_lord_locale(lord, CALENDAR + turn + data.lords[lord].service + 1) + set_lord_cylinder_on_calendar(lord, turn + data.lords[lord].service + 1) set_lord_service(lord, NEVER) log(`Disbanded L${lord} to ${get_lord_calendar(lord)}.`) } -- cgit v1.2.3