Hell yeah super progress

This commit is contained in:
Nif 2024-03-13 17:02:37 +00:00
parent 225af74c76
commit 707d9f3e73
5 changed files with 215 additions and 41 deletions

View file

@ -1,7 +1,7 @@
addLayer("f", { addLayer("f", {
name: "files", // This is optional, only used in a few places, If absent it just uses the layer id. name: "files", // 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 symbol: "🗎", // This appears on the layer's node. Default is the id with the first letter capitalized
position: 1, // Horizontal position within a row. By default it uses the layer id and sorts in alphabetical order position: 0, // Horizontal position within a row. By default it uses the layer id and sorts in alphabetical order
startData() { return { startData() { return {
unlocked: false, unlocked: false,
points: new Decimal(0), points: new Decimal(0),
@ -18,7 +18,7 @@ addLayer("f", {
baseResource: "progress points", // Name of resource prestige is based on baseResource: "progress points", // Name of resource prestige is based on
baseAmount() {return player.p.points}, // Get the current amount of baseResource baseAmount() {return player.p.points}, // Get the current amount of baseResource
type: "static", // normal: cost to gain currency depends on amount gained. static: cost depends on how much you already have type: "static", // normal: cost to gain currency depends on amount gained. static: cost depends on how much you already have
exponent: 1, // Prestige currency exponent exponent: 1.1, // Prestige currency exponent
base() { base() {
let base = 1.2 let base = 1.2
if (hasUpgrade(this.layer, 41)) base **= 0.95 if (hasUpgrade(this.layer, 41)) base **= 0.95
@ -82,13 +82,24 @@ addLayer("f", {
effectDescription: "Multiply file cost by x0.8.", effectDescription: "Multiply file cost by x0.8.",
done() { return player.f.total.gte(15) } done() { return player.f.total.gte(15) }
}, },
8: {
requirementDescription: "20 total Files.",
effectDescription: "Autobuy all PP buyables.",
done() { return player.f.total.gte(20) }
},
9: {
requirementDescription: "30 total Files.",
effectDescription: "You can now get fractional levels.",
done() { return player.f.total.gte(30) }
},
}, },
upgrades: { upgrades: {
11: { 11: {
description: "Total rank boosts point gen.", description: "Total rank boosts point gen.",
effect() { return getTotalRank().add(2) }, effect() { return getTotalRank().add(2) },
effectDisplay() { return "^" + this.effect() + "." }, effectDisplay() { return "^" + this.effect() + "." },
cost: 1 cost: 1,
unlocked() { return hasMilestone(this.layer, 4) },
}, },
21: { 21: {
description: "Start with 2 free <b>Rebased</b> levels.", description: "Start with 2 free <b>Rebased</b> levels.",
@ -182,8 +193,8 @@ addLayer("f", {
"blank", "blank",
"blank", "blank",
["row", [ ["row", [
["milestones", [0, 2, 4, 6]], ["milestones", [0, 2, 4, 6, 8]],
["milestones", [1, 3, 5, 7]] ["milestones", [1, 3, 5, 7, 9]]
]] ]]
] ]
}, },

View file

@ -7,30 +7,33 @@ function inverseCumulativeExponential(base, levels) {
function getAlphaLevel(points = player.p.points) { function getAlphaLevel(points = player.p.points) {
if (Decimal.eq(points, 0)) return new Decimal(0) if (Decimal.eq(points, 0)) return new Decimal(0)
return inverseCumulativeExponential(1.1, Decimal.pow(points, buyableEffect('p', 13).pow(-1))).floor() const level = inverseCumulativeExponential(1.1, Decimal.pow(points, buyableEffect('p', 13).pow(-1)))
return hasMilestone('f', 9) ? level : level.floor()
} }
function getAlphaCost(points = player.p.points) { function getAlphaCost(points = player.p.points) {
return cumulativeExponential(1.1, getAlphaLevel(points)).pow(buyableEffect('p', 13)) return cumulativeExponential(1.1, getAlphaLevel(points).floor()).pow(buyableEffect('p', 13))
} }
function getAlphaEffect(points = player.p.points) { function getAlphaEffect(points = player.p.points) {
return getAlphaLevel(points).mul(getAlphaRankEffect(points).add(1/20)) return getAlphaLevel(points).mul(getAlphaRankEffect(points).add(1/20))
} }
function getBetaLevel(points = player.p.points) { function getBetaLevel(points = player.p.points) {
if (Decimal.eq(points, 0)) return new Decimal(0) if (Decimal.eq(points, 0)) return new Decimal(0)
return inverseCumulativeExponential(1.25, Decimal.div(Decimal.pow(points, buyableEffect('p', 13).pow(-1)), 5)).floor() const level = inverseCumulativeExponential(1.25, Decimal.div(Decimal.pow(points, buyableEffect('p', 13).pow(-1)), 5))
return hasMilestone('f', 9) ? level : level.floor()
} }
function getBetaCost(points = player.p.points) { function getBetaCost(points = player.p.points) {
return cumulativeExponential(1.25, getBetaLevel(points)).mul(5).pow(buyableEffect('p', 13)) return cumulativeExponential(1.25, getBetaLevel(points).floor()).mul(5).pow(buyableEffect('p', 13))
} }
function getBetaEffect(points = player.p.points) { function getBetaEffect(points = player.p.points) {
return getBetaLevel(points).mul(getBetaRankEffect(points).add(1/20)).add(1).pow(hasUpgrade('f', 41) ? 1.2 : 1) return getBetaLevel(points).mul(getBetaRankEffect(points).add(1/20)).add(1).pow(hasUpgrade('f', 41) ? 1.2 : 1)
} }
function getGammaLevel(points = player.p.points) { function getGammaLevel(points = player.p.points) {
if (Decimal.eq(points, 0)) return new Decimal(0) if (Decimal.eq(points, 0)) return new Decimal(0)
return inverseCumulativeExponential(1.5, Decimal.div(Decimal.pow(points, buyableEffect('p', 13).pow(-1)), 15)).floor() const level = inverseCumulativeExponential(1.5, Decimal.div(Decimal.pow(points, buyableEffect('p', 13).pow(-1)), 15))
return hasMilestone('f', 9) ? level : level.floor()
} }
function getGammaCost(points = player.p.points) { function getGammaCost(points = player.p.points) {
return cumulativeExponential(1.5, getGammaLevel(points)).mul(15).pow(buyableEffect('p', 13)) return cumulativeExponential(1.5, getGammaLevel(points).floor()).mul(15).pow(buyableEffect('p', 13))
} }
function getGammaEffect(points = player.p.points) { function getGammaEffect(points = player.p.points) {
return Decimal.add(points, 1).add(hasUpgrade('f', 31) ? getTotalLevel() : 0).log(Decimal.pow(50, buyableEffect('p', 12))) return Decimal.add(points, 1).add(hasUpgrade('f', 31) ? getTotalLevel() : 0).log(Decimal.pow(50, buyableEffect('p', 12)))
@ -38,36 +41,84 @@ function getGammaEffect(points = player.p.points) {
} }
function getDeltaLevel(points = player.p.points) { function getDeltaLevel(points = player.p.points) {
if (Decimal.eq(points, 0)) return new Decimal(0) if (Decimal.eq(points, 0)) return new Decimal(0)
return inverseCumulativeExponential(2, Decimal.div(Decimal.pow(points, buyableEffect('p', 13).pow(-1)), 30)).floor() const level = inverseCumulativeExponential(2, Decimal.div(Decimal.pow(points, buyableEffect('p', 13).pow(-1)), 30))
return hasMilestone('f', 9) ? level : level.floor()
} }
function getDeltaCost(points = player.p.points) { function getDeltaCost(points = player.p.points) {
return cumulativeExponential(2, getDeltaLevel(points)).mul(30).pow(buyableEffect('p', 13)) return cumulativeExponential(2, getDeltaLevel(points).floor()).mul(30).pow(buyableEffect('p', 13))
} }
function getDeltaEffect(points = player.p.points) { function getDeltaEffect(points = player.p.points) {
return getDeltaLevel(points).mul(getDeltaRankEffect(points).add(1/5)).add(1).pow(hasUpgrade('f', 41) ? 1.2 : 1) return getDeltaLevel(points).mul(getDeltaRankEffect(points).add(1/5)).add(1).pow(hasUpgrade('f', 41) ? 1.2 : 1)
} }
function getEpsilonLevel(points = player.p.points) { function getEpsilonLevel(points = player.p.points) {
if (Decimal.eq(points, 0)) return new Decimal(0) if (Decimal.eq(points, 0)) return new Decimal(0)
return inverseCumulativeExponential(2.5, Decimal.div(Decimal.pow(points, buyableEffect('p', 13).pow(-1)), 50)).floor() const level = inverseCumulativeExponential(2.5, Decimal.div(Decimal.pow(points, buyableEffect('p', 13).pow(-1)), 50))
return hasMilestone('f', 9) ? level : level.floor()
} }
function getEpsilonCost(points = player.p.points) { function getEpsilonCost(points = player.p.points) {
return cumulativeExponential(2.5, getEpsilonLevel(points)).mul(50).pow(buyableEffect('p', 13)) return cumulativeExponential(2.5, getEpsilonLevel(points).floor()).mul(50).pow(buyableEffect('p', 13))
} }
function getEpsilonEffect(points = player.p.points) { function getEpsilonEffect(points = player.p.points) {
return getEpsilonLevel(points).mul(getEpsilonRankEffect(points).add(1/10)).add(1) return getEpsilonLevel(points).mul(getEpsilonRankEffect(points).add(1/10)).add(1)
} }
function getZetaLevel(points = player.p.points) { function getZetaLevel(points = player.p.points) {
if (Decimal.eq(points, 0)) return new Decimal(0) if (Decimal.eq(points, 0)) return new Decimal(0)
return inverseCumulativeExponential(3, Decimal.div(Decimal.pow(points, buyableEffect('p', 13).pow(-1)), 80)).floor() const level = inverseCumulativeExponential(3, Decimal.div(Decimal.pow(points, buyableEffect('p', 13).pow(-1)), 80))
return hasMilestone('f', 9) ? level : level.floor()
} }
function getZetaCost(points = player.p.points) { function getZetaCost(points = player.p.points) {
return cumulativeExponential(3, getZetaLevel(points)).mul(80).pow(buyableEffect('p', 13)) return cumulativeExponential(3, getZetaLevel(points).floor()).mul(80).pow(buyableEffect('p', 13))
} }
function getZetaEffect(points = player.p.points) { function getZetaEffect(points = player.p.points) {
return getZetaLevel(points).mul(getZetaRankEffect().add(1/3)).add(1).pow(hasUpgrade('f', 41) ? 1.2 : 1) return getZetaLevel(points).mul(getZetaRankEffect().add(1/3)).add(1).pow(hasUpgrade('f', 41) ? 1.2 : 1)
} }
function getTotalLevel() { function getTotalLevel(points = player.p.points) {
return getAlphaLevel().add(getBetaLevel()).add(getGammaLevel()).add(getDeltaLevel()).add(getEpsilonLevel()) return getAlphaLevel(points).add(getBetaLevel(points)).add(getGammaLevel(points)).add(getDeltaLevel(points))
.add(getZetaLevel()) .add(getEpsilonLevel(points)).add(getZetaLevel(points))
}
function getEtaLevel(points = player.sp.points) {
if (Decimal.eq(points, 0)) return new Decimal(0)
return inverseCumulativeExponential(1.2, Decimal.mul(points, 2)).floor()
}
function getEtaCost(points = player.sp.points) {
return cumulativeExponential(1.2, getEtaLevel(points)).div(2)
}
function getEtaEffect(points = player.sp.points) {
return getEtaLevel(points).sqrt()
}
function getThetaLevel(points = player.sp.points) {
if (Decimal.eq(points, 0)) return new Decimal(0)
return inverseCumulativeExponential(1.5, Decimal.div(points, 3)).floor()
}
function getThetaCost(points = player.sp.points) {
return cumulativeExponential(1.5, getThetaLevel(points)).mul(3)
}
function getThetaEffect(points = player.sp.points) {
return getThetaLevel(points).pow(1/4).add(1)
}
function getIotaLevel(points = player.sp.points) {
if (Decimal.eq(points, 0)) return new Decimal(0)
return inverseCumulativeExponential(1.7, Decimal.div(points, 5)).floor()
}
function getIotaCost(points = player.sp.points) {
return cumulativeExponential(1.7, getIotaLevel(points)).mul(5)
}
function getIotaEffect(points = player.sp.points) {
return getIotaLevel(points).pow(1/3).add(1)
}
function getKappaLevel(points = player.sp.points) {
if (Decimal.eq(points, 0)) return new Decimal(0)
return inverseCumulativeExponential(2, Decimal.div(points, 8)).floor()
}
function getKappaCost(points = player.sp.points) {
return cumulativeExponential(2, getKappaLevel(points)).mul(8)
}
function getKappaEffect(points = player.sp.points) {
return getKappaLevel(points).pow(2/3).add(1)
}
function getTotalSuperLevel(points = player.sp.points) {
return getEtaLevel(points).add(getThetaLevel(points)).add(getIotaLevel(points)).add(getKappaLevel(points))
} }

View file

@ -3,7 +3,7 @@ let modInfo = {
id: "nif/pbic", id: "nif/pbic",
author: "Nif", author: "Nif",
pointsName: "points", pointsName: "points",
modFiles: ["ranks.js", "levels.js", "progress.js", "files.js", "tree.js"], modFiles: ["ranks.js", "levels.js", "progress.js", "super progress.js", "files.js", "tree.js"],
discordName: "", discordName: "",
discordLink: "", discordLink: "",
@ -41,21 +41,24 @@ function getPointGen() {
if(!canGenPoints()) return new Decimal(0) if(!canGenPoints()) return new Decimal(0)
// additive // additive
let gain = getAlphaEffect() let gain = getAlphaEffect()
gain = gain.add(getEtaEffect())
// multiplicative // multiplicative
gain = gain.mul(getBetaEffect()) gain = gain.mul(getBetaEffect())
gain = gain.mul(getGammaEffect()) gain = gain.mul(getGammaEffect())
gain = gain.mul(getDeltaEffect()) gain = gain.mul(getDeltaEffect())
gain = gain.mul(getZetaEffect()) gain = gain.mul(getZetaEffect())
gain = gain.mul(getKappaEffect())
if (hasMilestone('f', 0)) gain = gain.mul(getTotalLevel().add(1).log(5).add(1)) if (hasMilestone('f', 0)) gain = gain.mul(getTotalLevel().add(1).log(5).add(1))
if (hasMilestone('f', 1)) gain = gain.mul(3) if (hasMilestone('f', 1)) gain = gain.mul(3)
// exponentiative // exponentiative
if (gain.gte(1)) { if (gain.gte(1)) {
gain = gain.pow(getEpsilonEffect()) gain = gain.pow(getEpsilonEffect())
gain = gain.pow(getIotaEffect())
if (hasMilestone('f', 3)) gain = gain.pow(2) if (hasMilestone('f', 3)) gain = gain.pow(2)
if (hasUpgrade('f', 11)) gain = gain.pow(upgradeEffect('f', 11)) if (hasUpgrade('f', 11)) gain = gain.pow(upgradeEffect('f', 11))
} }
// softcaps // softcaps
gain = softcap(gain, 1000, d => d.add(1).log(1.1)) gain = softcap(gain, 1000, d => d.add(1).log(1.01))
return gain return gain
} }
@ -65,10 +68,8 @@ function addedPlayerData() { return {
// Display extra things at the top of the page // Display extra things at the top of the page
var displayThings = [ var displayThings = [
"All exponentiative upgrades to point gen. only take affect above 1/s.", "All exponentiative upgrades only take affect above 1.",
function() { () => getPointGen().gte(1000) ? "Your points per second are being logarithmically softcapped over 1000/s" : ""
return getPointGen().gte(1000) ? "Your points per second are being logarithmically softcapped over 1000/s" : ""
}
] ]
// Determines when the game "ends" // Determines when the game "ends"
@ -92,5 +93,6 @@ function maxTickLength() {
// Use this if you need to undo inflation from an older version. If the version is older than the version that fixed the issue, // Use this if you need to undo inflation from an older version. If the version is older than the version that fixed the issue,
// you can cap their current resources with this. // you can cap their current resources with this.
function fixOldSave(oldVersion){ function fixOldSave(oldVersion) {
} }

View file

@ -20,7 +20,10 @@ addLayer("p", {
type: "normal", // normal: cost to gain currency depends on amount gained. static: cost depends on how much you already have type: "normal", // normal: cost to gain currency depends on amount gained. static: cost depends on how much you already have
exponent: 0.3, // Prestige currency exponent exponent: 0.3, // Prestige currency exponent
gainMult() { // Calculate the multiplier for main currency from bonuses gainMult() { // Calculate the multiplier for main currency from bonuses
return buyableEffect(this.layer, 11) let mult = new Decimal(1)
mult = mult.mul(buyableEffect(this.layer, 11))
mult = mult.mul(getThetaEffect())
return mult
}, },
gainExp() { // Calculate the exponent on main currency from bonuses gainExp() { // Calculate the exponent on main currency from bonuses
return new Decimal(1) return new Decimal(1)
@ -35,6 +38,11 @@ addLayer("p", {
if (hasUpgrade('f', 23)) gain += 0.05 if (hasUpgrade('f', 23)) gain += 0.05
return gain return gain
}, },
automate() {
if (hasMilestone('f', 8)) {
Object.values(tmp[this.layer].buyables).forEach(i => { if (i.canAfford) i.buy() })
}
},
bars: { bars: {
alpha: { alpha: {
direction: RIGHT, direction: RIGHT,
@ -68,7 +76,7 @@ addLayer("p", {
+ ")<br>Effect: x" + getBetaEffect() + " to point gen." + ")<br>Effect: x" + getBetaEffect() + " to point gen."
}, },
fillStyle: {backgroundColor: "#0c6949"}, fillStyle: {backgroundColor: "#0c6949"},
unlocked() { return getAlphaLevel().gte(1) } unlocked() { return getAlphaLevel().gt(0) }
}, },
betaRank: { betaRank: {
direction: RIGHT, direction: RIGHT,
@ -80,7 +88,7 @@ addLayer("p", {
+ ")<br>Effect: +" + getBetaRankEffect() + " to Beta effect base." + ")<br>Effect: +" + getBetaRankEffect() + " to Beta effect base."
}, },
fillStyle: {backgroundColor: "#0c6949"}, fillStyle: {backgroundColor: "#0c6949"},
unlocked() { return getAlphaLevel().gte(1) } unlocked() { return getAlphaLevel().gt(0) }
}, },
gamma: { gamma: {
direction: RIGHT, direction: RIGHT,
@ -92,7 +100,7 @@ addLayer("p", {
+ ")<br>Effect: x" + getGammaEffect() + " to point gen." + ")<br>Effect: x" + getGammaEffect() + " to point gen."
}, },
fillStyle: {backgroundColor: "#0c6949"}, fillStyle: {backgroundColor: "#0c6949"},
unlocked() { return getBetaLevel().gte(1) } unlocked() { return getBetaLevel().gt(0) }
}, },
gammaRank: { gammaRank: {
direction: RIGHT, direction: RIGHT,
@ -104,7 +112,7 @@ addLayer("p", {
+ ")<br>Effect: +" + getGammaRankEffect() + " to Gamma effect exponent." + ")<br>Effect: +" + getGammaRankEffect() + " to Gamma effect exponent."
}, },
fillStyle: {backgroundColor: "#0c6949"}, fillStyle: {backgroundColor: "#0c6949"},
unlocked() { return getBetaLevel().gte(1) } unlocked() { return getBetaLevel().gt(0) }
}, },
delta: { delta: {
direction: RIGHT, direction: RIGHT,
@ -116,7 +124,7 @@ addLayer("p", {
+ ")<br>Effect: x" + getDeltaEffect() + " to point gen." + ")<br>Effect: x" + getDeltaEffect() + " to point gen."
}, },
fillStyle: {backgroundColor: "#0c6949"}, fillStyle: {backgroundColor: "#0c6949"},
unlocked() { return getGammaLevel().gte(1) } unlocked() { return getGammaLevel().gt(0) }
}, },
deltaRank: { deltaRank: {
direction: RIGHT, direction: RIGHT,
@ -128,7 +136,7 @@ addLayer("p", {
+ ")<br>Effect: +" + getDeltaRankEffect() + " to Delta effect base." + ")<br>Effect: +" + getDeltaRankEffect() + " to Delta effect base."
}, },
fillStyle: {backgroundColor: "#0c6949"}, fillStyle: {backgroundColor: "#0c6949"},
unlocked() { return getGammaLevel().gte(1) } unlocked() { return getGammaLevel().gt(0) }
}, },
epsilon: { epsilon: {
direction: RIGHT, direction: RIGHT,
@ -140,7 +148,7 @@ addLayer("p", {
+ ")<br>Effect: ^" + getEpsilonEffect() + " to point gen." + ")<br>Effect: ^" + getEpsilonEffect() + " to point gen."
}, },
fillStyle: {backgroundColor: "#0c6949"}, fillStyle: {backgroundColor: "#0c6949"},
unlocked() { return getDeltaLevel().gte(1) } unlocked() { return getDeltaLevel().gt(0) }
}, },
epsilonRank: { epsilonRank: {
direction: RIGHT, direction: RIGHT,
@ -152,7 +160,7 @@ addLayer("p", {
+ ")<br>Effect: +" + getEpsilonRankEffect() + " to Epsilon effect base." + ")<br>Effect: +" + getEpsilonRankEffect() + " to Epsilon effect base."
}, },
fillStyle: {backgroundColor: "#0c6949"}, fillStyle: {backgroundColor: "#0c6949"},
unlocked() { return getDeltaLevel().gte(1) } unlocked() { return getDeltaLevel().gt(0) }
}, },
zeta: { zeta: {
direction: RIGHT, direction: RIGHT,
@ -164,7 +172,7 @@ addLayer("p", {
+ ")<br>Effect: x" + getZetaEffect() + " to point gen." + ")<br>Effect: x" + getZetaEffect() + " to point gen."
}, },
fillStyle: {backgroundColor: "#0c6949"}, fillStyle: {backgroundColor: "#0c6949"},
unlocked() { return getEpsilonLevel().gte(1) } unlocked() { return getEpsilonLevel().gt(0) }
}, },
zetaRank: { zetaRank: {
direction: RIGHT, direction: RIGHT,
@ -176,7 +184,7 @@ addLayer("p", {
+ ")<br>Effect: +" + getZetaRankEffect() + " to Zeta effect base." + ")<br>Effect: +" + getZetaRankEffect() + " to Zeta effect base."
}, },
fillStyle: {backgroundColor: "#0c6949"}, fillStyle: {backgroundColor: "#0c6949"},
unlocked() { return getEpsilonLevel().gte(1) } unlocked() { return getEpsilonLevel().gt(0) }
}, },
}, },
buyables: { buyables: {
@ -235,8 +243,8 @@ addLayer("p", {
"main-display", "main-display",
["row", ["prestige-button", ["clickable", 11]]], ["row", ["prestige-button", ["clickable", 11]]],
"resource-display", "resource-display",
["raw-html", () => "You have " + getTotalLevel() + " levels."], ["raw-html", () => "You have " + getTotalLevel() + " level" + (getTotalLevel().eq(1) ? "" : "s") + "."],
["raw-html", () => "You have " + getTotalRank() + " ranks."], ["raw-html", () => "You have " + getTotalRank() + " rank" + (getTotalRank().eq(1) ? "" : "s") + "."],
"blank", "blank",
"blank", "blank",
["bar", "alpha"], ["bar", "alpha"],

102
js/super progress.js Normal file
View file

@ -0,0 +1,102 @@
addLayer("sp", {
name: "super progress", // This is optional, only used in a few places, If absent it just uses the layer id.
symbol: "&permil;", // This appears on the layer's node. Default is the id with the first letter capitalized
position: 1, // Horizontal position within a row. By default it uses the layer id and sorts in alphabetical order
startData() { return {
unlocked: false,
points: new Decimal(0)
}},
color: "#107f76",
requires: 15000, // Can be a function that takes requirement increases into account
resource: "super 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
return new Decimal(1)
},
gainExp() { // Calculate the exponent on main currency from bonuses
return new Decimal(1)
},
row: 1, // Row the layer is in on the tree (0 is the first row)
hotkeys: [
{key: "s", description: "S: Reset for super progress points", onPress(){if (canReset(this.layer)) doReset(this.layer)}},
],
bars: {
eta: {
direction: RIGHT,
width: 300,
height: 50,
progress() { return player[this.layer].points.div(getEtaCost()) },
display() {
return "Eta - Level " + getEtaLevel() + " (" + player[this.layer].points + "/" + getEtaCost()
+ ")<br>Effect: +" + getEtaEffect() + " to point gen."
},
fillStyle: {backgroundColor: "#107f76"}
},
theta: {
direction: RIGHT,
width: 300,
height: 50,
progress() { return player[this.layer].points.div(getThetaCost()) },
display() {
return "Theta - Level " + getThetaLevel() + " (" + player[this.layer].points + "/" + getThetaCost()
+ ")<br>Effect: x" + getThetaEffect() + " to PP."
},
fillStyle: {backgroundColor: "#107f76"},
unlocked() { return getEtaLevel().gt(0) }
},
iota: {
direction: RIGHT,
width: 300,
height: 50,
progress() { return player[this.layer].points.div(getIotaCost()) },
display() {
return "Iota - Level " + getIotaLevel() + " (" + player[this.layer].points + "/" + getIotaCost()
+ ")<br>Effect: ^" + getIotaEffect() + " to point gen."
},
fillStyle: {backgroundColor: "#107f76"},
unlocked() { return getThetaLevel().gt(0) }
},
kappa: {
direction: RIGHT,
width: 300,
height: 50,
progress() { return player[this.layer].points.div(getKappaCost()) },
display() {
return "Kappa - Level " + getKappaLevel() + " (" + player[this.layer].points + "/" + getKappaCost()
+ ")<br>Effect: x" + getKappaEffect() + " to point gen."
},
fillStyle: {backgroundColor: "#107f76"},
unlocked() { return getIotaLevel().gt(0) }
},
},
clickables: {
11: {
display() { return "Hold to gain SPP" },
canClick() { return true },
onClick() { if (canReset(this.layer)) doReset(this.layer) },
onHold() { if (canReset(this.layer)) doReset(this.layer) }
}
},
tabFormat: {
"super levels": {
content: [
"main-display",
["row", ["prestige-button", ["clickable", 11]]],
"resource-display",
["raw-html", () =>
"You have " + getTotalSuperLevel() + " super level" + (getTotalSuperLevel().eq(1) ? "" : "s") + "."
],
"blank",
"blank",
["bar", "eta"],
["bar", "theta"],
["bar", "iota"],
]
},
},
layerShown(){ return player.points.gte(10000) || player[this.layer].unlocked },
branches: ['p'],
})