Module:Sandbox/AuronTest/ComparisonTables: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 39: Line 39:
     local ndx = 1
     local ndx = 1
     while Shared.tableCount(ignoreColumns) >= ndx do
     while Shared.tableCount(ignoreColumns) >= ndx do
       if Items._getItemStat(ItemData.Items[itemID], ignoreColumns[ndx], true) ~= 0 then
       if Items._getItemStat(ItemData.Items[itemID + 1], ignoreColumns[ndx], true) ~= 0 then
         table.remove(ignoreColumns, ndx)
         table.remove(ignoreColumns, ndx)
       else
       else
Line 175: Line 175:
   table.sort(itemList, function(a, b) return a < b end)
   table.sort(itemList, function(a, b) return a < b end)
   for i, itemID in pairs(itemList) do
   for i, itemID in pairs(itemList) do
     local item = ItemData.Items[itemID]
     local item = ItemData.Items[itemID + 1]
     if isWeaponType then
     if isWeaponType then
       --Building rows for weapons
       --Building rows for weapons