1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-24 09:21:46 +00:00

v1.1 Patch 1

This commit is contained in:
Aarex Tiaokhiao 2020-09-16 16:56:29 -04:00
parent 2ead3357ae
commit 6ba27eb80a

View file

@ -2938,7 +2938,7 @@ let SPACE_BUILDINGS = {
9: {
cost: new Decimal("e8000000"),
eff(x) {
return x.max(1).log10().div(2).add(1).cbrt()
return x.max(1).log10().div(3).max(1).cbrt()
},
effDesc(x) {
return "Reduce the cost scaling of Hyperspace by " + format(Decimal.sub(1, x.recip()).times(100)) + "%"
@ -3727,11 +3727,17 @@ let HYPERSPACE = {
cost(x) {
if (x === undefined) x = player.hs.space
if (tmp.s !== undefined && tmp.s.trueSbUnl >= 9) x = x.div(tmp.s.sbEff[9])
let reduction = this.costReduction()
return {
hs: Decimal.pow(2, x.sqr()).floor(),
ba: Decimal.pow(10, x.max(x.div(2).sqr()).times(20).add(150)).floor()
hs: Decimal.pow(2, x.sqr()).div(reduction).floor(),
ba: Decimal.pow(10, x.max(x.div(2).sqr()).times(20).add(150)).div(reduction).floor()
}
},
costReduction() {
let r = new Decimal(1)
if (player.ba.upgrades.includes(45)) r = LAYER_UPGS.ba[45].currently()
return r
},
canBuy() {
let cost = this.cost()
return player.hs.points.gte(cost.hs) && player.ba.points.gte(cost.ba)
@ -3801,7 +3807,7 @@ let HYPERSPACE = {
return sb.times(su).max(1).log10().add(1)
},
10(sb, su) {
return sb.add(1).pow(su.cbrt().div(3))
return sb.add(1).pow(su.cbrt().div(5))
}
}
}