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

Reduced Pyromancer and Cryomancer achievements to one million damage instead of two

Achievements tracked by the world will correctly be kept track of when characters die


git-svn-id: http://svn.net-core.org/repos/t-engine4@1593 51575b47-30f0-44d4-a5cc-537603b46e54
parent 53b4636d
No related branches found
No related tags found
No related merge requests found
......@@ -49,11 +49,11 @@ newAchievement{
newAchievement{
name = "Pyromancer",
desc = [[Unlocked Archmage class and done over two million fire damage (with any item/talent/class).]],
desc = [[Unlocked Archmage class and done over one million fire damage (with any item/talent/class).]],
mode = "world",
can_gain = function(self, who, dam)
self.nb = (self.nb or 0) + dam
return self.nb > 2000000 and profile.mod.allow_build.mage
return self.nb > 1000000 and profile.mod.allow_build.mage
end,
on_gain = function(_, src, personal)
game:setAllowedBuild("mage_pyromancer", true)
......@@ -61,11 +61,11 @@ newAchievement{
}
newAchievement{
name = "Cryomancer",
desc = [[Unlocked Archmage class and done over two million cold damage (with any item/talent/class).]],
desc = [[Unlocked Archmage class and done over one million cold damage (with any item/talent/class).]],
mode = "world",
can_gain = function(self, who, dam)
self.nb = (self.nb or 0) + dam
return self.nb > 2000000 and profile.mod.allow_build.mage
return self.nb > 1000000 and profile.mod.allow_build.mage
end,
on_gain = function(_, src, personal)
game:setAllowedBuild("mage_cryomancer", true)
......
......@@ -110,6 +110,7 @@ function _M:use(item)
local save = Savefile.new(game.save_name)
save:delete()
save:close()
world:saveWorld()
util.showMainMenu()
elseif act == "dump" then
game:registerDialog(require("mod.dialogs.CharacterSheet").new(self.actor))
......
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