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

Fixed the disappearing zones bug. I'm quite sure this time! :)

git-svn-id: http://svn.net-core.org/repos/t-engine4@4746 51575b47-30f0-44d4-a5cc-537603b46e54
parent aed6db90
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ newEntity{
if not x then return end
local g = game.level.map(x, y, engine.Map.TERRAIN):cloneFull()
g.__nice_tile_base = nil
g.name = "Entrance to an underwater cave"
g.display='>' g.color_r=colors.AQUAMARINE.r g.color_g=colors.AQUAMARINE.g g.color_b=colors.AQUAMARINE.b g.notice = true
g.change_level=1 g.change_zone="flooded-cave" g.glow=true
......@@ -53,6 +54,7 @@ newEntity{
if not x then return end
local g = game.level.map(x, y, engine.Map.TERRAIN):cloneFull()
g.__nice_tile_base = nil
g.name = "Entrance to a dark crypt"
g.display='>' g.color_r=128 g.color_g=128 g.color_b=128 g.notice = true
g.change_level=1 g.change_zone="shadow-crypt" g.glow=true
......@@ -74,6 +76,7 @@ newEntity{
if not x then return end
local g = game.level.map(x, y, engine.Map.TERRAIN):cloneFull()
g.__nice_tile_base = nil
g.name = "Entrance to the orc breeding pit"
g.display='>' g.color_r=colors.GREEN.r g.color_g=colors.GREEN.g g.color_b=colors.GREEN.b g.notice = true
g.change_level=1 g.change_zone="orc-breeding-pit" g.glow=true
......
......@@ -94,6 +94,7 @@ newEntity{
if not x then return end
local g = game.level.map(x, y, engine.Map.TERRAIN):cloneFull()
g.__nice_tile_base = nil
g.name = "Entrance to some ancient elven ruins"
g.display='>' g.color_r=0 g.color_g=255 g.color_b=255 g.notice = true
g.change_level=1 g.change_zone="ancient-elven-ruins" g.glow=true
......@@ -130,6 +131,7 @@ newEntity{
if not x then return end
local g = game.level.map(x, y, engine.Map.TERRAIN):cloneFull()
g.__nice_tile_base = nil
g.name = "Entrance to a ruined dungeon"
g.display='>' g.color_r=255 g.color_g=0 g.color_b=0 g.notice = true
g.change_level=1 g.change_zone="ruined-dungeon" g.glow=true
......@@ -152,6 +154,7 @@ newEntity{
if not x then return end
local g = game.level.map(x, y, engine.Map.TERRAIN):cloneFull()
g.__nice_tile_base = nil
g.name = "Mark of the Spellblaze"
g.display='>' g.color_r=0 g.color_g=200 g.color_b=0 g.notice = true
g.change_level=1 g.change_zone="mark-spellblaze" g.glow=true
......@@ -174,6 +177,7 @@ newEntity{
if not x then return end
local g = game.level.map(x, y, engine.Map.TERRAIN):cloneFull()
g.__nice_tile_base = nil
g.name = "Golem Graveyard"
g.display='>' g.color_r=0 g.color_g=200 g.color_b=0 g.notice = true
g.change_level=1 g.change_zone="golem-graveyard" g.glow=true
......@@ -219,6 +223,7 @@ newEntity{
if not x then return end
local g = game.level.map(x, y, engine.Map.TERRAIN):cloneFull()
g.__nice_tile_base = nil
g.name = "Hidden compound"
g.display='>' g.color_r=200 g.color_g=0 g.color_b=0 g.notice = true
g.change_level=1 g.change_zone="ring-of-blood" g.glow=true
......
......@@ -348,6 +348,7 @@ on_grant = function(self, who)
if not gx then return true end
local g = game.level.map(gx, gy, engine.Map.TERRAIN)
g = g:cloneFull()
g.__nice_tile_base = nil
g.show_tooltip = true
g.name = "Recall Portal: "..npc.name
g.display = '&'
......
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