Anonymous

Module:Skills/Artisan: Difference between revisions

From Melvor Idle
Changed how description column descriptions are generated
(Added description column for ring and necklace table for Crafting)
(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..'|'..Items._getItemStat(item, 'description'))
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| ')