Anonymous

Module:Items/ComparisonTables: Difference between revisions

From Melvor Idle
Fixed Cape of Completion being counted as a Skillcape
(Added ability to sort category tables by name and also added ability to get skillcape and non-skillcape tables)
(Fixed Cape of Completion being counted as a Skillcape)
Line 320: Line 320:
if isMatch and other ~= nil then
if isMatch and other ~= nil then
if slot == 'Cape' then
if slot == 'Cape' then
if other == 'Skillcape' then
local isSkillcape = Shared.contains(item.name, 'Skillcape') or item.name == 'Cape of Completion'
if not Shared.contains(item.name, 'Skillcape') then
if other == 'Skillcapes' then
isMatch = false
isMatch = isSkillcape
end
elseif other == 'No Skillcapes' then
elseif other == 'No Skillcapes' then
if Shared.contains(item.name, 'Skillcape') then
isMatch = not isSkillcape
isMatch = false
end
end
end
end
end