Commit 3b31efceaf99bae18aa20f9cf74507534b0d6fa4
1 parent
598fe887
New achievement: Huge Appetite
git-svn-id: http://svn.net-core.org/repos/t-engine4@3345 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
2 changed files
with
14 additions
and
0 deletions
@@ -1382,6 +1382,7 @@ function _M:die(src) | @@ -1382,6 +1382,7 @@ function _M:die(src) | ||
1382 | world:gainAchievement("EXTERMINATOR", p, self) | 1382 | world:gainAchievement("EXTERMINATOR", p, self) |
1383 | world:gainAchievement("PEST_CONTROL", p, self) | 1383 | world:gainAchievement("PEST_CONTROL", p, self) |
1384 | world:gainAchievement("REAVER", p, self) | 1384 | world:gainAchievement("REAVER", p, self) |
1385 | + world:gainAchievement("EAT_BOSSES", p, self) | ||
1385 | 1386 | ||
1386 | if self.unique then | 1387 | if self.unique then |
1387 | game.player:registerUniqueKilled(self) | 1388 | game.player:registerUniqueKilled(self) |
@@ -105,3 +105,16 @@ newAchievement{ | @@ -105,3 +105,16 @@ newAchievement{ | ||
105 | desc = [[Killed the giant golem Atamathon after foolishly reactivating it.]], | 105 | desc = [[Killed the giant golem Atamathon after foolishly reactivating it.]], |
106 | mode = "player", | 106 | mode = "player", |
107 | } | 107 | } |
108 | + | ||
109 | +newAchievement{ | ||
110 | + name = "Huge Appetite", id = "EAT_BOSSES", | ||
111 | + show = "full", | ||
112 | + desc = [[Ate 20 bosses.]], | ||
113 | + mode = "player", | ||
114 | + can_gain = function(self, who) | ||
115 | + if who.rank < 35 then return false end | ||
116 | + self.nb = (self.nb or 0) + 1 | ||
117 | + if self.nb >= 20 then return true end | ||
118 | + end, | ||
119 | + track = function(self) return tstring{tostring(self.nb or 0)," / 20"} end, | ||
120 | +} |
-
Please register or login to post a comment