1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-28 11:01:43 +00:00

Fix broken booster divider upgrade

Pre-Release 2 Patch 2
This commit is contained in:
Aarex Tiaokhiao 2020-09-14 18:32:29 -04:00
parent 489dd85e85
commit d458a7d225

View file

@ -523,7 +523,7 @@ const LAYER_UPGS = {
desc: "Boosters are cheaper based on your points.", desc: "Boosters are cheaper based on your points.",
cost: new Decimal(18), cost: new Decimal(18),
unl() { return player.b.upgrades.includes(21) || player.b.upgrades.includes(22) }, unl() { return player.b.upgrades.includes(21) || player.b.upgrades.includes(22) },
currently() { return player.points.add(1).log10().add(1).pow(3.2).pow((tmp.s !== undefined)?tmp.s.sbEff[4]:1) }, currently() { return player.points.add(1).log10().add(1).pow(3.2).pow(tmp.s !== undefined && tmp.s.trueSbUnl >= 4 ? tmp.s.sbEff[4] : 1) },
effDisp(x) { return "/"+format(x) }, effDisp(x) { return "/"+format(x) },
}, },
31: { 31: {
@ -2994,7 +2994,7 @@ function getSpaceBuildingEff(x) {
if (!player.s.unl) bought = new Decimal(0) if (!player.s.unl) bought = new Decimal(0)
else { else {
bought = tmp.s.sb[x].add(tmp.s.sbExtra) bought = tmp.s.sb[x].add(tmp.s.sbExtra)
if (x<5) bought = bought.add(fixValue(tmp.s.sbEff[5])) if (x < 5 && tmp.s.trueSbUnl >= 5) bought = bought.add(tmp.s.sbEff[5])
var compressLvl = new Decimal(1) var compressLvl = new Decimal(1)
if (tmp.i !== undefined && layerUnl("i") && tmp.i.compressed >= x) compressLvl = tmp.s.sbUnl.sub(x - SPACE_BUILDINGS.max - 1).ceil().cbrt() if (tmp.i !== undefined && layerUnl("i") && tmp.i.compressed >= x) compressLvl = tmp.s.sbUnl.sub(x - SPACE_BUILDINGS.max - 1).ceil().cbrt()