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)
|
||||
|
||||
for (layer in layers){
|
||||
let problem = ""
|
||||
tmp[layer].resetGain = getResetGain(layer)
|
||||
if (checkDecimalNaN(tmp[layer].resetGain))
|
||||
problem = "resetGain"
|
||||
tmp[layer].nextAt = getNextAt(layer)
|
||||
if (checkDecimalNaN(tmp[layer].nextAt))
|
||||
problem = "nextAt"
|
||||
tmp[layer].nextAtDisp = getNextAt(layer, true)
|
||||
tmp[layer].canReset = canReset(layer)
|
||||
tmp[layer].trueGlowColor = tmp[layer].glowColor
|
||||
tmp[layer].notify = shouldNotify(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()
|
||||
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 = []
|
||||
for (thing in displayThings){
|
||||
let text = displayThings[thing]
|
||||
|
@ -142,14 +125,6 @@ function updateTempData(layerData, tmpData, funcsData, useThis) {
|
|||
|
||||
if (useThis !== undefined) value = layerData[item].bind(useThis)()
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue