浏览代码

All resource types are incremented now, not just food

tags/v0.0.1
Fen Dweller 7 年前
父节点
当前提交
936705bdf4
找不到此签名对应的密钥 GPG 密钥 ID: E80B35A6F11C3656
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      gorge.js

+ 3
- 1
gorge.js 查看文件

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


正在加载...
取消
保存