addLayer("i", { name: "integrals", // 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: 0, // 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: "#a62222", requires: Decimal.pow(2, 128), // Can be a function that takes requirement increases into account resource: "integrals", // 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: 1, // 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: 2, // Row the layer is in on the tree (0 is the first row) hotkeys: [ {key: "i", description: "I: reset for integrals", onPress(){if (canReset(this.layer)) doReset(this.layer)}}, ], layerShown(){ return player.points.gte("1e25") || player[this.layer].unlocked }, branches: ['sp', 'f'] })