Skip to content
Snippets Groups Projects
Commit 5f5e42ec authored by dg's avatar dg
Browse files

New achievement in the temple of creation quest

git-svn-id: http://svn.net-core.org/repos/t-engine4@5844 51575b47-30f0-44d4-a5cc-537603b46e54
parent c759524c
No related branches found
No related tags found
No related merge requests found
......@@ -148,6 +148,11 @@ newAchievement{
show = "name",
desc = [[Killed Slasul.]],
}
newAchievement{
name = "Treacherous Bastard", id = "SLASUL_DEAD_PRODIGY_LEARNT",
show = "name",
desc = [[Killed Slasul even though you sided with him to learn the Legacy of the Naloren prodigy.]],
}
newAchievement{
name = "Flooder", id = "UKLLMSWWIK_DEAD",
show = "name",
......
......@@ -38,7 +38,9 @@ end
on_status_change = function(self, who, status, sub)
if sub and (sub == "kill-slasul" or sub == "kill-drake") then
who:setQuestStatus(self.id, engine.Quest.DONE)
if sub == "kill-slasul" then world:gainAchievement("SLASUL_DEAD", game.player)
if sub == "kill-slasul" then
world:gainAchievement("SLASUL_DEAD", game.player)
if game:getPlayer(true):knowTalent(game.player.T_LEGACY_OF_THE_NALOREN) then world:gainAchievement("SLASUL_DEAD_PRODIGY_LEARNT", game.player) end
elseif sub == "kill-drake" then world:gainAchievement("UKLLMSWWIK_DEAD", game.player) 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