mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-21 16:13:55 +00:00
Removed NaN checks from temp
This commit is contained in:
parent
0dca9b5b3e
commit
cbcbd1d0e5
1 changed files with 0 additions and 25 deletions
|
@ -92,34 +92,17 @@ function updateTemp() {
|
||||||
updateTempData(layers, tmp, funcs)
|
updateTempData(layers, tmp, funcs)
|
||||||
|
|
||||||
for (layer in layers){
|
for (layer in layers){
|
||||||
let problem = ""
|
|
||||||
tmp[layer].resetGain = getResetGain(layer)
|
tmp[layer].resetGain = getResetGain(layer)
|
||||||
if (checkDecimalNaN(tmp[layer].resetGain))
|
|
||||||
problem = "resetGain"
|
|
||||||
tmp[layer].nextAt = getNextAt(layer)
|
tmp[layer].nextAt = getNextAt(layer)
|
||||||
if (checkDecimalNaN(tmp[layer].nextAt))
|
|
||||||
problem = "nextAt"
|
|
||||||
tmp[layer].nextAtDisp = getNextAt(layer, true)
|
tmp[layer].nextAtDisp = getNextAt(layer, true)
|
||||||
tmp[layer].canReset = canReset(layer)
|
tmp[layer].canReset = canReset(layer)
|
||||||
tmp[layer].trueGlowColor = tmp[layer].glowColor
|
tmp[layer].trueGlowColor = tmp[layer].glowColor
|
||||||
tmp[layer].notify = shouldNotify(layer)
|
tmp[layer].notify = shouldNotify(layer)
|
||||||
tmp[layer].prestigeNotify = prestigeNotify(layer)
|
tmp[layer].prestigeNotify = prestigeNotify(layer)
|
||||||
if (problem && !NaNalert) {
|
|
||||||
confirm("Invalid value found in temp." + layer + "." + problem + ". Please let the creator of this mod know! You can refresh the page, and you will be un-NaNed.")
|
|
||||||
clearInterval(interval);
|
|
||||||
NaNalert = true;
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tmp.pointGen = getPointGen()
|
tmp.pointGen = getPointGen()
|
||||||
if (checkDecimalNaN(tmp.pointGen) && !NaNalert) {
|
|
||||||
confirm("Invalid value found in temp.pointGen. Please let the creator of this mod know! You can refresh the page, and you will be un-NaNed.")
|
|
||||||
clearInterval(interval);
|
|
||||||
NaNalert = true;
|
|
||||||
return
|
|
||||||
}
|
|
||||||
tmp.displayThings = []
|
tmp.displayThings = []
|
||||||
for (thing in displayThings){
|
for (thing in displayThings){
|
||||||
let text = displayThings[thing]
|
let text = displayThings[thing]
|
||||||
|
@ -142,14 +125,6 @@ function updateTempData(layerData, tmpData, funcsData, useThis) {
|
||||||
|
|
||||||
if (useThis !== undefined) value = layerData[item].bind(useThis)()
|
if (useThis !== undefined) value = layerData[item].bind(useThis)()
|
||||||
else value = layerData[item]()
|
else value = layerData[item]()
|
||||||
if (value !== value || checkDecimalNaN(value)){
|
|
||||||
if (!NaNalert) {
|
|
||||||
confirm("Invalid value found in tmp, named '" + item + "'. Please let the creator of this mod know! You can refresh the page, and you will be un-NaNed.")
|
|
||||||
clearInterval(interval);
|
|
||||||
NaNalert = true;
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Vue.set(tmpData, item, value)
|
Vue.set(tmpData, item, value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue