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

Added buyable purchase limit

This commit is contained in:
Harley White 2021-04-30 22:40:59 -04:00
parent 4af32d5c71
commit 87a32fbcce
6 changed files with 20 additions and 8 deletions
js/technical

View file

@ -118,7 +118,9 @@ function setupLayer(layer){
layers[layer].buyables[thing].layer = layer
if (layers[layer].buyables[thing].unlocked === undefined)
layers[layer].buyables[thing].unlocked = true
}
}
layers[layer].buyables[thing].canBuy = function() {return canBuyBuyable(this.layer, this.id)}
if (layers[layer].buyables[thing].purchaseLimit === undefined) layers[layer].buyables[thing].purchaseLimit = new Decimal(Infinity)
}
}