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) return Decimal.add(points, 25).div(75).log(3).add(1).floor().max(0) } function getNextEpsilonCost(points = player.p.points) { return getEpsilonLevel(points).pow_base(3).mul(75).sub(25) }