1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-04-21 08:51:00 +00:00

Fix to auto upgrade issues

This commit is contained in:
Acamaeda 2020-11-30 22:36:54 -05:00
parent 0168e11f7f
commit f231eb097b
3 changed files with 9 additions and 8 deletions

View file

@ -544,6 +544,7 @@ function buyUpgrade(layer, id) {
}
function buyUpg(layer, id) {
if (!tmp[layer].upgrades || !tmp[layer].upgrades[id]) return
let upg = tmp[layer].upgrades[id]
if (!player[layer].unlocked) return
if (!tmp[layer].upgrades[id].unlocked) return