summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-27 12:02:18 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commit9f27a950fcf6041dddd013155c24450bf8af52f6 (patch)
treeabc3736b63d058d28dfffe24f0bffd21829b642b
parent96f2dd8ec10988947d86e97186220f34cadf31dd (diff)
downloadnevsky-9f27a950fcf6041dddd013155c24450bf8af52f6.tar.gz
Fix disbanding lord past end of calendar.
Use the helper function!
-rw-r--r--rules.js4
1 files 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)}.`)
}