2,875
edits
(Added abyssal level support for Thieving Loot sources) |
No edit summary |
||
Line 242: | Line 242: | ||
table.insert(resultPart, '\r\n!colspan="2"|Item ' .. (req == nil and 'Creation' or 'Production')) | table.insert(resultPart, '\r\n!colspan="2"|Item ' .. (req == nil and 'Creation' or 'Production')) | ||
table.insert(resultPart, '\r\n|-\r\n!style="text-align: right;"|Requirements') | table.insert(resultPart, '\r\n|-\r\n!style="text-align: right;"|Requirements') | ||
table.insert(resultPart, '\r\n|'..Icons. | table.insert(resultPart, '\r\n|'..Icons._SkillReq(skill, lvl, false, (isAbyssal and "melvorItA:Abyssal" or nil))) | ||
if specialReq ~= nil then table.insert(resultPart, '<br/>'..specialReq) end | if specialReq ~= nil then table.insert(resultPart, '<br/>'..specialReq) end | ||
Line 455: | Line 455: | ||
else | else | ||
local level, isAbyssal = Skills.getRecipeLevelRealm(localSkillID, recipe) | local level, isAbyssal = Skills.getRecipeLevelRealm(localSkillID, recipe) | ||
table.insert(lineArray, Icons. | table.insert(lineArray, Icons._SkillReq(skill, level, false, (isAbyssal and "melvorItA:Abyssal" or nil))) | ||
end | end | ||
break | break | ||
Line 471: | Line 471: | ||
(localSkillID == 'Herblore' and Shared.contains(recipe.potionIDs, item.id)) then | (localSkillID == 'Herblore' and Shared.contains(recipe.potionIDs, item.id)) then | ||
local level, isAbyssal = Skills.getRecipeLevelRealm(localSkillID, recipe) | local level, isAbyssal = Skills.getRecipeLevelRealm(localSkillID, recipe) | ||
table.insert(lineArray, Icons. | table.insert(lineArray, Icons._SkillReq(skill, level, false, (isAbyssal and "melvorItA:Abyssal" or nil))) | ||
break | break | ||
end | end | ||
Line 950: | Line 950: | ||
table.insert(dropRows, { | table.insert(dropRows, { | ||
source = sourceTxt, | source = sourceTxt, | ||
level = Icons. | level = Icons._SkillReq("Thieving", levelNum, false, (isAbyssal and "melvorItA:Abyssal" or nil)), | ||
levelNum = levelNum, | levelNum = levelNum, | ||
minqty = thiefRow.minQty, | minqty = thiefRow.minQty, |
edits