3,510
edits
(Support Abyssal Damage and Abyssal Resistance in Auto Weapon/Armor Tables) |
(Add support for AbyssalLevel stat) |
||
Line 104: | Line 104: | ||
for i, requirement in ipairs(item.equipRequirements) do | for i, requirement in ipairs(item.equipRequirements) do | ||
if requirement.type == "SkillLevel" and requirement.skillID == skillID then | if requirement.type == "SkillLevel" and requirement.skillID == skillID then | ||
result = requirement.level | |||
break | |||
end | |||
end | |||
end | |||
end | |||
elseif string.find(StatName, '^(.+)AbyssalLevel$') ~= nil and item.equipRequirements ~= nil then | |||
local skillName = Shared.titleCase(string.match(StatName, '^(.+)AbyssalLevel$')) | |||
if skillName ~= nil then | |||
local skillID = Constants.getSkillID(skillName) | |||
if skillID ~= nil then | |||
for i, requirement in ipairs(item.equipRequirements) do | |||
if requirement.type == 'AbyssalLevel' and requirement.skillID == skillID then | |||
result = requirement.level | result = requirement.level | ||
break | break |