1
0
Fork 0
mirror of https://github.com/thepaperpilot/The-Modding-Tree.git synced 2025-05-05 15:51:02 +00:00

Added Bars component

This commit is contained in:
Acamaeda 2020-10-12 18:28:12 -04:00
parent e9d0f17d41
commit 40bbf03668
8 changed files with 211 additions and 47 deletions

View file

@ -423,7 +423,7 @@ function canAffordPurchase(layer, thing, cost) {
function buyUpg(layer, id) {
if (!player[layer].unl) return
if (!layers[layer].upgrades[id].unl()) return
if (!layers[layer].upgrades[id].unl) return
if (player[layer].upgrades.includes(id)) return
let upg = layers[layer].upgrades[id]
let cost = tmp[layer].upgrades[id].cost