Module:Items/ComparisonTables: Difference between revisions

Fixed displaying the wrong id
(Fixed off-by-one issue)
(Fixed displaying the wrong id)
Line 319: Line 319:
     if item == nil then break end
     if item == nil then break end
     local rowTxt = '|-\r\n|'..Icons.Icon({item.name, type='item', size='50', notext=true})..'||[['..item.name..']]'
     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..'||'..i..'||'..item.category..'||'..item.type..'||'..Icons.GP(item.sellsFor)
     rowTxt = rowTxt..'||'..ItemSourceTables._getItemSources(item, false, 'false')
     rowTxt = rowTxt..'||'..ItemSourceTables._getItemSources(item, false, 'false')
     rowTxt = rowTxt..'||'..ItemUseTables._getItemUses(item, false, 'false')
     rowTxt = rowTxt..'||'..ItemUseTables._getItemUses(item, false, 'false')