Module:Items: Difference between revisions

Changes to hidden item derivation
(Hide debug item)
(Changes to hidden item derivation)
Line 27: Line 27:
-- List of item IDs that should typically not be included within outputs, usually
-- List of item IDs that should typically not be included within outputs, usually
-- because they are not fully implemented despite existing within the game data
-- because they are not fully implemented despite existing within the game data
p.HiddenItems = {
p.HiddenItems = {}
'melvorD:DEBUG_ITEM',
 
'melvorTotH:Meteorite_Dust'
local function populateHiddenItems()
local hiddenItems = GameData.getEntities('items',
}
function(item)
return item.name == nil or Shared.contains({'melvorTotH:Meteorite_Dust'}, item.id)
end
)
for _, item in ipairs(hiddenItems) do
table.insert(p.HiddenItems, item.id)
end
end
populateHiddenItems()


function p.getItemByID(ID)
function p.getItemByID(ID)