1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-24 17:31:50 +00:00

Fixed update function

This commit is contained in:
Acamaeda 2020-10-21 17:43:05 -04:00
parent d096c3c9b2
commit 38391cac2a
3 changed files with 7 additions and 4 deletions

View file

@ -1,5 +1,8 @@
# The Modding Tree changelog:
### v2.1.3.1 - 10/21/20
- Fixed the update function.
### v2.1.3 - 10/21/20
- gainMult and gainExp are now optional.
- Layer unlocking is now kept on reset.

View file

@ -11,7 +11,7 @@ let modInfo = {
// Set your version in num and name
let VERSION = {
num: "2.1",
num: "2.1.3.1",
name: " We should have thought of this sooner!",
}

View file

@ -5,7 +5,7 @@ var gameEnded = false;
// Don't change this
const TMT_VERSION = {
tmtNum: "2.1.1",
tmtNum: "2.1.3.1",
tmtName: "We should have thought of this sooner!"
}
@ -289,14 +289,14 @@ function gameLoop(diff) {
for (x = 0; x <= maxRow; x++){
for (item in TREE_LAYERS[x]) {
let layer = TREE_LAYERS[x][item].layer
if (layers[layer].update) layers[layer].update();
if (layers[layer].update) layers[layer].update(diff);
}
}
for (row in OTHER_LAYERS){
for (item in OTHER_LAYERS[row]) {
let layer = OTHER_LAYERS[row][item].layer
if (layers[layer].update) layers[layer].update();
if (layers[layer].update) layers[layer].update(diff);
}
}