FANDOM


local utils = require("Module:Utils")
local InfoboxUtils = require("Module:InfoboxUtils")
local yesno = require('Dev:Yesno')
local curr = require("Module:Currency")
 
local p = {}
 
p._format_level = function(args)
    if tonumber(args.level) then
    return curr._format_level {amount=args.level}
else
    return utils.error_message("level must be a number")
    end
end
 
 
 
p.format_level = utils.make_wrapper_function(p._format_level)
 
p._format_type = function(args)
    type = args.type
    if type == "player" or type == "Player" then
    return "Player Mysteliate"
elseif type == "enemy" or type == "Enemy" then
    return "Enemy Mysteliate"
elseif type == "both" or type == "enemy and player" or type == "Both" or type == "Enemy and Player" then
    return "Enemy & Player Mysteliate"
else
    return utils.error_message("type must be 'player', 'enemy', or 'both'")
    end
end
 
 
 
p.format_type = utils.make_wrapper_function(p._format_type)
 
p._format_tier = function(args)
    type = args.tier
    if type == "1" then
        return "1"
    elseif type == "2" then
        return "2"
    elseif type == "3" then
        return "3"
    elseif type == "Exclusive" or type == "exclusive" then
        return "Exclusive"
else
    return utils.error_message("tier must be 1, 2, 3, or Exclusive")
    end
end
 
 
 
p.format_tier = utils.make_wrapper_function(p._format_tier)
 
p._format_cost = function(args)
    local amt = args.cost
if tonumber(amt) then
    return amt
    --return curr._format_points {amount=args.points}
else
    return utils.error_message("cost must be a number.")
    end
end
 
p.format_cost = utils.make_wrapper_function(p._format_cost)
 
return p

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.