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

The hidden trollmire level now has a correct entrance spot

git-svn-id: http://svn.net-core.org/repos/t-engine4@3245 51575b47-30f0-44d4-a5cc-537603b46e54
parent c3ddeb22
No related branches found
No related tags found
No related merge requests found
......@@ -499,7 +499,9 @@ end
--- If we are loaded we need a new uid
function _M:loaded()
if self.reload_lists then self:loadBaseLists() end
if type(self.reload_lists) ~= "boolean" or self.reload_lists then
self:loadBaseLists()
end
end
function _M:load(dynamic)
......
......@@ -27,6 +27,9 @@ defineTile("t", {"HARDTREE","HARDTREE2","HARDTREE3","HARDTREE4","HARDTREE5","HAR
defineTile("T", "GRASS", nil, {random_filter={type="giant", subtype="troll"}})
defineTile("!", "ROCK_VAULT")
startx = 0
starty = 9
-- addSpot section
-- addZone section
......
......@@ -47,6 +47,12 @@ enter_level3 = function(self)
local g = game.zone:makeEntityByName(game.level, "terrain", "GRASS_DOWN6"):clone()
g.name = "way to the hidden trollmire treasure"
g.desc = "Beware!"
g.change_level_check = function()
require("engine.ui.Dialog"):yesnoPopup("Danger...", "This way lead to the lair of a mighty troll, traces of blood are everywhere. Are you sure?", function(ret)
if ret then game:changeLevel(4, "trollmire") end
end)
return true
end
local level = game.level
local spot = level.default_down
game.zone:addEntity(level, g, "terrain", spot.x, spot.y)
......
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