Sfoglia il codice sorgente

All resource types are incremented now, not just food

tags/v0.0.1
Fen Dweller 7 anni fa
parent
commit
936705bdf4
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: E80B35A6F11C3656
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. +3
    -1
      gorge.js

+ 3
- 1
gorge.js Vedi File

@@ -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…
Annulla
Salva