Explorar el Código

All resource types are incremented now, not just food

tags/v0.0.1
Fen Dweller hace 7 años
padre
commit
936705bdf4
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: E80B35A6F11C3656
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      gorge.js

+ 3
- 1
gorge.js Ver fichero

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


Cargando…
Cancelar
Guardar