4,951
edits
Falterfire (talk | contribs) (Also forcing startID to be a number) |
Falterfire (talk | contribs) (Change to format to hopefully reduce memory load) |
||
Line 315: | Line 315: | ||
local rowResult = {} | local rowResult = {} | ||
for i = startID, startID + rowCount, 1 do | |||
for i, item | local item = ItemData.Items[i] | ||
if | if item == nil then break end | ||
local rowTxt = '|-\r\n|'..Icons.Icon({item.name, type='item', size='50', notext=true})..'||[['..item.name..']]' | |||
rowTxt = rowTxt..'||'..(i - 1)..'||'..item.category..'||'..item.type..'||'..Icons.GP(item.sellsFor) | |||
rowTxt = rowTxt..'||'..ItemSourceTables._getItemSources(item, false, 'false') | |||
rowTxt = rowTxt..'||'..ItemUseTables._getItemUses(item, false, 'false') | |||
table.insert(rowResult, rowTxt) | |||
end | end | ||