Module:Param Parse: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (Fix link to invalid profession)
(Handle currency throwing error)
Line 319: Line 319:
-- Value
-- Value
function parse.value_func(val)
function parse.value_func(val)
local err, val = pcall(currency, val)
return currency(val)
if not err then
return val
end
end
end
parse.value = {
parse.value = {