Selaa lähdekoodia

All resource types are incremented now, not just food

tags/v0.0.1
Fen Dweller 7 vuotta sitten
vanhempi
commit
936705bdf4
No known key found for this signature in database GPG Key ID: E80B35A6F11C3656
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. +3
    -1
      gorge.js

+ 3
- 1
gorge.js Näytä tiedosto

@@ -94,7 +94,9 @@ function updateProductivity() {
}

function addResources(delta) {
resources.food += currentProductivity["food"] * delta / 1000;
for (const [resource, amount] of Object.entries(currentProductivity)) {
resources[resource] += amount * delta / 1000;
}
}

function displayResources() {


Loading…
Peruuta
Tallenna