Module:Items: Difference between revisions

From Melvor Idle
m (Explicitely cast columns to a number)
No edit summary
Line 544: Line 544:


function p.getItemGrid(frame)
function p.getItemGrid(frame)
--melvorD, melvorTotH, melvorAoD
--melvorF, melvorD, melvorTotH, melvorAoD
local dlcFunc = function(item, dlc)  
local dlcFunc = function(item, dlc)  
local itemDLC = Shared.getLocalID(item.id)
local itemDLC = Shared.getLocalID(item.id)
if dlc == 'all' then
if dlc == 'all' then
return true
return true
end
if dlc == 'base' then
return itemDLC == 'melvorD' or itemDLC == 'melvorF'
end
end