Module:NpcData: Difference between revisions

Jump to navigation Jump to search
LVL (talk | contribs)
No edit summary
LVL (talk | contribs)
mNo edit summary
Line 43: Line 43:
if not key or key == '' then break end
if not key or key == '' then break end


-- Stop traversing if the next key looks like a number for rounding
-- Check if the current argument is the rounding value
if tonumber(key) then
if tonumber(key) and type(current_value) == "number" then
break
break
end
end