Explorar el Código

Reuse the calculated contributions of each building when displaying stats

tags/v0.0.6
Fen Dweller hace 5 años
padre
commit
fbf107ed35
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 2 adiciones y 2 borrados
  1. +2
    -2
      gorge.js

+ 2
- 2
gorge.js Ver fichero

@@ -1055,10 +1055,10 @@ function prodSummary(id) {
);

list.push(
{ "text": "Your " + render(belongings[id].count) + " " + (belongings[id].count == 1 ? buildings[id].name + " is" : buildings[id].plural + " are") + " producing " + round(productivityOf(id).food, 1) + " food/sec" }
{ "text": "Your " + render(belongings[id].count) + " " + (belongings[id].count == 1 ? buildings[id].name + " is" : buildings[id].plural + " are") + " producing " + round(contributions[id].food, 1) + " food/sec" }
);

let percentage = round(100 * productivityOf(id).food / currentProductivity["food"], 2);
let percentage = round(100 * contributions[id].food / currentProductivity["food"], 2);

if (isNaN(percentage)) {
percentage = 0;


Cargando…
Cancelar
Guardar