Anonymous

Module:Skills/Artisan: Difference between revisions

From Melvor Idle
_getRecipeTable: Amend XP rate number formatting
(_getRecipeTable: Fix XP rate column values)
(_getRecipeTable: Amend XP rate number formatting)
Line 634: Line 634:
end
end
elseif colID == 'SkillXPSec' then
elseif colID == 'SkillXPSec' then
cell:wikitext(string.format('%.2f', baseXP / actionInterval))
local XPRate = baseXP / actionInterval
cell:wikitext(Num.formatnum(string.format('%.2f', XPRate)))
:css('text-align', 'right')
:css('text-align', 'right')
:attr('data-sort-value', tostring(XPRate))
elseif colID == 'CurrencySec' then
elseif colID == 'CurrencySec' then
local saleCurrency = item.sellsForCurrency or 'melvorD:GP'
local saleCurrency = item.sellsForCurrency or 'melvorD:GP'