Module:Param Parse: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Make the icon link to the episode instead of the image itself) |
InvalidCards (talk | contribs) (Is this bad code? Probably. Do I care too much? Not really) |
||
Line 316: | Line 316: | ||
category_incomplete = 'Needs passiveness' |
category_incomplete = 'Needs passiveness' |
||
} |
} |
||
function parse.difficulty_func(val) |
|||
if val == 1 then |
|||
return "★☆☆☆☆" |
|||
end |
|||
if val == 2 then |
|||
return "★★☆☆☆" |
|||
end |
|||
if val == 3 then |
|||
return "★★★☆☆" |
|||
end |
|||
if val == 4 then |
|||
return "★★★★☆" |
|||
end |
|||
if val == 5 then |
|||
return "★★★★★" |
|||
end |
|||
return "N/A" |
|||
end |
|||
-- Quest difficulty |
|||
parse.difficulty = { |
|||
name = 'difficulty', |
|||
func = parse.difficulty_func, |
|||
smw_property = 'Difficulty', |
|||
smw_func = parse.number, |
|||
category_incomplete = 'Needs difficulty' |
|||
} |
|||
return parse |
return parse |