1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-21 16:13:55 +00:00

A better fix

This commit is contained in:
Acamaeda 2020-10-07 18:41:03 -04:00
parent c79d7b9b07
commit 4e1bcfd9d7
5 changed files with 10 additions and 5 deletions

View file

@ -1,6 +1,6 @@
#The Modding Tree changelog:
##v1.3.2: - 10/7/20
##v1.3.3: - 10/7/20
- Fix for the "order of operations" issue in temp.
##v1.3.1: - 10/7/20

View file

@ -49,7 +49,7 @@
</div>
<div v-if="player.tab=='changelog'" class="col right">
<button class="back" onclick="showTab('tree')"></button><br><br><br>
<h3>v1.3.2</h3>
<h3>v1.3.3</h3>
<ul>
<li>Fix for the "order of operations" issue in temp.</li>
</ul><br>

View file

@ -219,6 +219,7 @@ function doReset(layer, force=false) {
for (let x = row; x >= 0; x--) rowReset(x, layer)
prevOnReset = undefined
setupTemp();
updateTemp()
updateTemp()
}

View file

@ -1,6 +1,4 @@
function updateTemp() {
if (tmp.genPoints == undefined) tmp.genPoints = false
function setupTemp(){
if (!tmp.challActive) {tmp.challActive = {}}
if (!tmp.challs) tmp.challs = {}
for (layer in layers) {
@ -29,6 +27,11 @@ function updateTemp() {
setupBuyableTemp(layer)
}
}
}
function updateTemp() {
if (tmp.genPoints == undefined) tmp.genPoints = false
if (!tmp.layerReqs) tmp.layerReqs = {}
for (layer in layers) tmp.layerReqs[layer] = layers[layer].requires()

View file

@ -170,6 +170,7 @@ function load() {
versionCheck();
changeTheme();
changeTreeQuality();
setupTemp();
updateTemp();
updateTemp();
loadVue();