Module:ItemTables: Difference between revisions

Jump to navigation Jump to search
make a table for it
add early return
Line 22: Line 22:
if(type(item) == table) then
if(type(item) == table) then
for i,v in pairs(item) do
for i,v in pairs(item) do
local tableValues = table.insert(shopTableValues, v)
local shopTableValues = table.insert(shopTableValues, v)
--local tableValues = get_json_item(item)
--local tableValues = get_json_item(item)
end
end
return shopTableValues
end
end
return tableValues[property]
return tableValues[property]