mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-28 02:51:55 +00:00
Fix Enhanced Buildings
This commit is contained in:
parent
d458a7d225
commit
af5b649f92
1 changed files with 1 additions and 1 deletions
|
@ -2997,7 +2997,7 @@ function getSpaceBuildingEff(x) {
|
|||
if (x < 5 && tmp.s.trueSbUnl >= 5) bought = bought.add(tmp.s.sbEff[5])
|
||||
|
||||
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).div(SPACE_BUILDINGS.max).ceil().cbrt()
|
||||
|
||||
bought = bought.times(tmp.s.sbPow).times(compressLvl)
|
||||
if (tmp.hs !== undefined && layerUnl("hs")) {
|
||||
|
|
Loading…
Reference in a new issue