Skip to content
Snippets Groups Projects
Commit f1a2a67c authored by Eric Wykoff's avatar Eric Wykoff
Browse files

best album ever

parent 5ec835fe
No related branches found
No related tags found
1 merge request!177The cure
......@@ -64,3 +64,13 @@ newAchievement{
desc = [[Achieved your wild dreams of power and eternal life: you turned into a Lich!]],
show = "name",
}
newAchievement{
name = "Best album ever!", id = "THE_CURE",
desc = [[Removed 89 beneficial effects from enemies via Disintegration.]],
show = "full", mode = "world",
can_gain = function(self, who)
self.nb = (self.nb or 0) + 1
if self.nb >= 89 then return true end
end,
track = function(self) return tstring{tostring(self.nb or 0)," / 89"} end,
}
\ No newline at end of file
......@@ -296,6 +296,12 @@ newTalent{
game.logSeen(self, "#CRIMSON#%s's beneficial effect was stripped!#LAST#", target.name:capitalize())
if what == "physical" then p.physical[target] = true end
if what == "magical" then p.magical[target] = true end
-- The Cure achievement
local acheive = self.player and not target.training_dummy and target ~= self
if acheive then
world:gainAchievement("THE_CURE", self)
end
end
end
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