4,951
edits
Falterfire (talk | contribs) (Added description column for ring and necklace table for Crafting) |
Falterfire (talk | contribs) (Changed how description column descriptions are generated) |
||
Line 341: | Line 341: | ||
table.insert(resultPart, '\r\n|' .. spanStr .. 'data-sort-value="' .. val .. '"| ' .. Icons.GP(string.format('%.2f', val))) | table.insert(resultPart, '\r\n|' .. spanStr .. 'data-sort-value="' .. val .. '"| ' .. Icons.GP(string.format('%.2f', val))) | ||
elseif colID == 'Description' then | elseif colID == 'Description' then | ||
table.insert(resultPart, '\r\n| '..spanStr..'|'.. | local descrip = Items._getItemStat(item, 'description') | ||
if descrip == 'No Description' and item.modifiers ~= nil and not Shared.tableIsEmpty(item.modifiers) then | |||
descrip = Constants.getModifiersText(item.modifiers, false) | |||
end | |||
table.insert(resultPart, '\r\n| '..spanStr..'|'..descrip) | |||
else | else | ||
table.insert(resultPart, '\r\n| ') | table.insert(resultPart, '\r\n| ') |