Преглед на файлове

Powerup upgrades now require power crystals

tags/v0.0.7
Fen Dweller преди 5 години
родител
ревизия
754b49d3cd
No known key found for this signature in database GPG Key ID: E80B35A6F11C3656
променени са 2 файла, в които са добавени 14 реда и са изтрити 4 реда
  1. +6
    -3
      constants.js
  2. +8
    -1
      gorge.js

+ 6
- 3
constants.js Целия файл

@@ -504,7 +504,6 @@ function createClickVictimUpgrades() {
});
}


function createPowerupFreqUpgrades() {
const prefix = "powerup-freq-";
let counter = 1;
@@ -514,7 +513,7 @@ function createPowerupFreqUpgrades() {
"desc": text.desc,
"icon": "fa-drumstick-bite",
"cost": {
"food": 1000 * Math.pow(10, counter)
"powerups": 5 * counter
},
"effects": [
{
@@ -526,7 +525,10 @@ function createPowerupFreqUpgrades() {
"prereqs": {
"upgrades": [

]
],
"resources": {
"powerups": 1
}
}
};
if (counter > 1) {
@@ -536,6 +538,7 @@ function createPowerupFreqUpgrades() {
});
}


let prodUpgradeText = {
"micro": [
{


+ 8
- 1
gorge.js Целия файл

@@ -721,6 +721,13 @@ function upgradeReachable(id) {
}
}
}
else if (type == "resources") {
for (const [resource, amount] of Object.entries(reqs)) {
if (resources[resource] < amount) {
return false;
}
};
}
}
}

@@ -1043,7 +1050,7 @@ function doPowerup() {
button.classList.add("powerup-clicked");

resources.powerups += 1;
clearTimeout(remove);

setTimeout(() => {


Loading…
Отказ
Запис