diff --git a/src/facilities/Facility.js b/src/facilities/Facility.js index b36d79752eedd374cbcc8b8f90cc6f65aed33944..935d6f0fe957342362b03a94a3702d903b9ae564 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();