diff --git a/game/modules/tome/class/interface/PartyDeath.lua b/game/modules/tome/class/interface/PartyDeath.lua index 698e3f13e1206c6107ae69178ef8956e82e0f8fd..b61cf76a19be9dff5a458aa323b7be0629bc5993 100644 --- a/game/modules/tome/class/interface/PartyDeath.lua +++ b/game/modules/tome/class/interface/PartyDeath.lua @@ -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 diff --git a/game/modules/tome/data/achievements/player.lua b/game/modules/tome/data/achievements/player.lua index cb4aa9b63ff4f1c0f3006a628ca8d9ea52453873..202698ae665b223f89c10048ae481825ff33f5a4 100644 --- a/game/modules/tome/data/achievements/player.lua +++ b/game/modules/tome/data/achievements/player.lua @@ -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",