1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-04-24 02:01:03 +00:00
This commit is contained in:
Acamaeda 2020-11-30 15:03:26 -05:00
parent 2096c3db7f
commit a9d55645b5
10 changed files with 32 additions and 23 deletions

View file

@ -169,8 +169,9 @@ function getStartBuyables(layer){
function getStartClickables(layer){
let data = {}
if (layers[layer].clickables) {
if (isPlainObject(layers[layer].clickables[id]))
data[id] = ""
for (id in layers[layer].buyables)
if (isPlainObject(layers[layer].clickables[id]))
data[id] = ""
}
return data
}
@ -179,8 +180,8 @@ function getStartChallenges(layer){
let data = {}
if (layers[layer].challenges) {
for (id in layers[layer].challenges)
if (isPlainObject(layers[layer].challenges[id]))
data[id] = 0
if (isPlainObject(layers[layer].challenges[id]))
data[id] = 0
}
return data
}