Module:Skills/Artisan: Difference between revisions

no edit summary
(fix bugs)
No edit summary
Line 27: Line 27:
local getHealingCell = function(item, qty)
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 'data-sort-value="'..(math.floor(item.healsFor) * qty)..'"|'..Icons.Icon({"Hitpoints", type="skill", notext=true})..' '..math.floor(item.healsFor * 10)..(qty > 1 and ' (x'..qty..')' or '')
else
else
return ' '
return ' '
138

edits