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

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@1863 51575b47-30f0-44d4-a5cc-537603b46e54
parent 11cc4469
No related branches found
No related tags found
No related merge requests found
......@@ -236,6 +236,8 @@ function _M:worldDirectorAI()
end
function _M:spawnWorldAmbush(enc)
game:onTickEnd(function()
local gen = { class = "engine.generator.map.Forest",
edge_entrances = {4,6},
sqrt_percent = 50,
......@@ -285,6 +287,8 @@ function _M:spawnWorldAmbush(enc)
game.paused = true
game:changeLevel(1, zone)
engine.ui.Dialog:simplePopup("Ambush!", "You have been ambushed!")
end)
end
function _M:handleWorldEncounter(target)
......
......@@ -22,7 +22,6 @@ newEntity{
type = "harmless", subtype = "special", unique = true,
level_range = {30, 40},
rarity = 1,
coords = {{ x=0, y=0, w=100, h=100}},
special_filter = function(self)
return self:findSpotGeneric(game.player, function(map, x, y) local enc = map:checkAllEntities(x, y, "can_encounter") return enc and enc == "water" end) and true or false
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