Module:Param Parse: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(quest type)
m (Fix strict mode errors)
Line 278: Line 278:


-- Release
-- Release
function unix_time(date)
local function unix_time(date)
-- Convert a time to unix time
-- Convert a time to unix time
if date == nil then
if date == nil then
Line 602: Line 602:
}
}


function attack_style_func(style)
local function attack_style_func(style)
local attack_style = valid_attack_styles[string.lower(style or '')]
local attack_style = valid_attack_styles[string.lower(style or '')]
if attack_style then
if attack_style then
Line 614: Line 614:
end
end


function attack_style_smw(style)
local function attack_style_smw(style)
local attack_style = valid_attack_styles[string.lower(style or '')]
local attack_style = valid_attack_styles[string.lower(style or '')]
if attack_style then
if attack_style then