Anonymous

Module:Items/ComparisonTables: Difference between revisions

From Melvor Idle
m
Fix attack speed handling
(Amend to level sorting, ensures that abyssal level requirements are always sorted after normal levels)
m (Fix attack speed handling)
Line 390: Line 390:
-- Add attack speed.
-- Add attack speed.
if isWeapon == true then
if isWeapon == true then
local atkSpeed = Items._getItemStat(item, 'attackSpeed')
local atkSpeed = Items._getItemStat(item, 'attackSpeed') or 0
if atkSpeed > 0 then
if atkSpeed > 0 then
row:tag('td'):wikitext(Num.round(atkSpeed / 1000, 3, 1) .. 's')
row:tag('td'):wikitext(Num.round(atkSpeed / 1000, 3, 1) .. 's')