2024-03-07 17:49:20 +00:00
|
|
|
addLayer("p", {
|
|
|
|
name: "progress", // This is optional, only used in a few places, If absent it just uses the layer id.
|
|
|
|
symbol: "%", // This appears on the layer's node. Default is the id with the first letter capitalized
|
|
|
|
position: 0, // Horizontal position within a row. By default it uses the layer id and sorts in alphabetical order
|
|
|
|
startData() { return {
|
|
|
|
unlocked: true,
|
2024-03-07 20:05:42 +00:00
|
|
|
points: new Decimal(0)
|
2024-03-07 17:49:20 +00:00
|
|
|
}},
|
|
|
|
color: "#0c6949",
|
|
|
|
requires: new Decimal(1), // Can be a function that takes requirement increases into account
|
|
|
|
resource: "progress points", // Name of prestige currency
|
|
|
|
baseResource: "points", // Name of resource prestige is based on
|
|
|
|
baseAmount() {return player.points}, // Get the current amount of baseResource
|
|
|
|
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
|
2024-03-08 16:50:09 +00:00
|
|
|
return buyableEffect(this.layer, 11)
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
|
|
|
gainExp() { // Calculate the exponent on main currency from bonuses
|
|
|
|
return new Decimal(1)
|
|
|
|
},
|
|
|
|
row: 0, // Row the layer is in on the tree (0 is the first row)
|
|
|
|
hotkeys: [
|
|
|
|
{key: "p", description: "P: Reset for progress points", onPress(){if (canReset(this.layer)) doReset(this.layer)}},
|
|
|
|
],
|
|
|
|
bars: {
|
|
|
|
alpha: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
2024-03-07 19:22:08 +00:00
|
|
|
progress() { return player[this.layer].points.div(getAlphaCost()) },
|
2024-03-07 17:49:20 +00:00
|
|
|
display() {
|
2024-03-07 19:22:08 +00:00
|
|
|
return "Alpha - Level " + getAlphaLevel() + " (" + player[this.layer].points + "/" + getAlphaCost()
|
|
|
|
+ ")<br>Effect: +" + getAlphaEffect() + " to point gen."
|
|
|
|
},
|
|
|
|
fillStyle: {backgroundColor: "#0c6949"}
|
|
|
|
},
|
|
|
|
alphaRank: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
|
|
|
progress() { return getAlphaLevel().div(getAlphaRankCost()) },
|
|
|
|
display() {
|
|
|
|
return "Alpha - Rank " + getAlphaRank() + " (" + getAlphaLevel() + "/" + getAlphaRankCost()
|
2024-03-08 19:37:47 +00:00
|
|
|
+ ")<br>Effect: +" + getAlphaRankEffect() + " to Alpha effect base."
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
2024-03-08 16:50:09 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
|
|
|
beta: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
2024-03-07 19:22:08 +00:00
|
|
|
progress() { return player[this.layer].points.div(getBetaCost()) },
|
2024-03-07 17:49:20 +00:00
|
|
|
display() {
|
2024-03-07 19:22:08 +00:00
|
|
|
return "Beta - Level " + getBetaLevel() + " (" + player[this.layer].points + "/" + getBetaCost()
|
|
|
|
+ ")<br>Effect: x" + getBetaEffect() + " to point gen."
|
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
|
|
|
unlocked() { return getAlphaLevel().gte(1) }
|
2024-03-07 19:22:08 +00:00
|
|
|
},
|
|
|
|
betaRank: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
|
|
|
progress() { return getBetaLevel().div(getBetaRankCost()) },
|
|
|
|
display() {
|
|
|
|
return "Beta - Rank " + getBetaRank() + " (" + getBetaLevel() + "/" + getBetaRankCost()
|
2024-03-08 19:37:47 +00:00
|
|
|
+ ")<br>Effect: +" + getBetaRankEffect() + " to Beta effect base."
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
|
|
|
unlocked() { return getAlphaLevel().gte(1) }
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
|
|
|
gamma: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
2024-03-07 19:22:08 +00:00
|
|
|
progress() { return player[this.layer].points.div(getGammaCost()) },
|
|
|
|
display() {
|
|
|
|
return "Gamma - Level " + getGammaLevel() + " (" + player[this.layer].points + "/" + getGammaCost()
|
|
|
|
+ ")<br>Effect: x" + getGammaEffect() + " to point gen."
|
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
|
|
|
unlocked() { return getBetaLevel().gte(1) }
|
2024-03-07 19:22:08 +00:00
|
|
|
},
|
|
|
|
gammaRank: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
|
|
|
progress() { return getGammaLevel().div(getGammaRankCost()) },
|
2024-03-07 17:49:20 +00:00
|
|
|
display() {
|
2024-03-07 19:22:08 +00:00
|
|
|
return "Gamma - Rank " + getGammaRank() + " (" + getGammaLevel() + "/" + getGammaRankCost()
|
2024-03-08 16:50:09 +00:00
|
|
|
+ ")<br>Effect: +" + getGammaRankEffect() + " to Gamma effect exponent."
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
|
|
|
unlocked() { return getBetaLevel().gte(1) }
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
|
|
|
delta: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
2024-03-07 19:22:08 +00:00
|
|
|
progress() { return player[this.layer].points.div(getDeltaCost()) },
|
|
|
|
display() {
|
|
|
|
return "Delta - Level " + getDeltaLevel() + " (" + player[this.layer].points + "/" + getDeltaCost()
|
|
|
|
+ ")<br>Effect: x" + getDeltaEffect() + " to point gen."
|
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
|
|
|
unlocked() { return getGammaLevel().gte(1) }
|
2024-03-07 19:22:08 +00:00
|
|
|
},
|
|
|
|
deltaRank: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
|
|
|
progress() { return getDeltaLevel().div(getDeltaRankCost()) },
|
2024-03-07 17:49:20 +00:00
|
|
|
display() {
|
2024-03-07 19:22:08 +00:00
|
|
|
return "Delta - Rank " + getDeltaRank() + " (" + getDeltaLevel() + "/" + getDeltaRankCost()
|
2024-03-08 19:37:47 +00:00
|
|
|
+ ")<br>Effect: +" + getDeltaRankEffect() + " to Delta effect base."
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
|
|
|
unlocked() { return getGammaLevel().gte(1) }
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
|
|
|
epsilon: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
2024-03-07 19:22:08 +00:00
|
|
|
progress() { return player[this.layer].points.div(getEpsilonCost()) },
|
2024-03-07 17:49:20 +00:00
|
|
|
display() {
|
2024-03-07 19:22:08 +00:00
|
|
|
return "Epsilon - Level " + getEpsilonLevel() + " (" + player[this.layer].points + "/" + getEpsilonCost()
|
|
|
|
+ ")<br>Effect: ^" + getEpsilonEffect() + " to point gen."
|
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
|
|
|
unlocked() { return getDeltaLevel().gte(1) }
|
2024-03-07 19:22:08 +00:00
|
|
|
},
|
|
|
|
epsilonRank: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
|
|
|
progress() { return getEpsilonLevel().div(getEpsilonRankCost()) },
|
|
|
|
display() {
|
|
|
|
return "Epsilon - Rank " + getEpsilonRank() + " (" + getEpsilonLevel() + "/" + getEpsilonRankCost()
|
2024-03-08 19:37:47 +00:00
|
|
|
+ ")<br>Effect: +" + getEpsilonRankEffect() + " to Epsilon effect base."
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
|
|
|
unlocked() { return getDeltaLevel().gte(1) }
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
2024-03-08 19:37:47 +00:00
|
|
|
zeta: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
|
|
|
progress() { return player[this.layer].points.div(getZetaCost()) },
|
|
|
|
display() {
|
|
|
|
return "Zeta - Level " + getZetaLevel() + " (" + player[this.layer].points + "/" + getZetaCost()
|
|
|
|
+ ")<br>Effect: x" + getZetaEffect() + " to point gen."
|
|
|
|
},
|
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
|
|
|
unlocked() { return getEpsilonLevel().gte(1) }
|
|
|
|
},
|
|
|
|
zetaRank: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
|
|
|
progress() { return getZetaLevel().div(getZetaRankCost()) },
|
|
|
|
display() {
|
|
|
|
return "Zeta - Rank " + getZetaRank() + " (" + getZetaLevel() + "/" + getZetaRankCost()
|
|
|
|
+ ")<br>Effect: +" + getZetaRankEffect() + " to Zeta effect base."
|
|
|
|
},
|
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
|
|
|
unlocked() { return getEpsilonLevel().gte(1) }
|
|
|
|
},
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
2024-03-08 16:50:09 +00:00
|
|
|
buyables: {
|
|
|
|
11: {
|
|
|
|
title: "More progress",
|
2024-03-08 19:37:47 +00:00
|
|
|
effect() { return Decimal.pow(1.1, getBuyableAmount(this.layer, this.id)) },
|
|
|
|
cost() { return Decimal.pow(getBuyableAmount(this.layer, this.id), 1.2).mul(5).add(50) },
|
2024-03-08 16:50:09 +00:00
|
|
|
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."
|
2024-03-07 19:22:08 +00:00
|
|
|
},
|
2024-03-08 16:50:09 +00:00
|
|
|
canAfford() { return Decimal.gte(getTotalLevel(), this.cost()) },
|
|
|
|
buy() { addBuyables(this.layer, this.id, 1) }
|
2024-03-08 19:37:47 +00:00
|
|
|
},
|
|
|
|
12: {
|
|
|
|
title: "Rebased",
|
|
|
|
effect() { return Decimal.pow(0.95, getBuyableAmount(this.layer, this.id)) },
|
|
|
|
cost() { return Decimal.pow(getBuyableAmount(this.layer, this.id), 1.4).mul(10).add(80) },
|
|
|
|
display() {
|
|
|
|
return "Decrease Gamma effect base.<br><br>Amount: " + getBuyableAmount(this.layer, this.id)
|
|
|
|
+ ".<br>Effect: ^" + this.effect(getBuyableAmount(this.layer, this.id)) + ".<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) }
|
|
|
|
},
|
|
|
|
13: {
|
|
|
|
title: "Shorter bars",
|
|
|
|
effect() { return Decimal.pow(0.98, getBuyableAmount(this.layer, this.id)) },
|
|
|
|
cost() { return Decimal.pow(getBuyableAmount(this.layer, this.id), 1.6).mul(15).add(130) },
|
|
|
|
display() {
|
|
|
|
return "Decrease all level costs.<br><br>Amount: " + getBuyableAmount(this.layer, this.id)
|
|
|
|
+ ".<br>Effect: ^" + this.effect(getBuyableAmount(this.layer, this.id)) + ".<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) }
|
2024-03-08 16:50:09 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
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"],
|
|
|
|
["bar", "delta"],
|
2024-03-08 19:37:47 +00:00
|
|
|
["bar", "epsilon"],
|
|
|
|
["bar", "zeta"]
|
2024-03-08 16:50:09 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
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"],
|
|
|
|
["bar", "deltaRank"],
|
2024-03-08 19:37:47 +00:00
|
|
|
["bar", "epsilonRank"],
|
|
|
|
["bar", "zetaRank"]
|
2024-03-08 16:50:09 +00:00
|
|
|
],
|
|
|
|
unlocked() { return getAlphaLevel().gte(18) }
|
|
|
|
},
|
|
|
|
buyables: {
|
|
|
|
content: [
|
|
|
|
"main-display",
|
|
|
|
"prestige-button",
|
|
|
|
"resource-display",
|
|
|
|
["raw-html", () => "You have " + getTotalLevel() + " levels."],
|
|
|
|
["raw-html", () => "You have " + getTotalRank() + " ranks."],
|
|
|
|
"blank",
|
|
|
|
"blank",
|
|
|
|
"buyables"
|
|
|
|
],
|
|
|
|
unlocked() { return getTotalLevel().gte(45) }
|
2024-03-07 19:22:08 +00:00
|
|
|
}
|
|
|
|
},
|
2024-03-07 17:49:20 +00:00
|
|
|
layerShown(){return true}
|
|
|
|
})
|