developed

This commit is contained in:
Nif 2024-03-24 19:50:21 +00:00
parent 7e082cc0e6
commit b3bf4b0ab9
7 changed files with 157 additions and 54 deletions
js/data

View file

@ -18,7 +18,11 @@ addLayer("f", {
baseResource: "super progress points", // Name of resource prestige is based on
baseAmount() {return player.sp.points}, // Get the current amount of baseResource
type: "custom", // 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() {
let exp = 1.3
if (hasUpgrade(this.layer, 52)) exp **= 0.9
return exp
}, // Prestige currency exponent
base() {
let base = 1.3
if (hasUpgrade(this.layer, 41)) base **= 0.95
@ -28,7 +32,7 @@ addLayer("f", {
let tlyr = tmp[this.layer]
let plyr = player[this.layer]
let amount = tlyr.baseAmount.div(tlyr.requires).log(tlyr.base).pow(Decimal.div(1, tlyr.exponent)).add(1)
.sub(plyr.points.mul(2).add(plyr.total).div(3)).floor().max(0)
.sub(plyr.points.mul(2).add(plyr.total).div(3)).sqrt().floor().max(0)
if (isNaN(amount)) return new Decimal(0)
if (!canMax && amount.gte(1)) return new Decimal(1)
return amount
@ -37,8 +41,8 @@ addLayer("f", {
let tlyr = tmp[this.layer]
let plyr = player[this.layer]
if (!canMax) return plyr.points.mul(2).add(plyr.total).div(3).pow(tlyr.exponent).pow_base(tlyr.base).mul(tlyr.requires)
return tlyr.getResetGain.add(1).add(plyr.points).mul(2).add(plyr.total).div(3).pow(tlyr.exponent).pow_base(tlyr.base)
.mul(tlyr.requires)
return tlyr.getResetGain.pow(2).add(plyr.points).mul(2).add(plyr.total).div(3).pow(tlyr.exponent)
.pow_base(tlyr.base).mul(tlyr.requires)
},
canReset() {
return tmp[this.layer].getResetGain.gte(1)
@ -65,26 +69,25 @@ addLayer("f", {
milestones: {
0: {
requirementDescription: "1 total File.",
effectDescription() {
return "Total levels and super levels boost point gen.<br>Effect: x"
+ format(getTotalLevel().add(getTotalSuperLevel()).add(7).log(3)) + "."
},
effectDescription: "Triple PP and SPP gen.",
done() { return player.f.total.gte(1) }
},
1: {
requirementDescription: "2 total Files.",
effectDescription: "Triple PP and SPP gen.",
effectDescription() {
return "Total levels and super levels boost point gen.<br>Effect: x"
+ format(getTotalLevel().add(getTotalSuperLevel()).add(7).log(2)) + "."
},
done() { return player.f.total.gte(2) }
},
2: {
requirementDescription: "3 total Files.",
effectDescription: "SPP no longer resets PP.",
done() { return player.f.total.gte(3) },
toggles: [["sp", "resetsPP"]]
},
3: {
requirementDescription: "4 total Files.",
requirementDescription: "3 total Files.",
effectDescription: "Halve PP req.",
done() { return player.f.total.gte(3) }
},
2: {
requirementDescription: "4 total Files.",
effectDescription: "SPP no longer resets PP.",
done() { return player.f.total.gte(4) }
},
4: {
@ -121,16 +124,16 @@ addLayer("f", {
},
10: {
requirementDescription: "25 total Files.",
effectDescription() {
return "Total super levels boost second softcap.<br>Effect: ^"
+ format(getTotalSuperLevel().pow(1/10).add(1).log(10).add(1).log(10).add(1)) + "."
},
effectDescription: "Autobuy both SPP buyables.",
done() { return player.f.total.gte(25) }
},
11: {
requirementDescription: "35 total Files.",
effectDescription: "Autobuy both SPP buyables.",
done() { return player.f.total.gte(35) }
requirementDescription: "50 total Files.",
effectDescription() {
return "Total super levels boost second softcap.<br>Effect: ^"
+ format(getTotalSuperLevel().pow(1/10).add(1).log(10).add(1)) + "."
},
done() { return player.f.total.gte(50) }
},
},
upgrades: {
@ -190,10 +193,10 @@ addLayer("f", {
branches: [32]
},
43: {
description: "Files divide PP cost.",
description: "Total Files divide PP cost.",
cost: 9,
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].total.add(3).log(2).add(1) },
effectDisplay() { return "/" + format(this.effect()) + "." },
branches: [32, 33]
},
@ -202,6 +205,64 @@ addLayer("f", {
cost: 8,
canAfford() { return hasUpgrade(this.layer, 23) && hasUpgrade(this.layer, 33) },
branches: [[23, 2], 33]
},
51: {
description: "Multiply all rank effects by 2.",
cost: 15,
canAfford() { return hasUpgrade(this.layer, 41) && hasUpgrade(this.layer, 43) },
branches: [41, [43, 2]]
},
52: {
description: "Raise File cost exponent ^0.8.",
cost: 13,
canAfford() { return hasUpgrade(this.layer, 42) },
branches: [42]
},
53: {
description: "Total files boost point gen.",
cost: 14,
canAfford() { return hasUpgrade(this.layer, 43) },
effect() { return player[this.layer].points.log(10).add(1) },
effectDisplay() { return "^" + format(this.effect()) + "." },
branches: [43]
},
54: {
description: "Halve base SPP cost.",
cost: 13,
canAfford() { return hasUpgrade(this.layer, 43) },
branches: [43]
},
61: {
description: "Decrease the second softcap's log base.",
cost: 20,
canAfford() { return hasUpgrade(this.layer, 51) && hasUpgrade(this.layer, 52) },
branches: [51, 52]
},
62: {
description: "Gain 20% of your SPP gain per second.",
cost: 20,
canAfford() { return hasUpgrade(this.layer, 53) && hasUpgrade(this.layer, 44) },
branches: [53, [44, 2]]
}
},
buyables: {
11: {
title: "The finale of the intro",
effect() { return Decimal.pow(1.5, getBuyableAmount(this.layer, this.id)) },
cost() { return Decimal.mul(getBuyableAmount(this.layer, this.id), 10) },
display() {
return "Increase point gen.<br><br>Amount: " + format(getBuyableAmount(this.layer, this.id))
+ ".<br>Effect: x" + format(this.effect(getBuyableAmount(this.layer, this.id))) + ".<br>Cost: "
+ format(this.cost(getBuyableAmount(this.layer, this.id))) + " Files."
},
canAfford() {
return Decimal.gte(player[this.layer].points, this.cost())
&& hasUpgrade(this.layer, 61) && hasUpgrade(this.layer, 62)
},
buy() {
addBuyables(this.layer, this.id, 1)
player[this.layer].points = player[this.layer].points.sub(this.cost())
}
}
},
clickables: {
@ -212,6 +273,7 @@ addLayer("f", {
if (player[this.layer].upgrades == 0) player.ach.has55 = true
player[this.layer].points = player[this.layer].total
player[this.layer].upgrades = []
player[this.layer].buyables[11] = new Decimal(0)
doReset('f', true)
}
},
@ -251,8 +313,11 @@ addLayer("f", {
[11],
[21, 22, 23],
[31, 32, 33],
[41, 42, 43, 44]
]]
[41, 42, 43, 44],
[51, 52, 53, 54],
[61, 62]
]],
"buyables"
],
unlocked() { return hasMilestone('f', 4) }
},