Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions chronicle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,20 @@ dfhack.onStateChange[GLOBAL_KEY] = function(sc)
end
end

if dfhack.isMapLoaded() and dfhack.world.isFortressMode() then
load_state()
if state.enabled then
do_enable()
end
end

if dfhack_flags.module then return end

if not dfhack.world.isFortressMode() or not dfhack.isMapLoaded() then
qerror('chronicle requires a loaded fortress map')
end

load_state()
local args = {...}
local cmd = args[1] or 'print'

Expand Down