From 0836c61a1ce1ff54be9a615f2de1467cf2cd53c9 Mon Sep 17 00:00:00 2001
From: DCoded <dicoded@email.com>
Date: Fri, 18 Jun 2021 23:23:13 -0400
Subject: [PATCH] Fix

---
 src/facilities/Facility.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/facilities/Facility.js b/src/facilities/Facility.js
index b36d79752ee..935d6f0fe95 100644
--- a/src/facilities/Facility.js
+++ b/src/facilities/Facility.js
@@ -141,13 +141,13 @@ App.Facilities.Facility = class {
 	_expand({desc, cost, removeManager, removeSlave}) {
 		const div = document.createElement("div");
 
-		cost = cost || V[this.facility.name] * 1000 * V.upgradeMultiplierArcology;
+		cost = cost || V[this.facility.genericName.toLowerCase()] * 1000 * V.upgradeMultiplierArcology;
 
 		div.append(desc);
 
 		App.UI.DOM.appendNewElement("div", div, App.UI.DOM.link(`Expand ${this.facility.name}`, () => {
 			cashX(forceNeg(cost), "capEx");
-			V[this.facility.name] += 5;	// TODO: this will likely need to be changed in the future
+			V[this.facility.genericName.toLowerCase()] += 5;	// TODO: this will likely need to be changed in the future
 			V.PC.skill.engineering += .1;
 
 			this.refresh();
-- 
GitLab