Always view directory and another new theme

This commit is contained in:
Nif 2024-03-16 07:52:47 +00:00
parent 5ad2cf2ec7
commit b059943431
2 changed files with 21 additions and 11 deletions

View file

@ -99,60 +99,60 @@ addLayer("f", {
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) }, canAfford() { 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.",
cost: 3, cost: 3,
unlocked() { return hasUpgrade(this.layer, 11) }, canAfford() { return hasUpgrade(this.layer, 11) },
branches: [11] branches: [11]
}, },
22: { 22: {
description: "Start with 2 free <b>Shorter bars</b> levels.", description: "Start with 2 free <b>Shorter bars</b> levels.",
cost: 3, cost: 3,
unlocked() { return hasUpgrade(this.layer, 11) }, canAfford() { return hasUpgrade(this.layer, 11) },
branches: [11] branches: [11]
}, },
23: { 23: {
description: "Gain 10% of your PP gain every second.", description: "Gain 10% of your PP gain every second.",
cost: 4, cost: 4,
unlocked() { return hasUpgrade(this.layer, 11) }, canAfford() { return hasUpgrade(this.layer, 11) },
branches: [11] branches: [11]
}, },
31: { 31: {
description: "Make Gamma effect use total level as well.", description: "Make Gamma effect use total level as well.",
cost: 5, cost: 5,
unlocked() { return hasUpgrade(this.layer, 21) }, canAfford() { return hasUpgrade(this.layer, 21) },
branches: [21] branches: [21]
}, },
32: { 32: {
description: "Multiply base File cost by 0.75.", description: "Multiply base File cost by 0.75.",
cost: 6, cost: 6,
unlocked() { return hasUpgrade(this.layer, 21) && hasUpgrade(this.layer, 22) }, canAfford() { return hasUpgrade(this.layer, 21) && hasUpgrade(this.layer, 22) },
branches: [21, 22] branches: [21, 22]
}, },
33: { 33: {
description: "Multiply base PP cost by 0.75.", description: "Multiply base PP cost by 0.75.",
cost: 5, cost: 5,
unlocked() { return hasUpgrade(this.layer, 22) }, canAfford() { return hasUpgrade(this.layer, 22) },
branches: [22] branches: [22]
}, },
41: { 41: {
description: "Raise Beta, Delta, Zeta effects ^1.1.", description: "Raise Beta, Delta, Zeta effects ^1.1.",
cost: 8, cost: 8,
unlocked() { return hasUpgrade(this.layer, 31) }, canAfford() { return hasUpgrade(this.layer, 31) },
branches: [31] branches: [31]
}, },
42: { 42: {
description: "Raise File cost base ^0.95.", description: "Raise File cost base ^0.95.",
cost: 8, cost: 8,
unlocked() { return hasUpgrade(this.layer, 32) }, canAfford() { return hasUpgrade(this.layer, 32) },
branches: [32] branches: [32]
}, },
43: { 43: {
description: "Files divide PP cost.", description: "Files divide PP cost.",
cost: 9, cost: 9,
unlocked() { return hasUpgrade(this.layer, 32) && hasUpgrade(this.layer, 33) }, canAfford() { return hasUpgrade(this.layer, 32) && hasUpgrade(this.layer, 33) },
effect() { return player[this.layer].points.add(3).log(2).add(1) }, effect() { return player[this.layer].points.add(3).log(2).add(1) },
effectDisplay() { return "/" + this.effect() + "." }, effectDisplay() { return "/" + this.effect() + "." },
branches: [32, 33] branches: [32, 33]
@ -160,7 +160,7 @@ addLayer("f", {
44: { 44: {
description: "Gain another 15% of your PP gain every second.", description: "Gain another 15% of your PP gain every second.",
cost: 8, cost: 8,
unlocked() { return hasUpgrade(this.layer, 23) && hasUpgrade(this.layer, 33) }, canAfford() { return hasUpgrade(this.layer, 23) && hasUpgrade(this.layer, 33) },
branches: [[23, 2], 33] branches: [[23, 2], 33]
} }
}, },

View file

@ -40,6 +40,16 @@ var colors = {
background: "#251010", background: "#251010",
background_tooltip: "rgba(26, 13, 13, 0.75)", background_tooltip: "rgba(26, 13, 13, 0.75)",
}, },
amber: {
1: "#eff1ac",
2: "#b6b95a",
3: "#7e812a",
color: "#eff1ac",
points: "#feffe4",
locked: "#c4a7b3",
background: "#161603",
background_tooltip: "rgba(5, 6, 0, 0.75)",
},
} }
function changeTheme() { function changeTheme() {