this uses the wrong price
This commit is contained in:
parent
15f8c1123c
commit
cf63368549
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ for (let upgrade of upgrades) {
|
||||||
hud2.appendChild(button);
|
hud2.appendChild(button);
|
||||||
|
|
||||||
button.addEventListener('click', () => {
|
button.addEventListener('click', () => {
|
||||||
if (nothingness < upgrade.price) return;
|
if (nothingness < price) return;
|
||||||
counts[upgrade.exec]++;
|
counts[upgrade.exec]++;
|
||||||
|
|
||||||
cc = counts[upgrade.exec];
|
cc = counts[upgrade.exec];
|
||||||
|
|
Loading…
Reference in a new issue