Skip to content

Commit d912fc2

Browse files
authored
Merge pull request #6 from LoireLab/codex/fix-artifact_record.year_tick-error
Fix chronicle artifact timestamp
2 parents 3e91375 + 4ee1a21 commit d912fc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chronicle.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ local function check_artifacts()
4545
for _, rec in ipairs(df.global.world.artifacts.all) do
4646
if rec.id > last_id then
4747
local name = dfhack.translation.translateName(rec.name)
48-
-- artifact_record stores the creation tick in `year_tick`
49-
local date = format_date(rec.year, rec.year_tick or 0)
48+
-- artifact_record stores the creation tick in `season_tick`
49+
local date = format_date(rec.year, rec.season_tick or 0)
5050
add_entry(string.format('Artifact "%s" created on %s', name, date))
5151
last_id = rec.id
5252
end

0 commit comments

Comments
 (0)