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

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@1688 51575b47-30f0-44d4-a5cc-537603b46e54
parent e14e3415
No related branches found
No related tags found
No related merge requests found
......@@ -66,3 +66,15 @@ newEntity{
ai = "world_hostile", ai_state = {chase_distance=3},
on_encounter = {type="ambush", width=10, height=10, nb={3,5}, filters={{type="animal", subtype="canine"}}},
}
newEntity{
name = "dragon",
type = "hostile", subtype = "dragon", cant_be_moved=true,
display = 'D', color = colors.RED,
level_range = {12, nil},
sight = 3,
rarity = 12,
unit_power = 7,
ai = "world_hostile", ai_state = {chase_distance=3},
on_encounter = {type="ambush", width=10, height=10, nb={1,1}, filters={{type="dragon"}}},
}
......@@ -35,7 +35,7 @@ if wda.cur_patrols < 3 then
end
-- Spawn some hostiles
if wda.cur_hostiles < 1 and rng.percent(5) then
if wda.cur_hostiles < 4 and rng.percent(5) then
local e = game.zone:makeEntity(game.level, "encounters_npcs", {type="hostile"}, nil, true)
if e then
local spot = game.level:pickSpot{type="hostile", "random"}
......
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