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

New achievement: Huge Appetite

git-svn-id: http://svn.net-core.org/repos/t-engine4@3345 51575b47-30f0-44d4-a5cc-537603b46e54
parent 598fe887
No related branches found
No related tags found
No related merge requests found
......@@ -1382,6 +1382,7 @@ function _M:die(src)
world:gainAchievement("EXTERMINATOR", p, self)
world:gainAchievement("PEST_CONTROL", p, self)
world:gainAchievement("REAVER", p, self)
world:gainAchievement("EAT_BOSSES", p, self)
if self.unique then
game.player:registerUniqueKilled(self)
......
......@@ -105,3 +105,16 @@ newAchievement{
desc = [[Killed the giant golem Atamathon after foolishly reactivating it.]],
mode = "player",
}
newAchievement{
name = "Huge Appetite", id = "EAT_BOSSES",
show = "full",
desc = [[Ate 20 bosses.]],
mode = "player",
can_gain = function(self, who)
if who.rank < 35 then return false end
self.nb = (self.nb or 0) + 1
if self.nb >= 20 then return true end
end,
track = function(self) return tstring{tostring(self.nb or 0)," / 20"} 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