1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-25 09:51:54 +00:00
The-Modding-Tree/js/temp.js

64 lines
1.9 KiB
JavaScript
Raw Normal View History

2020-08-21 19:02:34 +00:00
function updateTemp() {
2020-09-01 00:39:33 +00:00
if (!tmp.hcActive) tmp.hcActive = {}
for (let row=1;row<=H_CHALLS.rows;row++) {
for (let col=1;col<=H_CHALLS.cols;col++) {
let id = row*10+col
tmp.hcActive[id] = HCActive(id)
}
}
2020-08-21 19:02:34 +00:00
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 = {}
2020-08-22 01:16:23 +00:00
if (!tmp.layerAmt) tmp.layerAmt = {}
2020-08-21 19:02:34 +00:00
for (let i in LAYERS) {
2020-08-22 01:16:23 +00:00
tmp.layerAmt[LAYERS[i]] = getLayerAmt(LAYERS[i])
2020-08-21 19:02:34 +00:00
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()
2020-08-31 18:33:29 +00:00
tmp.subbedEnh = new Decimal(0)
2020-09-01 02:11:22 +00:00
if (tmp.hcActive ? tmp.hcActive[52] : true) {
tmp.subbedEnh = tmp.subbedEnh.plus(new Decimal(player.h.time).times(40).plus(1).log10().pow(10).max(10)).round()
}
2020-08-21 19:02:34 +00:00
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()
2020-08-26 01:45:22 +00:00
tmp.quirkEff = getQuirkEnergyEff()
2020-09-05 17:11:53 +00:00
tmp.qCB = getQuirkLayerCostBase()
2020-08-26 19:08:00 +00:00
2020-08-29 23:43:53 +00:00
tmp.ssEff1 = getSubspaceEff1()
tmp.ssEff2 = getSubspaceEff2()
tmp.ssEff3 = getSubspaceEff3()
2020-09-03 21:59:23 +00:00
tmp.balEff = getBalancePowerEff()
tmp.balEff2 = getBalanceTypesEff()
2020-09-04 02:25:24 +00:00
tmp.baExp = getBalanceEnergyExp()
2020-09-03 21:59:23 +00:00
tmp.hexEff = getHexEff()
if (!tmp.spellEffs) tmp.spellEffs = {}
for (let i=1;i<=3;i++) tmp.spellEffs[i] = getSpellEff(i)
2020-09-04 17:45:22 +00:00
tmp.sGenPowEff = getSGenPowEff()
2020-08-21 19:02:34 +00:00
}