mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-22 08:31:33 +00:00
34 lines
1,006 B
JavaScript
34 lines
1,006 B
JavaScript
|
function updateTemp() {
|
||
|
if (!tmp.layerEffs) tmp.layerEffs = {}
|
||
|
for (let name in LAYER_EFFS) tmp.layerEffs[name] = LAYER_EFFS[name]()
|
||
|
|
||
|
if (!tmp.layerReqs) tmp.layerReqs = {}
|
||
|
for (let name in LAYER_REQS) tmp.layerReqs[name] = getLayerReq(name)
|
||
|
|
||
|
if (!tmp.gainMults) tmp.gainMults = {}
|
||
|
if (!tmp.resetGain) tmp.resetGain = {}
|
||
|
if (!tmp.nextAt) tmp.nextAt = {}
|
||
|
for (let i in LAYERS) {
|
||
|
tmp.gainMults[LAYERS[i]] = getLayerGainMult(LAYERS[i])
|
||
|
tmp.resetGain[LAYERS[i]] = getResetGain(LAYERS[i])
|
||
|
tmp.nextAt[LAYERS[i]] = getNextAt(LAYERS[i])
|
||
|
}
|
||
|
|
||
|
tmp.pointGen = getPointGen()
|
||
|
|
||
|
tmp.atbb = addToBoosterBase()
|
||
|
tmp.atgb = addToGenBase()
|
||
|
|
||
|
tmp.genPowEff = getGenPowerEff()
|
||
|
|
||
|
tmp.enhPow = getEnhancerPow()
|
||
|
tmp.enhEff = getEnhancerEff()
|
||
|
tmp.enhEff2 = getEnhancerEff2()
|
||
|
|
||
|
tmp.freeExtCap = getFreeExtCapsules()
|
||
|
tmp.timeEff = getTimeEnergyEff()
|
||
|
|
||
|
if (!tmp.spaceBuildEff) tmp.spaceBuildEff = {}
|
||
|
for (let i=1;i<=5;i++) tmp.spaceBuildEff[i] = getSpaceBuildingEff(i)
|
||
|
tmp.sbUnl = getSpaceBuildingsUnl()
|
||
|
}
|