Module:Items: Difference between revisions

156 bytes removed ,  8 November 2022
Swapped the getExpansionIcon function to using a new function in Icons
(Added p.getExpansionIcon)
(Swapped the getExpansionIcon function to using a new function in Icons)
Line 593: Line 593:
end
end
return tostring(resultTable)
return tostring(resultTable)
end
function p._getExpansionIcon(item)
local ns, _ = GameData.getLocalID(item.id)
if ns == 'melvorTotH' then
return Icons.TotH()..' '
else
return ''
end
end
end


Line 612: Line 603:
end
end
return p._getExpansionIcon(item)
return Icons.getExpansionIcon(item.id)
end
end


return p
return p