From 8de3226ee7baf3163414cddca02d5b1e023d041c Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Thu, 28 Oct 2010 22:55:06 +0000
Subject: [PATCH] plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@1688 51575b47-30f0-44d4-a5cc-537603b46e54
---
 .../tome/data/general/encounters/maj-eyal-npcs.lua   | 12 ++++++++++++
 game/modules/tome/data/wda/maj-eyal.lua              |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/data/general/encounters/maj-eyal-npcs.lua b/game/modules/tome/data/general/encounters/maj-eyal-npcs.lua
index cdbc9086a3..2ab5f27cb6 100644
--- a/game/modules/tome/data/general/encounters/maj-eyal-npcs.lua
+++ b/game/modules/tome/data/general/encounters/maj-eyal-npcs.lua
@@ -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"}}},
+}
diff --git a/game/modules/tome/data/wda/maj-eyal.lua b/game/modules/tome/data/wda/maj-eyal.lua
index e3366b169e..06a1c25749 100644
--- a/game/modules/tome/data/wda/maj-eyal.lua
+++ b/game/modules/tome/data/wda/maj-eyal.lua
@@ -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"}
-- 
GitLab