Skip to content
Snippets Groups Projects
Commit 3f6f5c18 authored by stuntofthelitter's avatar stuntofthelitter
Browse files

Fix Spellhunt Remnants so that they have stats if they generate below material level 2

parent 486f1050
No related branches found
No related tags found
No related merge requests found
...@@ -3461,7 +3461,11 @@ newEntity{ base = "BASE_GAUNTLETS", ...@@ -3461,7 +3461,11 @@ newEntity{ base = "BASE_GAUNTLETS",
rarity = 550, -- Extra rare to make it not ALWAYS appear. rarity = 550, -- Extra rare to make it not ALWAYS appear.
addedToLevel = function(self, level, x, y) -- generated on a level addedToLevel = function(self, level, x, y) -- generated on a level
local mat_level = util.getval(game.zone.min_material_level) or 1 local mat_level = util.getval(game.zone.min_material_level) or 1
self.power_up(self, nil, mat_level) if mat_level == 1 then
self.material_level = 1
else
self.power_up(self, nil, mat_level)
end
end, end,
on_preaddobject = function(self, who, inven) -- generated in an actor's inventory on_preaddobject = function(self, who, inven) -- generated in an actor's inventory
if not self.material_level then self.addedToLevel(self, game.level) end if not self.material_level then self.addedToLevel(self, game.level) 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