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",
|
2024-03-09 13:28:55 +00:00
|
|
|
requires() {
|
|
|
|
let req = new Decimal(1)
|
2024-03-23 11:29:06 +00:00
|
|
|
if (hasMilestone('f', 3)) { req = req.mul(0.5) }
|
2024-03-10 17:19:22 +00:00
|
|
|
if (hasUpgrade('f', 33)) { req = req.mul(0.75) }
|
2024-03-10 17:35:06 +00:00
|
|
|
if (hasUpgrade('f', 43)) { req = req.div(upgradeEffect('f', 43)) }
|
2024-03-09 13:28:55 +00:00
|
|
|
return req
|
|
|
|
}, // Can be a function that takes requirement increases into account
|
2024-03-07 17:49:20 +00:00
|
|
|
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
|
2024-03-09 17:14:48 +00:00
|
|
|
exponent: 0.3, // Prestige currency exponent
|
2024-03-07 17:49:20 +00:00
|
|
|
gainMult() { // Calculate the multiplier for main currency from bonuses
|
2024-03-13 17:02:37 +00:00
|
|
|
let mult = new Decimal(1)
|
|
|
|
mult = mult.mul(buyableEffect(this.layer, 11))
|
|
|
|
mult = mult.mul(getThetaEffect())
|
2024-03-17 19:58:26 +00:00
|
|
|
if (hasMilestone('f', 1)) mult = mult.mul(3)
|
2024-03-13 17:02:37 +00:00
|
|
|
return mult
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
|
|
|
gainExp() { // Calculate the exponent on main currency from bonuses
|
2024-03-23 11:29:06 +00:00
|
|
|
return new Decimal(1)
|
|
|
|
},
|
|
|
|
doReset(resettingLayer) {
|
|
|
|
if (layers[resettingLayer].row <= this.row) return;
|
|
|
|
let keep = []
|
|
|
|
if (hasMilestone('f', 2) && resettingLayer == 'sp' && player.sp.resetsPP) keep.push("points")
|
|
|
|
layerDataReset(this.layer, keep)
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
|
|
|
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)}},
|
|
|
|
],
|
2024-03-10 17:19:22 +00:00
|
|
|
passiveGeneration() {
|
2024-03-10 17:35:06 +00:00
|
|
|
let gain = 0
|
2024-03-15 15:48:00 +00:00
|
|
|
if (hasUpgrade('f', 23)) gain += 0.1
|
|
|
|
if (hasUpgrade('f', 44)) gain += 0.15
|
2024-03-10 17:35:06 +00:00
|
|
|
return gain
|
2024-03-10 17:19:22 +00:00
|
|
|
},
|
2024-03-13 17:02:37 +00:00
|
|
|
automate() {
|
2024-03-23 11:29:06 +00:00
|
|
|
if (hasMilestone('f', 7)) {
|
2024-03-13 17:02:37 +00:00
|
|
|
Object.values(tmp[this.layer].buyables).forEach(i => { if (i.canAfford) i.buy() })
|
|
|
|
}
|
|
|
|
},
|
2024-03-07 17:49:20 +00:00
|
|
|
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-17 19:58:26 +00:00
|
|
|
return "Alpha - Level " + format(getAlphaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getAlphaCost())
|
|
|
|
+ ")<br>Effect: +" + format(getAlphaEffect()) + " to point gen."
|
2024-03-07 19:22:08 +00:00
|
|
|
},
|
|
|
|
fillStyle: {backgroundColor: "#0c6949"}
|
|
|
|
},
|
|
|
|
alphaRank: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
|
|
|
progress() { return getAlphaLevel().div(getAlphaRankCost()) },
|
|
|
|
display() {
|
2024-03-17 19:58:26 +00:00
|
|
|
return "Alpha - Rank " + format(getAlphaRank()) + " (" + format(getAlphaLevel()) + "/" + format(getAlphaRankCost())
|
|
|
|
+ ")<br>Effect: +" + format(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-17 19:58:26 +00:00
|
|
|
return "Beta - Level " + format(getBetaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getBetaCost())
|
|
|
|
+ ")<br>Effect: x" + format(getBetaEffect()) + " to point gen."
|
2024-03-07 19:22:08 +00:00
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
2024-03-13 17:02:37 +00:00
|
|
|
unlocked() { return getAlphaLevel().gt(0) }
|
2024-03-07 19:22:08 +00:00
|
|
|
},
|
|
|
|
betaRank: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
|
|
|
progress() { return getBetaLevel().div(getBetaRankCost()) },
|
|
|
|
display() {
|
2024-03-17 19:58:26 +00:00
|
|
|
return "Beta - Rank " + format(getBetaRank()) + " (" + format(getBetaLevel()) + "/" + format(getBetaRankCost())
|
|
|
|
+ ")<br>Effect: +" + format(getBetaRankEffect()) + " to Beta effect base."
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
2024-03-13 17:02:37 +00:00
|
|
|
unlocked() { return getAlphaLevel().gt(0) }
|
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() {
|
2024-03-17 19:58:26 +00:00
|
|
|
return "Gamma - Level " + format(getGammaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getGammaCost())
|
|
|
|
+ ")<br>Effect: x" + format(getGammaEffect()) + " to point gen."
|
2024-03-07 19:22:08 +00:00
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
2024-03-13 17:02:37 +00:00
|
|
|
unlocked() { return getBetaLevel().gt(0) }
|
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-17 19:58:26 +00:00
|
|
|
return "Gamma - Rank " + format(getGammaRank()) + " (" + format(getGammaLevel()) + "/" + format(getGammaRankCost())
|
|
|
|
+ ")<br>Effect: +" + format(getGammaRankEffect()) + " to Gamma effect exponent."
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
2024-03-13 17:02:37 +00:00
|
|
|
unlocked() { return getBetaLevel().gt(0) }
|
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() {
|
2024-03-17 19:58:26 +00:00
|
|
|
return "Delta - Level " + format(getDeltaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getDeltaCost())
|
|
|
|
+ ")<br>Effect: x" + format(getDeltaEffect()) + " to point gen."
|
2024-03-07 19:22:08 +00:00
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
2024-03-13 17:02:37 +00:00
|
|
|
unlocked() { return getGammaLevel().gt(0) }
|
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-17 19:58:26 +00:00
|
|
|
return "Delta - Rank " + format(getDeltaRank()) + " (" + format(getDeltaLevel()) + "/" + format(getDeltaRankCost())
|
|
|
|
+ ")<br>Effect: +" + format(getDeltaRankEffect()) + " to Delta effect base."
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
2024-03-13 17:02:37 +00:00
|
|
|
unlocked() { return getGammaLevel().gt(0) }
|
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-17 19:58:26 +00:00
|
|
|
return "Epsilon - Level " + format(getEpsilonLevel()) + " (" + format(player[this.layer].points) + "/" + format(getEpsilonCost())
|
|
|
|
+ ")<br>Effect: ^" + format(getEpsilonEffect()) + " to point gen."
|
2024-03-07 19:22:08 +00:00
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
2024-03-13 17:02:37 +00:00
|
|
|
unlocked() { return getDeltaLevel().gt(0) }
|
2024-03-07 19:22:08 +00:00
|
|
|
},
|
|
|
|
epsilonRank: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
|
|
|
progress() { return getEpsilonLevel().div(getEpsilonRankCost()) },
|
|
|
|
display() {
|
2024-03-17 19:58:26 +00:00
|
|
|
return "Epsilon - Rank " + format(getEpsilonRank()) + " (" + format(getEpsilonLevel()) + "/" + format(getEpsilonRankCost())
|
|
|
|
+ ")<br>Effect: +" + format(getEpsilonRankEffect()) + " to Epsilon effect base."
|
2024-03-07 17:49:20 +00:00
|
|
|
},
|
2024-03-07 20:22:42 +00:00
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
2024-03-13 17:02:37 +00:00
|
|
|
unlocked() { return getDeltaLevel().gt(0) }
|
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() {
|
2024-03-17 19:58:26 +00:00
|
|
|
return "Zeta - Level " + format(getZetaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getZetaCost())
|
|
|
|
+ ")<br>Effect: x" + format(getZetaEffect()) + " to point gen."
|
2024-03-08 19:37:47 +00:00
|
|
|
},
|
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
2024-03-13 17:02:37 +00:00
|
|
|
unlocked() { return getEpsilonLevel().gt(0) }
|
2024-03-08 19:37:47 +00:00
|
|
|
},
|
|
|
|
zetaRank: {
|
|
|
|
direction: RIGHT,
|
|
|
|
width: 300,
|
|
|
|
height: 50,
|
|
|
|
progress() { return getZetaLevel().div(getZetaRankCost()) },
|
|
|
|
display() {
|
2024-03-17 19:58:26 +00:00
|
|
|
return "Zeta - Rank " + format(getZetaRank()) + " (" + format(getZetaLevel()) + "/" + format(getZetaRankCost())
|
|
|
|
+ ")<br>Effect: +" + format(getZetaRankEffect()) + " to Zeta effect base."
|
2024-03-08 19:37:47 +00:00
|
|
|
},
|
|
|
|
fillStyle: {backgroundColor: "#0c6949"},
|
2024-03-13 17:02:37 +00:00
|
|
|
unlocked() { return getEpsilonLevel().gt(0) }
|
2024-03-08 19:37:47 +00:00
|
|
|
},
|
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() {
|
2024-03-17 19:58:26 +00:00
|
|
|
return "Increase progress point gain.<br><br>Amount: " + format(getBuyableAmount(this.layer, this.id))
|
|
|
|
+ ".<br>Effect: x" + format(this.effect(getBuyableAmount(this.layer, this.id))) + ".<br>Cost: "
|
|
|
|
+ format(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",
|
2024-03-17 19:58:26 +00:00
|
|
|
effect() { return Decimal.add(getBuyableAmount(this.layer, this.id), hasUpgrade('f', 21) ? 2 : 0).pow_base(0.95) },
|
2024-03-09 17:38:32 +00:00
|
|
|
cost() { return Decimal.pow(getBuyableAmount(this.layer, this.id), 1.4).mul(7).add(80) },
|
2024-03-08 19:37:47 +00:00
|
|
|
display() {
|
2024-03-17 19:58:26 +00:00
|
|
|
return "Decrease Gamma effect base.<br><br>Amount: " + format(getBuyableAmount(this.layer, this.id))
|
|
|
|
+ ".<br>Effect: ^" + format(this.effect(getBuyableAmount(this.layer, this.id))) + ".<br>Cost: "
|
|
|
|
+ format(this.cost(getBuyableAmount(this.layer, this.id))) + " total levels."
|
2024-03-08 19:37:47 +00:00
|
|
|
},
|
|
|
|
canAfford() { return Decimal.gte(getTotalLevel(), this.cost()) },
|
|
|
|
buy() { addBuyables(this.layer, this.id, 1) }
|
|
|
|
},
|
|
|
|
13: {
|
|
|
|
title: "Shorter bars",
|
2024-03-17 19:58:26 +00:00
|
|
|
effect() { return Decimal.add(getBuyableAmount(this.layer, this.id), hasUpgrade('f', 22) ? 2 : 0).pow_base(0.98) },
|
2024-03-09 17:38:32 +00:00
|
|
|
cost() { return Decimal.pow(getBuyableAmount(this.layer, this.id), 1.6).mul(10).add(100) },
|
2024-03-08 19:37:47 +00:00
|
|
|
display() {
|
2024-03-17 19:58:26 +00:00
|
|
|
return "Decrease all level costs.<br><br>Amount: " + format(getBuyableAmount(this.layer, this.id))
|
|
|
|
+ ".<br>Effect: ^" + format(this.effect(getBuyableAmount(this.layer, this.id))) + ".<br>Cost: "
|
|
|
|
+ format(this.cost(getBuyableAmount(this.layer, this.id))) + " total levels."
|
2024-03-08 19:37:47 +00:00
|
|
|
},
|
|
|
|
canAfford() { return Decimal.gte(getTotalLevel(), this.cost()) },
|
|
|
|
buy() { addBuyables(this.layer, this.id, 1) }
|
2024-03-08 16:50:09 +00:00
|
|
|
}
|
|
|
|
},
|
2024-03-10 17:19:22 +00:00
|
|
|
clickables: {
|
|
|
|
11: {
|
|
|
|
display() { return "Hold to gain PP" },
|
|
|
|
canClick() { return true },
|
|
|
|
onClick() { if (canReset(this.layer)) doReset(this.layer) },
|
|
|
|
onHold() { if (canReset(this.layer)) doReset(this.layer) }
|
|
|
|
}
|
|
|
|
},
|
2024-03-08 16:50:09 +00:00
|
|
|
tabFormat: {
|
|
|
|
levels: {
|
|
|
|
content: [
|
|
|
|
"main-display",
|
2024-03-10 17:19:22 +00:00
|
|
|
["row", ["prestige-button", ["clickable", 11]]],
|
2024-03-08 16:50:09 +00:00
|
|
|
"resource-display",
|
2024-03-17 19:58:26 +00:00
|
|
|
["raw-html", () => "You have " + format(getTotalLevel()) + " level" + (getTotalLevel().eq(1) ? "" : "s") + "."],
|
|
|
|
["raw-html", () => "You have " + format(getTotalRank()) + " rank" + (getTotalRank().eq(1) ? "" : "s") + "."],
|
2024-03-08 16:50:09 +00:00
|
|
|
"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",
|
2024-03-10 17:19:22 +00:00
|
|
|
["row", ["prestige-button", ["clickable", 11]]],
|
2024-03-08 16:50:09 +00:00
|
|
|
"resource-display",
|
2024-03-17 19:58:26 +00:00
|
|
|
["raw-html", () => "You have " + format(getTotalLevel()) + " level" + (getTotalLevel().eq(1) ? "" : "s") + "."],
|
|
|
|
["raw-html", () => "You have " + format(getTotalRank()) + " rank" + (getTotalRank().eq(1) ? "" : "s") + "."],
|
2024-03-08 16:50:09 +00:00
|
|
|
"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",
|
2024-03-10 17:19:22 +00:00
|
|
|
["row", ["prestige-button", ["clickable", 11]]],
|
2024-03-08 16:50:09 +00:00
|
|
|
"resource-display",
|
2024-03-17 19:58:26 +00:00
|
|
|
["raw-html", () => "You have " + format(getTotalLevel()) + " level" + (getTotalLevel().eq(1) ? "" : "s") + "."],
|
|
|
|
["raw-html", () => "You have " + format(getTotalRank()) + " rank" + (getTotalRank().eq(1) ? "" : "s") + "."],
|
2024-03-08 16:50:09 +00:00
|
|
|
"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}
|
|
|
|
})
|