1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-12 04:51:06 +00:00

Added the Grid

This commit is contained in:
Harley White 2021-05-11 02:27:50 -04:00
parent 583a9898e3
commit aee004b7fd
7 changed files with 140 additions and 3 deletions

View file

@ -156,6 +156,15 @@ function setupLayer(layer){
}
}
if (layers[layer].grid) {
layers[layer].grid.layer = layer
if (layers[layer].grid.getUnlocked === undefined)
layers[layer].grid.getUnlocked = true
if (layers[layer].grid.getCanClick === undefined)
layers[layer].grid.getCanClick = true
}
if (layers[layer].startData) {
data = layers[layer].startData()
if (data.best !== undefined && data.showBest === undefined) layers[layer].showBest = true

View file

@ -11,6 +11,7 @@ var activeFunctions = [
"effectDescription", "display", "fullDisplay", "effectDisplay", "rewardDisplay",
"tabFormat", "content",
"onComplete", "onPurchase", "onEnter", "onExit",
"getUnlocked", "getStyle", "getCanClick",
]
var noCall = doNotCallTheseFunctionsEveryTick