From e54b1210b34c78f988224639939103fa20f14944 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 21 Jul 2018 16:46:55 -0500 Subject: [PATCH] Effects actually work now --- gorge.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gorge.js b/gorge.js index 39d3dd4..b99c094 100644 --- a/gorge.js +++ b/gorge.js @@ -27,8 +27,10 @@ function productivityOf(type) { if (!ownedUpgrades[key]) { continue; } + + if (value.effect.type == "prod-2x") { - if (value.effect.target == key) { + if (value.effect.target == type) { baseProd *= 2; } }