Browse Source

All resource types are incremented now, not just food

tags/v0.0.1
Fen Dweller 7 years ago
parent
commit
936705bdf4
No known key found for this signature in database GPG Key ID: E80B35A6F11C3656
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      gorge.js

+ 3
- 1
gorge.js View File

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


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


function displayResources() { function displayResources() {


Loading…
Cancel
Save