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

New achievement "Fool of a Took!"

git-svn-id: http://svn.net-core.org/repos/t-engine4@3801 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7f763ddb
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,7 @@ function _M:onPartyDeath(src, death_note)
-- No more player found! Switch back to main and die
if game_ender then
world:gainAchievement("HALFLING_SUICIDE", self)
game.party:setPlayer(game.party:findMember{main=true}, true)
game.paused = true
game.player.energy.value = game.energy_to_act
......
......@@ -55,6 +55,15 @@ newAchievement{
desc = [[Died on the Eidolon Plane.]],
}
newAchievement{
name = "Fool of a Took!", id = "HALFLING_SUICIDE",
show = "name",
desc = [[Killed oneself as a halfling.]],
can_gain = function(self, who)
if who.descriptor and who.descriptor.race == "Halfling" then return true end
end
}
newAchievement{
name = "Emancipation", id = "EMANCIPATION",
image = "npc/alchemist_golem.png",
......
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