From dff5071a7e764a23b5cf84c54f2318cf4d0f1fbe Mon Sep 17 00:00:00 2001 From: Harley White Date: Thu, 29 Apr 2021 18:52:50 -0400 Subject: [PATCH] Now will still use row and col if supplied --- js/Demo/demoLayers.js | 1 - js/technical/layerSupport.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/js/Demo/demoLayers.js b/js/Demo/demoLayers.js index e2091aa..9771015 100644 --- a/js/Demo/demoLayers.js +++ b/js/Demo/demoLayers.js @@ -148,7 +148,6 @@ addLayer("c", { }, }, buyables: { - showRespec: true, respec() { // Optional, reset things and give back your currency. Having this function makes a respec button appear player[this.layer].points = player[this.layer].points.add(player[this.layer].spentOnBuyables) // A built-in thing to keep track of this but only keeps a single value diff --git a/js/technical/layerSupport.js b/js/technical/layerSupport.js index 45003c2..3b0a936 100644 --- a/js/technical/layerSupport.js +++ b/js/technical/layerSupport.js @@ -231,6 +231,7 @@ function readData(data, args=null){ } function setRowCol(upgrades) { + if (upgrades.rows && upgrades.cols) return let maxRow = 0 let maxCol = 0 for (up in upgrades) {