FANDOM


local p = {}
 
function p.process(arg)
    lowered = string.lower(arg)
    removed = string.gsub(lowered, " ", "")
    final = string.gsub(removed, "-", "")
    return final
end
 
function p.getAbilityLevel(frame)
    local raw = frame:getParent().args['level']
    local ability = p.process(raw)
 
    if ability == "powerless" then
        return 1.0
    elseif ability == "lowtier" then
        return 1.1
    elseif ability == "midtier" then
        return 2.0
    elseif ability == "elitetier" then
        return 3.5
    elseif ability == "hightier" then
        return 5.0
    elseif ability == "godtier" then
        return 6.0
    else
        return ability
    end
end
 
return p
 
--[[Category:Lua modules]]

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.