Module:Param Parse: Difference between revisions

no edit summary
(Add a real smw property for quest difficulty)
No edit summary
Line 354:
function parse.difficulty_smw(val)
val = tonumber(val) -- Intentionally do not use parse.tonumber here
if val == nil then
return nil
end
if val >= 0 and val <= 5 and math.floor(val) == val then
return val