Anonymous

Module:Skills/Artisan: Difference between revisions

From Melvor Idle
add qty to healing column
(Substitute links with Icons.Icon() where possible to benefit from ambiguous link handling)
(add qty to healing column)
Line 27: Line 27:
local getHealingCell = function(item)
local getHealingCell = function(item)
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)
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 '')
else
else
return ' '
return ' '
138

edits