Skip to content
Snippets Groups Projects
Commit 3cbd4b8b authored by dg's avatar dg
Browse files

The Fall of Zigur quest correctly boosts Hexes mastery if hexes are known

git-svn-id: http://svn.net-core.org/repos/t-engine4@3756 51575b47-30f0-44d4-a5cc-537603b46e54
parent 76e631dc
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,15 @@ on_status_change = function(self, who, status, sub)
if self:isCompleted() then
who:setQuestStatus(self.id, engine.Quest.DONE)
world:gainAchievement("ANTI_ANTIMAGIC", game.player)
game.player:learnTalentType("corruption/hexes", true)
if who:knowTalentType("corruption/hexes") then
who:setTalentTypeMastery("corruption/hexes", who:getTalentTypeMastery("corruption/hexes") + 0.1)
elseif who:knowTalentType("corruption/hexes") == false then
who:learnTalentType("corruption/hexes", true)
else
who:learnTalentType("corruption/hexes", false)
end
require("engine.ui.Dialog"):simplePopup("Grand Corruptor", "#LIGHT_GREEN#The Grand Corruptor gazes upon you. You feel knowledge flowing in your mind. You can now train some corruption powers.")
game:setAllowedBuild("corrupter")
game:setAllowedBuild("corrupter_corruptor", true)
......
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