17,101
edits
(Update for v1.1) |
(Improve output of function) |
||
Line 30: | Line 30: | ||
local rowCount = 0 | local rowCount = 0 | ||
local genRows = false | local genRows = false | ||
local lastItemID = nil | |||
for i, item in ipairs(GameData.rawData.items) do | for i, item in ipairs(GameData.rawData.items) do | ||
if not genRows then | if not genRows then | ||
Line 38: | Line 39: | ||
break | break | ||
end | end | ||
lastItemID = item.id | |||
local iCat = item.category ~= nil and item.category or '' | local iCat = item.category ~= nil and item.category or '' | ||
local itemRow = {'\n|-'} | local itemRow = {'\n|-'} | ||
Line 49: | Line 51: | ||
end | end | ||
end | end | ||
mw.log(table.concat(itemList, '')) | |||
mw.log('\n------------------\nLast item ID: ' .. (lastItemID or 'nil')) | |||
end | end | ||
return p | return p |