Anonymous

Module:Items/SourceTables: Difference between revisions

From Melvor Idle
no edit summary
(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._GetSkillReq(skill, lvl, false, isAbyssal))
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._GetSkillReq(skill, level, false, isAbyssal))
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._GetSkillReq(skill, level, false, isAbyssal))
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._GetSkillReq("Thieving", levelNum, false, isAbyssal),
level = Icons._SkillReq("Thieving", levelNum, false, (isAbyssal and "melvorItA:Abyssal" or nil)),
levelNum = levelNum,
levelNum = levelNum,
minqty = thiefRow.minQty,  
minqty = thiefRow.minQty,  
2,875

edits