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

4 new achievements for killing certain bosses first

git-svn-id: http://svn.net-core.org/repos/t-engine4@5382 51575b47-30f0-44d4-a5cc-537603b46e54
parent 9034e1a4
No related branches found
No related tags found
No related merge requests found
......@@ -281,6 +281,11 @@ function _M:die(src, death_note)
if rod then
game.zone:addEntity(game.level, rod, "object", self.x, self.y)
game.state:allowRodRecall(false)
if self.define_as == "THE_MASTER" then world:gainAchievement("FIRST_BOSS_MASTER", src)
elseif self.define_as == "GRAND_CORRUPTOR" then world:gainAchievement("FIRST_BOSS_GRAND_CORRUPTOR", src)
elseif self.define_as == "PROTECTOR_MYSSIL" then world:gainAchievement("FIRST_BOSS_MYSSIL", src)
elseif self.define_as == "URKIS" then world:gainAchievement("FIRST_BOSS_URKIS", src)
end
end
end
-- Ok the player managed to kill a boss dont bother him with tutorial anymore
......
......@@ -178,3 +178,35 @@ newAchievement{
desc = [[Saved Derth without a single inhabitant dying.]],
mode = "player",
}
newAchievement{
name = "Kickin' it old-school", id = "FIRST_BOSS_URKIS",
image = "npc/humanoid_human_urkis__the_high_tempest.png",
show = "full",
desc = [[Kill Urkis, the Tempest, causing him to drop the Rod of Recall.]],
mode = "player",
}
newAchievement{
name = "Leave the big boys alone", id = "FIRST_BOSS_MASTER",
image = "npc/the_master.png",
show = "full",
desc = [[Kill The Master, causing him to drop the Rod of Recall.]],
mode = "player",
}
newAchievement{
name = "You know who's to blame", id = "FIRST_BOSS_GRAND_CORRUPTOR",
image = "npc/humanoid_shalore_grand_corruptor.png",
show = "full",
desc = [[Kill the Grand Corruptor, causing him to drop the Rod of Recall.]],
mode = "player",
}
newAchievement{
name = "You know who's to blame (reprise)", id = "FIRST_BOSS_MYSSIL",
image = "npc/humanoid_halfling_protector_myssil.png",
show = "full",
desc = [[Kill Myssil, causing her to drop the Rod of Recall.]],
mode = "player",
}
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