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:
parent
d096c3c9b2
commit
38391cac2a
3 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
||||||
# The Modding Tree changelog:
|
# The Modding Tree changelog:
|
||||||
|
|
||||||
|
### v2.1.3.1 - 10/21/20
|
||||||
|
- Fixed the update function.
|
||||||
|
|
||||||
### v2.1.3 - 10/21/20
|
### v2.1.3 - 10/21/20
|
||||||
- gainMult and gainExp are now optional.
|
- gainMult and gainExp are now optional.
|
||||||
- Layer unlocking is now kept on reset.
|
- Layer unlocking is now kept on reset.
|
||||||
|
|
|
@ -11,7 +11,7 @@ let modInfo = {
|
||||||
|
|
||||||
// Set your version in num and name
|
// Set your version in num and name
|
||||||
let VERSION = {
|
let VERSION = {
|
||||||
num: "2.1",
|
num: "2.1.3.1",
|
||||||
name: " We should have thought of this sooner!",
|
name: " We should have thought of this sooner!",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ var gameEnded = false;
|
||||||
|
|
||||||
// Don't change this
|
// Don't change this
|
||||||
const TMT_VERSION = {
|
const TMT_VERSION = {
|
||||||
tmtNum: "2.1.1",
|
tmtNum: "2.1.3.1",
|
||||||
tmtName: "We should have thought of this sooner!"
|
tmtName: "We should have thought of this sooner!"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -289,14 +289,14 @@ function gameLoop(diff) {
|
||||||
for (x = 0; x <= maxRow; x++){
|
for (x = 0; x <= maxRow; x++){
|
||||||
for (item in TREE_LAYERS[x]) {
|
for (item in TREE_LAYERS[x]) {
|
||||||
let layer = TREE_LAYERS[x][item].layer
|
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 (row in OTHER_LAYERS){
|
||||||
for (item in OTHER_LAYERS[row]) {
|
for (item in OTHER_LAYERS[row]) {
|
||||||
let layer = OTHER_LAYERS[row][item].layer
|
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