|
|
|
@@ -291,7 +291,10 @@ function updateProductivity() { |
|
|
|
|
|
|
|
function addResources(delta) { |
|
|
|
for (const [resource, amount] of Object.entries(currentProductivity)) { |
|
|
|
resources[resource] += amount * delta / 1000; |
|
|
|
const gained = amount * delta / 1000; |
|
|
|
resources[resource] += gained; |
|
|
|
if (resource == "food") |
|
|
|
stats.food += gained; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@@ -496,6 +499,7 @@ function buyUpgrade(id, e) { |
|
|
|
function eatPrey() { |
|
|
|
const add = clickPowers.clickMultiplier * (buildings[clickPowers.clickVictim]["prod"].food * 10 + clickPowers.clickBonus); |
|
|
|
resources.food += add; |
|
|
|
stats.foodClicked += add; |
|
|
|
return add; |
|
|
|
} |
|
|
|
|
|
|
|
|