From 23803675eb8f0e0c545814022709ea9e43a6928e Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Thu, 25 Oct 2018 00:05:28 +0200
Subject: [PATCH] Replaced Anorithil escort with Defiler escort

---
 game/modules/tome/data/chats/escort-quest.lua |  9 +++++----
 game/modules/tome/data/quests/escort-duty.lua | 12 +++++++-----
 2 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/game/modules/tome/data/chats/escort-quest.lua b/game/modules/tome/data/chats/escort-quest.lua
index fb93c05386..4fcce30624 100644
--- a/game/modules/tome/data/chats/escort-quest.lua
+++ b/game/modules/tome/data/chats/escort-quest.lua
@@ -133,13 +133,14 @@ local reward_types = {
 			},
 		},
 	},
-	anorithil = {
+	defiler = {
 		types = {
-			--["celestial/light"] = 0.8,
+			["corruption/curses"] = 0.8,
 		},
 		talents = {
-			[Talents.T_BATHE_IN_LIGHT] = 1,
-			[Talents.T_HEALING_LIGHT] = 1,
+			[Talents.T_CURSE_OF_DEFENSELESSNESS] = 1,
+			[Talents.T_CURSE_OF_IMPOTENCE] = 1,
+			[Talents.T_CURSE_OF_DEATH] = 1,
 		},
 		stats = {
 			[Stats.STAT_CUN] = 5,
diff --git a/game/modules/tome/data/quests/escort-duty.lua b/game/modules/tome/data/quests/escort-duty.lua
index d4a4e3f2f1..9bbb37edb1 100644
--- a/game/modules/tome/data/quests/escort-duty.lua
+++ b/game/modules/tome/data/quests/escort-duty.lua
@@ -179,10 +179,10 @@ local possible_types = {
 			sunwall_query = true,
 		},
 	},
-	{ name="lost anorithil", random="female", chance=70,
+	{ name="lost defiler", random="female", chance=70,
 		text = [[Please help me! I am afraid I lost myself in this place. I know there is a recall portal left around here by a friend, but I have fought too many battles, and I fear I will not make it. Would you help me?]],
 		actor = {
-			name = "%s, the lost anorithil",
+			name = "%s, the lost defiler",
 			type = "humanoid", subtype = "human", female=true, image = "player/higher_female.png",
 			display = "@", color=colors.YELLOW,
 			desc = [[She looks tired and wounded.]],
@@ -192,7 +192,7 @@ local possible_types = {
 
 			body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1, QUIVER=1 },
 			resolvers.equip{ {type="weapon", subtype="staff", autoreq=true} },
-			resolvers.talents{ [Talents.T_HYMN_OF_PERSEVERANCE]=1, },
+			resolvers.talents{ [Talents.T_CURSE_OF_IMPOTENCE]=1, },
 			lite = 4,
 			rank = 2,
 			exp_worth = 1,
@@ -202,8 +202,7 @@ local possible_types = {
 			combat_armor = 3, combat_def = 3,
 			inc_damage = {all=-50},
 
-			reward_type = "anorithil",
-			sunwall_query = true,
+			reward_type = "defiler",
 		},
 	},
 	{ name="temporal explorer", random="player", portal="temporal portal", chance=30,
@@ -349,6 +348,9 @@ on_grant = function(self, who)
 			if rng.percent(self.kind.chance) then break end
 		end
 	end
+
+	for i, pp in ipairs(possible_types) do if pp.name == "lost defiler" then self.kind = pp end end
+
 	escorts_seen[self.kind.name] = (escorts_seen[self.kind.name] or 0) + 1
 
 	if self.kind.random == "player" then
-- 
GitLab