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

Coming back from the Eidolon or Demon plane will not make many turns pass for actors

git-svn-id: http://svn.net-core.org/repos/t-engine4@3260 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0be3c72c
No related branches found
No related tags found
No related merge requests found
......@@ -263,6 +263,11 @@ newTalent{
end
end
-- All entities on the level remember acting not long ago, this prevents long "update" time upon re-entry
for uid, act in pairs(game.level.entities) do
act.last_act_turn = math.floor(game.turn / (game.zone.wilderness and 1000 or 10))
end
game.logPlayer(game.player, "#LIGHT_RED#You are brought back from the demon plane!")
end)
......
......@@ -114,6 +114,11 @@ return {
end
end
-- All entities on the level remember acting not long ago, this prevents long "update" time upon re-entry
for uid, act in pairs(game.level.entities) do
act.last_act_turn = math.floor(game.turn / (game.zone.wilderness and 1000 or 10))
end
game.logPlayer(game.player, "#LIGHT_RED#You are sent back to the material plane!")
game.player:updateMainShader()
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