Module:Constants: Difference between revisions

m
no edit summary
m (tier => tierID)
mNo edit summary
Line 434: Line 434:


function p.getSlayerTierByLevel(level) -- returns a full table
function p.getSlayerTierByLevel(level) -- returns a full table
if not type(level) == 'number' or tier < 0 then
if type(level) ~= 'number' or level < 0 then
return "ERROR: Invalid Slayer level [[Category:Pages with script errors]]"
return "ERROR: Invalid Slayer level [[Category:Pages with script errors]]"
end
end