From bbea99412693a523994ffd789954636490ab4fda Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Sun, 2 Jan 2011 16:04:42 +0000 Subject: [PATCH] Resurrecting now ensure the player has enuogh energy to act first git-svn-id: http://svn.net-core.org/repos/t-engine4@2274 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/class/interface/PlayerDumpJSON.lua | 2 +- game/modules/tome/dialogs/DeathDialog.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/game/modules/tome/class/interface/PlayerDumpJSON.lua b/game/modules/tome/class/interface/PlayerDumpJSON.lua index 198657c1d2..accc9a0c37 100644 --- a/game/modules/tome/class/interface/PlayerDumpJSON.lua +++ b/game/modules/tome/class/interface/PlayerDumpJSON.lua @@ -98,7 +98,7 @@ function _M:dumpToJSON(js) if self.winner then local win = js:newSection("winner", "win", "text", nil) for i, line in ipairs(self.winner_text) do - win[#win+1] = line:removeColorCodes() + win[#win+1] = { val=line:removeColorCodes(), bg="000000"} end end diff --git a/game/modules/tome/dialogs/DeathDialog.lua b/game/modules/tome/dialogs/DeathDialog.lua index aba5e056bf..0775a9737a 100644 --- a/game/modules/tome/dialogs/DeathDialog.lua +++ b/game/modules/tome/dialogs/DeathDialog.lua @@ -98,7 +98,9 @@ function _M:resurrectBasic(actor) game.level:addEntity(actor) game:unregisterDialog(self) game.level.map:redisplay() + actor.energy.value = game.energy_to_act actor.changed = true + game.paused = true world:gainAchievement("UNSTOPPABLE", actor) end -- GitLab