2024-03-07 19:22:08 +00:00
|
|
|
function getAlphaRank(points = player.p.points) {
|
|
|
|
if (Decimal.eq(points, 0)) return new Decimal(0)
|
|
|
|
return getAlphaLevel(points).div(20).floor()
|
|
|
|
}
|
|
|
|
function getAlphaRankCost(points = player.p.points) {
|
|
|
|
return getAlphaRank(points).add(1).mul(20)
|
|
|
|
}
|
|
|
|
function getAlphaRankEffect(points = player.p.points) {
|
2024-03-08 16:50:09 +00:00
|
|
|
return getAlphaRank(points).div(25)
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|
|
|
|
function getBetaRank(points = player.p.points) {
|
|
|
|
if (Decimal.eq(points, 0)) return new Decimal(0)
|
2024-03-08 19:37:47 +00:00
|
|
|
return getBetaLevel(points).div(15).floor()
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|
|
|
|
function getBetaRankCost(points = player.p.points) {
|
2024-03-08 19:37:47 +00:00
|
|
|
return getBetaRank(points).add(1).mul(15)
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|
|
|
|
function getBetaRankEffect(points = player.p.points) {
|
2024-03-08 16:50:09 +00:00
|
|
|
return getBetaRank(points).div(100).mul(3)
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|
|
|
|
function getGammaRank(points = player.p.points) {
|
|
|
|
if (Decimal.eq(points, 0)) return new Decimal(0)
|
2024-03-08 19:37:47 +00:00
|
|
|
return getGammaLevel(points).div(12).floor()
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|
|
|
|
function getGammaRankCost(points = player.p.points) {
|
2024-03-08 19:37:47 +00:00
|
|
|
return getGammaRank(points).add(1).mul(12)
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|
|
|
|
function getGammaRankEffect(points = player.p.points) {
|
2024-03-08 19:37:47 +00:00
|
|
|
return getGammaRank(points).div(15)
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|
|
|
|
function getDeltaRank(points = player.p.points) {
|
|
|
|
if (Decimal.eq(points, 0)) return new Decimal(0)
|
2024-03-08 19:37:47 +00:00
|
|
|
return getDeltaLevel(points).div(10).floor()
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|
|
|
|
function getDeltaRankCost(points = player.p.points) {
|
2024-03-08 19:37:47 +00:00
|
|
|
return getDeltaRank(points).add(1).mul(10)
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|
|
|
|
function getDeltaRankEffect(points = player.p.points) {
|
2024-03-08 16:50:09 +00:00
|
|
|
return getDeltaRank(points).div(20)
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|
|
|
|
function getEpsilonRank(points = player.p.points) {
|
|
|
|
if (Decimal.eq(points, 0)) return new Decimal(0)
|
2024-03-08 19:37:47 +00:00
|
|
|
return getEpsilonLevel(points).div(8).floor()
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|
|
|
|
function getEpsilonRankCost(points = player.p.points) {
|
2024-03-08 19:37:47 +00:00
|
|
|
return getEpsilonRank(points).add(1).mul(8)
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|
|
|
|
function getEpsilonRankEffect(points = player.p.points) {
|
2024-03-08 19:37:47 +00:00
|
|
|
return getEpsilonRank(points).div(10)
|
|
|
|
}
|
|
|
|
function getZetaRank(points = player.p.points) {
|
|
|
|
if (Decimal.eq(points, 0)) return new Decimal(0)
|
|
|
|
return getZetaLevel(points).div(8).floor()
|
|
|
|
}
|
|
|
|
function getZetaRankCost(points = player.p.points) {
|
|
|
|
return getZetaRank(points).add(1).mul(7)
|
|
|
|
}
|
|
|
|
function getZetaRankEffect(points = player.p.points) {
|
|
|
|
return getZetaRank(points).div(5)
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|
|
|
|
function getTotalRank() {
|
2024-03-08 19:37:47 +00:00
|
|
|
return getAlphaRank().add(getBetaRank()).add(getGammaRank()).add(getDeltaRank()).add(getEpsilonRank()).add(getZetaRank())
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|