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

The Crypt of Kryl-Feijan will not pop before level 20

git-svn-id: http://svn.net-core.org/repos/t-engine4@1982 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4a793698
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,7 @@ function _M:checkFilter(filter)
local we = game.level.map.attrs(filter.mapx, filter.mapy, "world-encounter")
if not we or not we[self.on_world_encounter] then return false end
end
if self.min_level and game.player.level < self.min_level then print("==============") return false end
return true
end
......
......@@ -120,6 +120,7 @@ newEntity{
type = "hostile", subtype = "special", unique = true,
level_range = {24, 35},
rarity = 7,
min_level = 20,
coords = {{ x=0, y=0, w=100, h=100}},
on_encounter = function(self, who)
who:runStop()
......
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