Module:Param Parse: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
InvalidCards (talk | contribs) (That's not how math) |
InvalidCards (talk | contribs) (nil check) |
||
Line 199: | Line 199: | ||
function parse.value_func(val) |
function parse.value_func(val) |
||
val = tonumber(val) |
val = tonumber(val) |
||
if val == nil then |
|||
return nil |
|||
end |
|||
local output = '' |
local output = '' |
||
local gold = math.floor(val / 1000000) |
local gold = math.floor(val / 1000000) |