diff --git a/game/modules/tome/class/interface/PlayerDumpJSON.lua b/game/modules/tome/class/interface/PlayerDumpJSON.lua index 198657c1d2d90f4f27155e47ce5a0e8c157d3708..accc9a0c3730139c768b6726bcd4e12c1f942ceb 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 aba5e056bf87df61206b00fb57caffe81d47b8fe..0775a9737a83ff17c34ce9b89eb494abecddb7e5 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