1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-24 09:21:46 +00:00

Now will still use row and col if supplied

This commit is contained in:
Harley White 2021-04-29 18:52:50 -04:00
parent c827272d56
commit dff5071a7e
2 changed files with 1 additions and 1 deletions

View file

@ -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

View file

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