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) {