Anonymous

Module:Skills/Cartography: Difference between revisions

From Melvor Idle
Add support for 'Items Worn' POI requirements
No edit summary
(Add support for 'Items Worn' POI requirements)
 
Line 134: Line 134:
if POIReqs ~= '' then
if POIReqs ~= '' then
table.insert(reqTable, POIReqs)
table.insert(reqTable, POIReqs)
end
if POI.hidden.itemsWorn ~= nil and not Shared.tableIsEmpty(POI.hidden.itemsWorn) then
local itemsWornStr = 'Items Worn: '
for i, itemID in ipairs(POI.hidden.itemsWorn) do
local item = Items.getItemByID(itemID)
if item ~= nil then
itemsWornStr = itemsWornStr .. Icons.Icon({item.name, type='item', notext=true})
end
end
table.insert(reqTable, itemsWornStr)
end
end
end
end