138
edits
(add qty to healing column) |
(fix bugs) |
||
Line 25: | Line 25: | ||
-- Logic for generating some cells of the table which are consistent for normal & perfect items | -- Logic for generating some cells of the table which are consistent for normal & perfect items | ||
local getHealingCell = function(item) | local getHealingCell = function(item, qty) | ||
if item ~= nil then | if item ~= nil then | ||
return 'style="text-align:right" data-sort-value="'..math.floor(item.healsFor)..'"|'..Icons.Icon({"Hitpoints", type="skill", notext=true})..' '..math.floor(item.healsFor * 10)..(qty > 1 and ' (x'..qty..')' or '') | return 'style="text-align:right" data-sort-value="'..math.floor(item.healsFor)..'"|'..Icons.Icon({"Hitpoints", type="skill", notext=true})..' '..math.floor(item.healsFor * 10)..(qty > 1 and ' (x'..qty..')' or '') | ||
Line 70: | Line 70: | ||
result = result..'||style="text-align:right" data-sort-value="' .. item.cookingInterval .. '"|'..Shared.timeString(item.cookingInterval / 1000, true) | result = result..'||style="text-align:right" data-sort-value="' .. item.cookingInterval .. '"|'..Shared.timeString(item.cookingInterval / 1000, true) | ||
result = result..'||style="text-align:right"|'..item.cookingXP | result = result..'||style="text-align:right"|'..item.cookingXP | ||
result = result..'||'..getHealingCell(item)..'||'..getHealingCell(perfectItem) | result = result..'||'..getHealingCell(item, qty)..'||'..getHealingCell(perfectItem, qty) | ||
result = result..'||'..getSaleValueCell(item, qty)..'||'..getSaleValueCell(perfectItem, qty) | result = result..'||'..getSaleValueCell(item, qty)..'||'..getSaleValueCell(perfectItem, qty) | ||
local matArray = {} | local matArray = {} |
edits