Anonymous

Module:Sandbox/Items: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 97: Line 97:
result = false
result = false
end
end
elseif string.find(StatName, '^(.+)LevelRequired$') ~= nil and item.equipRequirements ~= nil then
elseif (string.find(StatName, '^(.+)LevelRequired$') ~= nil or string.find(StatName, '^(.+)AbyssalLevel$') ~= nil) and item.equipRequirements ~= nil then
local skillName = nil
local skillName = nil
if (string.find(StatName, '^(.+)Abyssal$')) then
if string.find(StatName, '^(.+)AbyssalLevel$') then
skillName = Shared.titleCase(string.match(StatName, '^(.+)AbyssalLevelRequired$'))
skillName = Shared.titleCase(string.match(StatName, '^(.+)AbyssalLevel$'))
else
else
skillName = Shared.titleCase(string.match(StatName, '^(.+)LevelRequired$'))
skillName = Shared.titleCase(string.match(StatName, '^(.+)LevelRequired$'))