From 1c5ac6f607eee70bd76a9008040d0e9f4c1f9bfc Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Tue, 4 Dec 2012 01:16:34 +0000
Subject: [PATCH] Blighted Summoning affects yeek wayists, thaloren treants and
 ghoul rot's ghouls

git-svn-id: http://svn.net-core.org/repos/t-engine4@5905 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/data/talents/misc/races.lua    | 2 ++
 game/modules/tome/data/talents/uber/mag.lua      | 3 +++
 game/modules/tome/data/talents/undeads/ghoul.lua | 5 +++++
 game/modules/tome/dialogs/debug/DebugMain.lua    | 1 +
 4 files changed, 11 insertions(+)

diff --git a/game/modules/tome/data/talents/misc/races.lua b/game/modules/tome/data/talents/misc/races.lua
index ebd335a7f5..0b88df1e99 100644
--- a/game/modules/tome/data/talents/misc/races.lua
+++ b/game/modules/tome/data/talents/misc/races.lua
@@ -378,6 +378,7 @@ newTalent{
 				summon_time = 8,
 				ai_target = {actor=target}
 			}
+			if self:knowTalent(self.T_BLIGHTED_SUMMONING) then m:learnTalent(m.T_CORROSIVE_WORM, true, 3) end
 			setupSummon(self, m, x, y)
 		end
 
@@ -839,6 +840,7 @@ newTalent{
 				summon_time = 6,
 				ai_target = {actor=target}
 			}
+			if self:knowTalent(self.T_BLIGHTED_SUMMONING) then m:learnTalent(m.T_DARK_PORTAL, true, 3) end
 			setupSummon(self, m, x, y)
 		end
 
diff --git a/game/modules/tome/data/talents/uber/mag.lua b/game/modules/tome/data/talents/uber/mag.lua
index c55b0dec7b..d4c6265a31 100644
--- a/game/modules/tome/data/talents/uber/mag.lua
+++ b/game/modules/tome/data/talents/uber/mag.lua
@@ -151,6 +151,9 @@ uberTalent{
 		- Alchemy Golems: Corrupted Strength and the Reaving Combat tree
 		- Shadows: Empathic Hex
 		- Thought-Forms: Flame of Urh'Rok
+		- Treants: Corrosive Worm
+		- Yeek Wayists: Dark Portal
+		- Ghoul Rot ghoul: Rend
 		- Bloated Oozes: Bone Shield
 		- Mucus Oozes: Virulent Disease
 		- Other race or object-based summons might be affected too
diff --git a/game/modules/tome/data/talents/undeads/ghoul.lua b/game/modules/tome/data/talents/undeads/ghoul.lua
index d1b07ff688..a173ee87dd 100644
--- a/game/modules/tome/data/talents/undeads/ghoul.lua
+++ b/game/modules/tome/data/talents/undeads/ghoul.lua
@@ -144,6 +144,11 @@ newTalent{
 		m.summon_time = 20
 		m.exp_worth = 0
 		m.no_drops = true
+		if self:knowTalent(self.T_BLIGHTED_SUMMONING) then 
+			m:incIncStat("mag", self:getMag()) 
+			m:learnTalent(m.T_REND, true, 3)
+		end
+		self:attr("summoned_times", 1)
 		
 		game.zone:addEntity(game.level, m, "actor", target.x, target.y)
 		game.level.map:particleEmitter(target.x, target.y, 1, "slime")
diff --git a/game/modules/tome/dialogs/debug/DebugMain.lua b/game/modules/tome/dialogs/debug/DebugMain.lua
index bc032a6a8c..ff0490c1f2 100644
--- a/game/modules/tome/dialogs/debug/DebugMain.lua
+++ b/game/modules/tome/dialogs/debug/DebugMain.lua
@@ -65,6 +65,7 @@ function _M:use(item)
 		game.player.invulnerable = 1
 		game.player.money = 500
 		game.player.auto_id = 100
+		game.state.birth.ignore_prodigies_special_reqs = true
 		game.player.inc_damage.all = 100000
 		game.player:incStat("str", 100) game.player:incStat("dex", 100) game.player:incStat("mag", 100) game.player:incStat("wil", 100) game.player:incStat("cun", 100) game.player:incStat("con", 100)
 	elseif act == "all_arts" then
-- 
GitLab