generated from incremental-social/The-Modding-Tree
61 lines
2.6 KiB
JavaScript
61 lines
2.6 KiB
JavaScript
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",
|
|
requires: new Decimal(20000), // Can be a function that takes requirement increases into account
|
|
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
|
|
type: "normal", // normal: cost to gain currency depends on amount gained. static: cost depends on how much you already have
|
|
exponent: 0.2, // 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)
|
|
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.",
|
|
effectDescription() {
|
|
return "Total ranks boost point gen.<br>Effect: ^" + getTotalRank().div(2).add(1) + "."
|
|
},
|
|
done() { return player.f.total.gte(5) }
|
|
},
|
|
},
|
|
layerShown(){ return player.p.points.gte(15000) || player[this.layer].unlocked },
|
|
branches: ['p']
|
|
})
|