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

Can not escape from the endgame fight

git-svn-id: http://svn.net-core.org/repos/t-engine4@1188 51575b47-30f0-44d4-a5cc-537603b46e54
parent c61656f9
No related branches found
No related tags found
No related merge requests found
......@@ -65,10 +65,15 @@ on_status_change = function(self, who, status, sub)
end
function start_end_combat(self)
-- Allow teleporting inside
for i = 11, 38 do for j = 1, 21 do
game.level.map.lites(i, j, true)
game.level.map.attrs(i, j, "no_teleport", false)
end end
-- Forbid teleporting outside
for i = 0, game.level.map.w - 1 do for j = 22, game.level.map.h - 1 do
game.level.map.attrs(i, j, "no_teleport", true)
end end
game.level.allow_portals = true
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