Anonymous

Module:ItemsTable: Difference between revisions

From Melvor Idle
m
no edit summary
mNo edit summary
mNo edit summary
Line 7: Line 7:
local UseTables = require('Module:Items/UseTables')
local UseTables = require('Module:Items/UseTables')


function p.generateItemTableInvokes(frame)
function p.generateInvokes(frame)
   local numberOfItems = 0
   local numberOfItems = 0
   for k, v in pairs(ItemData.Items) do
   for k, v in pairs(ItemData.Items) do
Line 15: Line 15:
   local i = 1
   local i = 1
   while i < numberOfItems do
   while i < numberOfItems do
     result = result..'{{#invoke:ItemsTable|_getItemTable|'..i..'}}\r\n'
     result = result..'{{#invoke:ItemsTable|getItemTable|'..i..'}}\r\n'
     i = i + 50
     i = i + 50
   end
   end
444

edits