From 1c2e4f31287e6d5716baea18b8cc56b92820afe5 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 20 Jul 2018 13:00:07 -0500 Subject: [PATCH] Added productivity display --- gorge.html | 1 + gorge.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/gorge.html b/gorge.html index acec4ac..663556b 100644 --- a/gorge.html +++ b/gorge.html @@ -20,6 +20,7 @@
Resources
Food: 0
+
diff --git a/gorge.js b/gorge.js index 00f3254..d32a1b2 100644 --- a/gorge.js +++ b/gorge.js @@ -60,6 +60,8 @@ function addResources() { function displayResources() { document.getElementById("resource-food").innerText = "Food: " + render(resources.food); + + document.getElementById("productivity").innerText = (Math.round(calculateProductivity() * 10) / 10) + " food/sec"; } function displayBuildings() {