Module:StatsVisualizer
Ir para navegação
Ir para pesquisar
local p = {}
function p.render(frame)
local hpGain = tonumber(frame.args.hpGain) or 0 local mpGain = tonumber(frame.args.mpGain) or 0 local bonusHundred = tonumber(frame.args.bonusHundredLevels) or 0
local levels = {1,50,100,150,200,250,300,350,400,450,500}
local lines = {}
for _, level in ipairs(levels) do
local hp = 150 + level*hpGain + math.floor(level/100)*bonusHundred
local mp = level*mpGain
table.insert(lines, string.format("|-\n| %d || %d || %d", level, hp, mp))
end
return table.concat(lines, "\n")
end
return p