4,951
edits
Falterfire (talk | contribs) (If everything worked, the equipment table now automatically hides columns that are zero for all items in the table) |
Falterfire (talk | contribs) (Fixed a typo on new equipment table sorting) |
||
Line 1,659: | Line 1,659: | ||
for i, item in pairs(itemList) do | for i, item in pairs(itemList) do | ||
local ndx = 1 | local ndx = 1 | ||
while Shared.tableCount(ignoreColumns) > ndx do | while Shared.tableCount(ignoreColumns) >= ndx do | ||
if p._getItemStat(item, ignoreColumns[ndx], true) ~= 0 then | if p._getItemStat(item, ignoreColumns[ndx], true) ~= 0 then | ||
table.remove(ignoreColumns, ndx) | table.remove(ignoreColumns, ndx) |