diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-27 12:02:18 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:39 +0100 |
commit | 9f27a950fcf6041dddd013155c24450bf8af52f6 (patch) | |
tree | abc3736b63d058d28dfffe24f0bffd21829b642b | |
parent | 96f2dd8ec10988947d86e97186220f34cadf31dd (diff) | |
download | nevsky-9f27a950fcf6041dddd013155c24450bf8af52f6.tar.gz |
Fix disbanding lord past end of calendar.
Use the helper function!
-rw-r--r-- | rules.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)}.`) } |