Final adjustments: Make F reset and require SP, add a branch between P and I, and add a todo to I

This commit is contained in:
Nif 2024-03-17 19:20:18 +00:00
parent b059943431
commit 56a3b148dd
4 changed files with 21 additions and 10 deletions

View file

@ -129,8 +129,8 @@ addLayer("ach", {
}, },
53: { 53: {
name: "A new prestige layer!", name: "A new prestige layer!",
done() { return player.p.points.gte(5000) }, done() { return player.sp.points.gte(5000) },
tooltip: "Reach 5000 PP." tooltip: "Reach 5000 SPP."
}, },
54: { 54: {
name: "Ok so that speeds things up", name: "Ok so that speeds things up",

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: 2, // 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),
@ -15,8 +15,8 @@ addLayer("f", {
return req return req
}, // Can be a function that takes requirement increases into account }, // Can be a function that takes requirement increases into account
resource: "files", // Name of prestige currency resource: "files", // Name of prestige currency
baseResource: "progress points", // Name of resource prestige is based on baseResource: "super progress points", // Name of resource prestige is based on
baseAmount() {return player.p.points}, // Get the current amount of baseResource baseAmount() {return player.sp.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.3, // Prestige currency exponent exponent: 1.3, // Prestige currency exponent
base() { base() {
@ -33,7 +33,8 @@ addLayer("f", {
canBuyMax() { canBuyMax() {
return hasMilestone(this.layer, 6) return hasMilestone(this.layer, 6)
}, },
row: 1, // Row the layer is in on the tree (0 is the first row) row: 2, // Row the layer is in on the tree (0 is the first row)
displayRow: 0,
hotkeys: [ hotkeys: [
{key: "f", description: "F: Reset for files", onPress(){if (canReset(this.layer)) doReset(this.layer)}}, {key: "f", description: "F: Reset for files", onPress(){if (canReset(this.layer)) doReset(this.layer)}},
], ],
@ -192,7 +193,7 @@ addLayer("f", {
filestones: { filestones: {
content: [ content: [
"main-display", "main-display",
["row", ["prestige-button", ["clickable", 11]]], "prestige-button",
"resource-display", "resource-display",
"blank", "blank",
"blank", "blank",

View file

@ -19,10 +19,19 @@ addLayer("i", {
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)
}, },
row: 2, // Row the layer is in on the tree (0 is the first row) row: 3, // Row the layer is in on the tree (0 is the first row)
displayRow: 1,
hotkeys: [ hotkeys: [
{key: "i", description: "I: reset for integrals", onPress(){if (canReset(this.layer)) doReset(this.layer)}}, {key: "i", description: "I: reset for integrals", onPress(){if (canReset(this.layer)) doReset(this.layer)}},
], ],
tabFormat: [
"main-display",
"prestige-button",
"resource-display",
"blank",
"blank",
["raw-html", "Coming Soon!"]
],
layerShown(){ return player.points.gte("1e25") || player[this.layer].unlocked }, layerShown(){ return player.points.gte("1e25") || player[this.layer].unlocked },
branches: ['sp', 'f'] branches: ['p', 'sp', 'f']
}) })

View file

@ -1,7 +1,7 @@
addLayer("sp", { addLayer("sp", {
name: "super progress", // This is optional, only used in a few places, If absent it just uses the layer id. name: "super 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 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 position: 1, // 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)
@ -20,6 +20,7 @@ addLayer("sp", {
return new Decimal(1) return new Decimal(1)
}, },
row: 1, // Row the layer is in on the tree (0 is the first row) row: 1, // Row the layer is in on the tree (0 is the first row)
displayRow: 0,
hotkeys: [ hotkeys: [
{key: "s", description: "S: Reset for super progress points", onPress(){if (canReset(this.layer)) doReset(this.layer)}}, {key: "s", description: "S: Reset for super progress points", onPress(){if (canReset(this.layer)) doReset(this.layer)}},
], ],