Skip to content
Snippets Groups Projects
Commit 67486cfa authored by DarkGod's avatar DarkGod
Browse files

Add new hook "ToME:runDone"

parent 90427a02
No related branches found
No related tags found
No related merge requests found
...@@ -88,11 +88,12 @@ end ...@@ -88,11 +88,12 @@ end
function _M:run() function _M:run()
class:triggerHook{"ToME:run"} class:triggerHook{"ToME:run"}
return self:runReal() local ret = self:runReal()
class:triggerHook{"ToME:runDone"}
return ret
end end
function _M:runReal() function _M:runReal()
self.delayed_log_damage = {} self.delayed_log_damage = {}
self.delayed_log_messages = {} self.delayed_log_messages = {}
self.calendar = Calendar.new("/data/calendar_allied.lua", "Today is the %s %s of the %s year of the Age of Ascendancy of Maj'Eyal.\nThe time is %02d:%02d.", 122, 167, 11) self.calendar = Calendar.new("/data/calendar_allied.lua", "Today is the %s %s of the %s year of the Age of Ascendancy of Maj'Eyal.\nThe time is %02d:%02d.", 122, 167, 11)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment