Module:Param Parse: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 353: Line 353:
end
end
function parse.difficulty_smw(val)
function parse.difficulty_smw(val)
if val == 'N/A' then
return -1
end
val = tonumber(val) -- Intentionally do not use parse.tonumber here
val = tonumber(val) -- Intentionally do not use parse.tonumber here
if val == nil then
if val == nil then