Przeglądaj źródła

All resource types are incremented now, not just food

tags/v0.0.1
Fen Dweller 7 lat temu
rodzic
commit
936705bdf4
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: E80B35A6F11C3656
1 zmienionych plików z 3 dodań i 1 usunięć
  1. +3
    -1
      gorge.js

+ 3
- 1
gorge.js Wyświetl plik

@@ -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() {


Ładowanie…
Anuluj
Zapisz