Преглед на файлове

Reuse the calculated contributions of each building when displaying stats

tags/v0.0.6
Fen Dweller преди 5 години
родител
ревизия
fbf107ed35
No known key found for this signature in database GPG Key ID: E80B35A6F11C3656
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      gorge.js

+ 2
- 2
gorge.js Целия файл

@@ -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;


Loading…
Отказ
Запис