mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-21 16:13:55 +00:00
Fixed update function
This commit is contained in:
parent
d096c3c9b2
commit
38391cac2a
3 changed files with 7 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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!",
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue