소스 검색

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


불러오는 중...
취소
저장