瀏覽代碼

Reuse the calculated contributions of each building when displaying stats

tags/v0.0.6
Fen Dweller 5 年之前
父節點
當前提交
fbf107ed35
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: E80B35A6F11C3656
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      gorge.js

+ 2
- 2
gorge.js 查看文件

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


list.push( 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)) { if (isNaN(percentage)) {
percentage = 0; percentage = 0;


Loading…
取消
儲存