2024-03-09 13:28:55 +00:00
|
|
|
addLayer("f", {
|
|
|
|
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
|
|
|
|
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),
|
|
|
|
total: new Decimal(0)
|
|
|
|
}},
|
|
|
|
color: "#7f1bae",
|
2024-03-09 17:38:32 +00:00
|
|
|
requires: new Decimal(5000), // Can be a function that takes requirement increases into account
|
2024-03-09 13:28:55 +00:00
|
|
|
resource: "files", // Name of prestige currency
|
|
|
|
baseResource: "progress points", // Name of resource prestige is based on
|
|
|
|
baseAmount() {return player.p.points}, // Get the current amount of baseResource
|
2024-03-09 17:38:32 +00:00
|
|
|
type: "static", // normal: cost to gain currency depends on amount gained. static: cost depends on how much you already have
|
|
|
|
exponent: 0.7, // Prestige currency exponent
|
2024-03-09 13:28:55 +00:00
|
|
|
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)
|
|
|
|
displayRow: 0,
|
|
|
|
hotkeys: [
|
|
|
|
{key: "f", description: "F: Reset for files", onPress(){if (canReset(this.layer)) doReset(this.layer)}},
|
|
|
|
],
|
|
|
|
milestones: {
|
|
|
|
0: {
|
|
|
|
requirementDescription: "1 total File.",
|
|
|
|
effectDescription() {
|
|
|
|
return "Total levels boost point gen.<br>Effect: x" + getTotalLevel().add(1).log(5).add(1) + "."
|
|
|
|
},
|
|
|
|
done() { return player.f.total.gte(1) }
|
|
|
|
},
|
|
|
|
1: {
|
|
|
|
requirementDescription: "2 total Files.",
|
|
|
|
effectDescription: "Triple point gen.",
|
|
|
|
done() { return player.f.total.gte(2) }
|
|
|
|
},
|
|
|
|
2: {
|
|
|
|
requirementDescription: "3 total Files.",
|
|
|
|
effectDescription: "Multiply PP requirement by 0.9x.",
|
|
|
|
done() { return player.f.total.gte(3) }
|
|
|
|
},
|
|
|
|
3: {
|
|
|
|
requirementDescription: "4 total Files.",
|
|
|
|
effectDescription: "Square point gen. if over 1/s.",
|
|
|
|
done() { return player.f.total.gte(4) }
|
|
|
|
},
|
|
|
|
4: {
|
|
|
|
requirementDescription: "5 total Files.",
|
2024-03-09 15:11:14 +00:00
|
|
|
effectDescription() {
|
|
|
|
return "Total ranks boost point gen.<br>Effect: ^" + getTotalRank().div(2).add(1) + "."
|
|
|
|
},
|
2024-03-09 13:28:55 +00:00
|
|
|
done() { return player.f.total.gte(5) }
|
|
|
|
},
|
|
|
|
},
|
2024-03-09 17:38:32 +00:00
|
|
|
layerShown(){ return player.p.points.gte(4000) || player[this.layer].unlocked },
|
2024-03-09 13:28:55 +00:00
|
|
|
branches: ['p']
|
|
|
|
})
|