Skip to content
Snippets Groups Projects
Commit 51c1f6d4 authored by dg's avatar dg
Browse files

Gaining the achievement for Wildfire, Storm, Ice and Stone talents while...

Gaining the achievement for Wildfire, Storm, Ice and Stone talents while playing an archmage will teach them to the current archamge


git-svn-id: http://svn.net-core.org/repos/t-engine4@2843 51575b47-30f0-44d4-a5cc-537603b46e54
parent 06732d3f
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,13 @@ newAchievement{
end,
on_gain = function(_, src, personal)
game:setAllowedBuild("mage_pyromancer", true)
local p = game.party:findMember{main=true}
if p.descriptor.subclass == "Archmage" then
if p:knowTalentType("spell/wildfire") == nil then
p:learnTalentType("spell/wildfire", false)
p:setTalentTypeMastery("spell/wildfire", 1.3)
end
end
end,
}
newAchievement{
......@@ -69,5 +76,12 @@ newAchievement{
end,
on_gain = function(_, src, personal)
game:setAllowedBuild("mage_cryomancer", true)
local p = game.party:findMember{main=true}
if p.descriptor.subclass == "Archmage" then
if p:knowTalentType("spell/ice") == nil then
p:learnTalentType("spell/ice", false)
p:setTalentTypeMastery("spell/ice", 1.3)
end
end
end,
}
......@@ -191,6 +191,13 @@ newEntity{ base = "BASE_NPC_XORN", define_as = "FULL_HARKOR_ZUN",
if profile.mod.allow_build.mage then
game:setAllowedBuild("mage_geomancer", true)
world:gainAchievement("GEOMANCER", game.player)
local p = game.party:findMember{main=true}
if p.descriptor.subclass == "Archmage" then
if p:knowTalentType("spell/stone") == nil then
p:learnTalentType("spell/stone", false)
p:setTalentTypeMastery("spell/stone", 1.3)
end
end
end
end,
}
......@@ -76,6 +76,13 @@ on_status_change = function(self, who, status, sub)
who:setQuestStatus(self.id, engine.Quest.DONE)
game:setAllowedBuild("mage_tempest", true)
world:gainAchievement("EYE_OF_THE_STORM", game.player:resolveSource())
local p = game.party:findMember{main=true}
if p.descriptor.subclass == "Archmage" then
if p:knowTalentType("spell/storm") == nil then
p:learnTalentType("spell/storm", false)
p:setTalentTypeMastery("spell/storm", 1.3)
end
end
end
end
......
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