Module:Param Parse: Difference between revisions

501 bytes added ,  Yesterday at 12:06
Is this bad code? Probably. Do I care too much? Not really
(Make the icon link to the episode instead of the image itself)
(Is this bad code? Probably. Do I care too much? Not really)
Line 316:
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