mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-23 17:01:47 +00:00
Update game.js
This commit is contained in:
parent
f231eb097b
commit
e8ebd07e3a
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ VERSION.withName = VERSION.withoutName + (VERSION.name ? ": " + VERSION.name : "
|
|||
function autobuyUpgrades(layer){
|
||||
if (!tmp[layer].upgrades) return
|
||||
for (id in tmp[layer].upgrades)
|
||||
if (isPlainObject(tmp[layers].upgrades[id]) && (layers[layer].upgrades[id].canAfford === undefined || layers[layer].upgrades[id].canAfford() === true))
|
||||
if (isPlainObject(tmp[layer].upgrades[id]) && (layers[layer].upgrades[id].canAfford === undefined || layers[layer].upgrades[id].canAfford() === true))
|
||||
buyUpg(layer, id)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue