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:
parent
0168e11f7f
commit
f231eb097b
3 changed files with 9 additions and 8 deletions
js
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue