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:
parent
e9d0f17d41
commit
40bbf03668
8 changed files with 211 additions and 47 deletions
js
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue