generated from incremental-social/The-Modding-Tree
1.6
This commit is contained in:
parent
26d143cf83
commit
343a67100e
5 changed files with 31 additions and 14 deletions
js/data
|
@ -31,18 +31,20 @@ addLayer("f", {
|
|||
getResetGain(canMax = tmp[this.layer].canBuyMax) {
|
||||
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)
|
||||
let amount = tlyr.baseAmount.div(tlyr.requires).log(tlyr.base)
|
||||
if (amount.gte(0)) amount = amount.root(tlyr.exponent).add(1)
|
||||
.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
|
||||
return amount.max(0)
|
||||
},
|
||||
getNextAt(canMax = tmp[this.layer].canBuyMax) {
|
||||
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.pow(2).add(plyr.points).mul(2).add(plyr.total).div(3).pow(tlyr.exponent)
|
||||
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.plus(1).pow(2).add(plyr.points.mul(2).add(plyr.total).div(3))
|
||||
.minus(1).pow(tlyr.exponent).pow_base(tlyr.base).mul(tlyr.requires)
|
||||
},
|
||||
canReset() {
|
||||
return tmp[this.layer].getResetGain.gte(1)
|
||||
|
@ -80,12 +82,12 @@ addLayer("f", {
|
|||
},
|
||||
done() { return player.f.total.gte(2) }
|
||||
},
|
||||
3: {
|
||||
2: {
|
||||
requirementDescription: "3 total Files.",
|
||||
effectDescription: "Halve PP req.",
|
||||
done() { return player.f.total.gte(3) }
|
||||
},
|
||||
2: {
|
||||
3: {
|
||||
requirementDescription: "4 total Files.",
|
||||
effectDescription: "SPP no longer resets PP.",
|
||||
done() { return player.f.total.gte(4) }
|
||||
|
@ -284,7 +286,7 @@ addLayer("f", {
|
|||
}
|
||||
}
|
||||
},
|
||||
layerShown(){ return player.sp.points.gte(400) || player[this.layer].unlocked },
|
||||
layerShown(){ return player.sp.points.gte(200) || player[this.layer].unlocked },
|
||||
branches: ['p'],
|
||||
tabFormat: {
|
||||
filestones: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue