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

obejcts without a hard material levle limit do rememebr their generation range

git-svn-id: http://svn.net-core.org/repos/t-engine4@6828 51575b47-30f0-44d4-a5cc-537603b46e54
parent aeaf4d58
No related branches found
No related tags found
No related merge requests found
......@@ -1550,3 +1550,11 @@ function _M:getCharmPower(who, raw)
return v
end
end
function _M:addedToLevel(level, x, y)
if self.material_level_min_only and level.data then
local min_mlvl = util.getval(level.data.min_material_level) or 1
local max_mlvl = util.getval(level.data.max_material_level) or 5
self.material_level_gen_range = {min=min_mlvl, max=max_mlvl}
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