mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-24 01:11:46 +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){
|
function autobuyUpgrades(layer){
|
||||||
if (!tmp[layer].upgrades) return
|
if (!tmp[layer].upgrades) return
|
||||||
for (id in tmp[layer].upgrades)
|
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)
|
buyUpg(layer, id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue