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

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
parent d1f2825c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
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