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

Saving the game while running/resting will not crash the game/savefile

git-svn-id: http://svn.net-core.org/repos/t-engine4@1711 51575b47-30f0-44d4-a5cc-537603b46e54
parent cfe13a5e
No related branches found
No related tags found
No related merge requests found
......@@ -665,7 +665,7 @@ function _M:setupCommands()
a.faction = "enemies"
self.zone:addEntity(self.level, a, "actor", self.player.x+1, self.player.y)
--]]
game.level.map:particleEmitter(self.player.x, self.player.y, 1, "breath_cold", {radius=6, tx=10, ty=2})
self:changeLevel(2, "tempest-peak")
end
end,
}
......@@ -944,6 +944,9 @@ end
--- Requests the game to save
function _M:saveGame()
self.player:runStop("saving")
self.player:restStop("saving")
-- savefile_pipe is created as a global by the engine
savefile_pipe:push(self.save_name, "game", self)
world:saveWorld()
......
......@@ -348,7 +348,7 @@ newEntity{ base = "BASE_LEATHER_BOOT",
unique = true,
name = "Eden's Guile",
unided_name = "pair of yellow boots",
desc = [[]],
desc = [[The boots of a rogue outcast, who knew that the best way to deal with a problem was to run from it.]],
color = colors.YELLOW,
level_range = {1, 20},
rarity = 200,
......
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