Anonymous

Module:ItemsTable: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 24: Line 24:
     mw.log(result)
     mw.log(result)
   end
   end
function p.getItemsTable(frame)
  local itemTable = {}
  for i = 1, itemCount, 1 do
    table.insert(itemTable, p._getItemsTable(i))
  end
  return table.concat(itemTable)
end


function p._getItemsTable(i)
function p._getItemsTable(i)
Line 48: Line 40:
     return table.concat(itemList)
     return table.concat(itemList)
end
end
function p.getItemsTable(frame)
  local itemTable = {}
  for i = 1, itemCount, 1 do
    table.insert(itemTable, p._getItemsTable(i))
  end
  return table.concat(itemTable)
end


return p
return p
444

edits