Change the gamma effect, buff ranks, and do some other stuff

This commit is contained in:
Nif 2024-03-08 16:50:09 +00:00
parent 88c0fa775b
commit 9dea0c31e7
3 changed files with 73 additions and 44 deletions

View file

@ -26,7 +26,8 @@ function getGammaCost(points = player.p.points) {
return getGammaLevel(points).pow_base(1.5).mul(45).sub(30)
}
function getGammaEffect(points = player.p.points) {
return getGammaLevel(points).mul(getGammaRankEffect(points).add(0.1)).add(1)
return Decimal.add(player.p.points, 100).log(100)
.pow(getGammaLevel(points).mul(getGammaRankEffect(points).add(0.05)).add(1))
}
function getDeltaLevel(points = player.p.points) {
if (Decimal.eq(points, 0)) return new Decimal(0)

View file

@ -14,8 +14,7 @@ addLayer("p", {
type: "normal", // normal: cost to gain currency depends on amount gained. static: cost depends on how much you already have
exponent: 0.5, // Prestige currency exponent
gainMult() { // Calculate the multiplier for main currency from bonuses
mult = new Decimal(1)
return mult
return buyableEffect(this.layer, 11)
},
gainExp() { // Calculate the exponent on main currency from bonuses
return new Decimal(1)
@ -43,9 +42,9 @@ addLayer("p", {
progress() { return getAlphaLevel().div(getAlphaRankCost()) },
display() {
return "Alpha - Rank " + getAlphaRank() + " (" + getAlphaLevel() + "/" + getAlphaRankCost()
+ ")<br>Effect: +" + getAlphaRankEffect() + " to Alpha base."
+ ")<br>Effect: +" + getAlphaRankEffect() + " to Alpha effect."
},
fillStyle: {backgroundColor: "#0c6949"}
fillStyle: {backgroundColor: "#0c6949"},
},
beta: {
direction: RIGHT,
@ -66,7 +65,7 @@ addLayer("p", {
progress() { return getBetaLevel().div(getBetaRankCost()) },
display() {
return "Beta - Rank " + getBetaRank() + " (" + getBetaLevel() + "/" + getBetaRankCost()
+ ")<br>Effect: +" + getBetaRankEffect() + " to Beta base."
+ ")<br>Effect: +" + getBetaRankEffect() + " to Beta effect."
},
fillStyle: {backgroundColor: "#0c6949"},
unlocked() { return getAlphaLevel().gte(1) }
@ -90,7 +89,7 @@ addLayer("p", {
progress() { return getGammaLevel().div(getGammaRankCost()) },
display() {
return "Gamma - Rank " + getGammaRank() + " (" + getGammaLevel() + "/" + getGammaRankCost()
+ ")<br>Effect: +" + getGammaRankEffect() + " to Gamma base."
+ ")<br>Effect: +" + getGammaRankEffect() + " to Gamma effect exponent."
},
fillStyle: {backgroundColor: "#0c6949"},
unlocked() { return getBetaLevel().gte(1) }
@ -114,7 +113,7 @@ addLayer("p", {
progress() { return getDeltaLevel().div(getDeltaRankCost()) },
display() {
return "Delta - Rank " + getDeltaRank() + " (" + getDeltaLevel() + "/" + getDeltaRankCost()
+ ")<br>Effect: +" + getDeltaRankEffect() + " to Delta base."
+ ")<br>Effect: +" + getDeltaRankEffect() + " to Delta effect."
},
fillStyle: {backgroundColor: "#0c6949"},
unlocked() { return getGammaLevel().gte(1) }
@ -138,17 +137,36 @@ addLayer("p", {
progress() { return getEpsilonLevel().div(getEpsilonRankCost()) },
display() {
return "Epsilon - Rank " + getEpsilonRank() + " (" + getEpsilonLevel() + "/" + getEpsilonRankCost()
+ ")<br>Effect: +" + getEpsilonRankEffect() + " to Epsilon base."
+ ")<br>Effect: +" + getEpsilonRankEffect() + " to Epsilon effect."
},
fillStyle: {backgroundColor: "#0c6949"},
unlocked() { return getDeltaLevel().gte(1) }
},
},
microtabs: {
progress: {
level: {
buyables: {
11: {
title: "More progress",
effect() { return Decimal.pow(1.25, getBuyableAmount(this.layer, this.id)) },
cost() { return Decimal.mul(getBuyableAmount(this.layer, this.id), 5).add(50) },
display() {
return "Increase progress point gain.<br><br>Amount: " + getBuyableAmount(this.layer, this.id)
+ ".<br>Effect: " + this.effect(getBuyableAmount(this.layer, this.id)) + "x.<br>Cost: "
+ this.cost(getBuyableAmount(this.layer, this.id)) + " total levels."
},
canAfford() { return Decimal.gte(getTotalLevel(), this.cost()) },
buy() { addBuyables(this.layer, this.id, 1) }
}
},
tabFormat: {
levels: {
content: [
"main-display",
"prestige-button",
"resource-display",
["raw-html", () => "You have " + getTotalLevel() + " levels."],
["raw-html", () => "You have " + getTotalRank() + " ranks."],
"blank",
"blank",
["bar", "alpha"],
["bar", "beta"],
["bar", "gamma"],
@ -156,9 +174,15 @@ addLayer("p", {
["bar", "epsilon"]
]
},
rank: {
ranks: {
content: [
"main-display",
"prestige-button",
"resource-display",
["raw-html", () => "You have " + getTotalLevel() + " levels."],
["raw-html", () => "You have " + getTotalRank() + " ranks."],
"blank",
"blank",
["bar", "alphaRank"],
["bar", "betaRank"],
["bar", "gammaRank"],
@ -166,16 +190,20 @@ addLayer("p", {
["bar", "epsilonRank"]
],
unlocked() { return getAlphaLevel().gte(18) }
}
}
},
tabFormat: [
buyables: {
content: [
"main-display",
"prestige-button",
"resource-display",
["raw-html", () => "You have " + getTotalLevel() + " levels."],
["raw-html", () => "You have " + getTotalRank() + " ranks."],
"blank",
"blank",
["microtabs", "progress"],
"buyables"
],
unlocked() { return getTotalLevel().gte(45) }
}
},
layerShown(){return true}
})

View file

@ -6,7 +6,7 @@ function getAlphaRankCost(points = player.p.points) {
return getAlphaRank(points).add(1).mul(20)
}
function getAlphaRankEffect(points = player.p.points) {
return getAlphaRank(points).div(50)
return getAlphaRank(points).div(25)
}
function getBetaRank(points = player.p.points) {
if (Decimal.eq(points, 0)) return new Decimal(0)
@ -16,7 +16,7 @@ function getBetaRankCost(points = player.p.points) {
return getBetaRank(points).add(1).mul(17.5)
}
function getBetaRankEffect(points = player.p.points) {
return getBetaRank(points).div(40)
return getBetaRank(points).div(100).mul(3)
}
function getGammaRank(points = player.p.points) {
if (Decimal.eq(points, 0)) return new Decimal(0)
@ -26,7 +26,7 @@ function getGammaRankCost(points = player.p.points) {
return getGammaRank(points).add(1).mul(15)
}
function getGammaRankEffect(points = player.p.points) {
return getGammaRank(points).div(100).mul(3)
return getGammaRank(points).div(50)
}
function getDeltaRank(points = player.p.points) {
if (Decimal.eq(points, 0)) return new Decimal(0)
@ -36,7 +36,7 @@ function getDeltaRankCost(points = player.p.points) {
return getDeltaRank(points).add(1).mul(12.5)
}
function getDeltaRankEffect(points = player.p.points) {
return getDeltaRank(points).div(25)
return getDeltaRank(points).div(20)
}
function getEpsilonRank(points = player.p.points) {
if (Decimal.eq(points, 0)) return new Decimal(0)
@ -46,7 +46,7 @@ function getEpsilonRankCost(points = player.p.points) {
return getEpsilonRank(points).add(1).mul(10)
}
function getEpsilonRankEffect(points = player.p.points) {
return getEpsilonRank(points).div(20)
return getEpsilonRank(points).div(100).mul(12)
}
function getTotalRank() {