Anonymous

Module:Items: Difference between revisions

From Melvor Idle
getItems: Exclude hidden items
(Changes to hidden item derivation)
(getItems: Exclude hidden items)
Line 51: Line 51:


function p.getItems(checkFunc)
function p.getItems(checkFunc)
return GameData.getEntities('items', checkFunc)
return GameData.getEntities('items',
function(obj)
return not Shared.contains(p.HiddenItems, obj.id) and checkFunc(obj)
end
)
end
end