2024-03-07 17:49:20 +00:00
|
|
|
function getAlphaLevel(points = player.p.points) {
|
|
|
|
if (Decimal.eq(points, 0)) return new Decimal(0)
|
|
|
|
return Decimal.add(points, 10).div(11).log(1.1).add(1).floor().max(0)
|
|
|
|
}
|
|
|
|
function getNextAlphaCost(points = player.p.points) {
|
|
|
|
return getAlphaLevel(points).pow_base(1.1).mul(11).sub(10)
|
|
|
|
}
|
|
|
|
function getBetaLevel(points = player.p.points) {
|
|
|
|
if (Decimal.eq(points, 0)) return new Decimal(0)
|
|
|
|
return Decimal.add(points, 20).div(25).log(1.25).add(1).floor().max(0)
|
|
|
|
}
|
|
|
|
function getNextBetaCost(points = player.p.points) {
|
|
|
|
return getBetaLevel(points).pow_base(1.25).mul(25).sub(20)
|
|
|
|
}
|
|
|
|
function getGammaLevel(points = player.p.points) {
|
|
|
|
if (Decimal.eq(points, 0)) return new Decimal(0)
|
|
|
|
return Decimal.add(points, 30).div(45).log(1.5).add(1).floor().max(0)
|
|
|
|
}
|
|
|
|
function getNextGammaCost(points = player.p.points) {
|
|
|
|
return getGammaLevel(points).pow_base(1.5).mul(45).sub(30)
|
|
|
|
}
|
|
|
|
function getDeltaLevel(points = player.p.points) {
|
|
|
|
if (Decimal.eq(points, 0)) return new Decimal(0)
|
|
|
|
return Decimal.add(points, 30).div(60).log(2).add(1).floor().max(0)
|
|
|
|
}
|
|
|
|
function getNextDeltaCost(points = player.p.points) {
|
|
|
|
return getDeltaLevel(points).pow_base(2).mul(60).sub(30)
|
|
|
|
}
|
|
|
|
function getEpsilonLevel(points = player.p.points) {
|
|
|
|
if (Decimal.eq(points, 0)) return new Decimal(0)
|
2024-03-07 18:38:17 +00:00
|
|
|
return Decimal.mul(points, 3).add(100).div(250).log(2.5).add(1).floor().max(0)
|
2024-03-07 17:49:20 +00:00
|
|
|
}
|
|
|
|
function getNextEpsilonCost(points = player.p.points) {
|
2024-03-07 18:38:17 +00:00
|
|
|
return getEpsilonLevel(points).pow_base(2.5).mul(250).sub(100).div(3)
|
2024-03-07 17:49:20 +00:00
|
|
|
}
|