Skip to content
Snippets Groups Projects
Commit 50a335c1 authored by dg's avatar dg
Browse files

added death_dialog

git-svn-id: http://svn.net-core.org/repos/t-engine4@2342 51575b47-30f0-44d4-a5cc-537603b46e54
parent 13c5839a
No related branches found
No related tags found
No related merge requests found
......@@ -417,7 +417,13 @@ function _M:die(src)
self.killedBy = src
self.died_times[#self.died_times+1] = {name=src.name, level=self.level, turn=game.turn}
self:registerDeath(self.killedBy)
game:registerDialog(DeathDialog.new(self))
if self.death_dialog then
game:registerDialog(require("mod.class."..self.death_dialog).new(self))
else
game:registerDialog(DeathDialog.new(self))
end
game.player:saveUUID()
else
mod.class.Actor.die(self, src)
end
......
No preview for this file type
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