Skip to content
Snippets Groups Projects
Commit 0836c61a authored by DCoded's avatar DCoded
Browse files

Fix

parent fa325cf6
No related branches found
No related tags found
No related merge requests found
...@@ -141,13 +141,13 @@ App.Facilities.Facility = class { ...@@ -141,13 +141,13 @@ App.Facilities.Facility = class {
_expand({desc, cost, removeManager, removeSlave}) { _expand({desc, cost, removeManager, removeSlave}) {
const div = document.createElement("div"); 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); div.append(desc);
App.UI.DOM.appendNewElement("div", div, App.UI.DOM.link(`Expand ${this.facility.name}`, () => { App.UI.DOM.appendNewElement("div", div, App.UI.DOM.link(`Expand ${this.facility.name}`, () => {
cashX(forceNeg(cost), "capEx"); 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; V.PC.skill.engineering += .1;
this.refresh(); this.refresh();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment