Formula
CommonFun.CalcBattlePassExpByStat
function CommonFun.CalcBattlePassExpByStat(statid, statnum)
local A = 0
if statid == 1 then
if 200 <= statnum then
A = A + 100
elseif 150 <= statnum then
A = A + 50
else
if 80 <= statnum then
A = A + 30
else
end
end
end
if statid == 2 then
if 6 <= statnum then
A = A + 100
elseif 4 <= statnum then
A = A + 50
else
if 3 <= statnum then
A = A + 30
else
end
end
end
if statid == 3 then
if 20 <= statnum then
A = A + 100
elseif 12 <= statnum then
A = A + 50
else
if 6 <= statnum then
A = A + 30
else
end
end
end
if statid == 4 then
if 20 <= statnum then
A = A + 100
elseif 12 <= statnum then
A = A + 50
else
if 6 <= statnum then
A = A + 30
else
end
end
end
if statid == 5 then
if 20 <= statnum then
A = A + 100
elseif 12 <= statnum then
A = A + 50
else
if 6 <= statnum then
A = A + 30
else
end
end
end
if statid == 6 then
if 5 <= statnum then
A = A + 100
elseif 3 <= statnum then
A = A + 50
else
if 1 <= statnum then
A = A + 30
else
end
end
end
if statid == 7 then
if 3 <= statnum then
A = A + 100
elseif 2 <= statnum then
A = A + 50
else
if 1 <= statnum then
A = A + 30
else
end
end
end
if statid == 8 then
if 2 <= statnum then
A = A + 100
else
if 1 <= statnum then
A = A + 50
else
end
end
end
if statid == 10 then
if 60 <= statnum then
A = A + 100
elseif 30 <= statnum then
A = A + 50
else
if 10 <= statnum then
A = A + 30
else
end
end
end
if statid == 11 then
if 3 <= statnum then
A = A + 100
elseif 2 <= statnum then
A = A + 50
else
if 1 <= statnum then
A = A + 30
else
end
end
end
if statid == 12 then
if 50 <= statnum then
A = A + 100
elseif 30 <= statnum then
A = A + 50
else
if 10 <= statnum then
A = A + 30
else
end
end
end
if statid == 16 then
if 30 <= statnum then
A = A + 100
elseif 20 <= statnum then
A = A + 50
else
if 10 <= statnum then
A = A + 30
else
end
end
end
if statid == 17 then
if 20 <= statnum then
A = A + 100
elseif 10 <= statnum then
A = A + 50
else
if 5 <= statnum then
A = A + 30
else
end
end
end
if statid == 18 then
if 10 <= statnum then
A = A + 100
elseif 5 <= statnum then
A = A + 50
else
if 3 <= statnum then
A = A + 30
else
end
end
end
if statid == 19 then
if 100 <= statnum then
A = A + 100
elseif 50 <= statnum then
A = A + 50
else
if 20 <= statnum then
A = A + 30
else
end
end
end
return A
end