Skip to content
Snippets Groups Projects
Commit 674533cd authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'hotfixes' into 'pregmod-master'

Bump version

Closes #3233

See merge request !9727
parents 737464ea 942926a2
No related branches found
No related tags found
1 merge request!9727Bump version
Pipeline #40537 passed
......@@ -2,5 +2,5 @@ App.Version = {
base: "0.10.7.1", // The vanilla version the mod is based off of, this should never be changed.
pmod: "4.0.0-alpha.3",
commitHash: null,
release: 1131 // When getting close to 2000, please remove the check located within the onLoad() function defined at line five of src/js/eventHandlers.js.
release: 1132 // When getting close to 2000, please remove the check located within the onLoad() function defined at line five of src/js/eventHandlers.js.
};
......@@ -141,20 +141,20 @@ 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.desc.baseName] * 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.desc.baseName] += 5; // TODO: this will likely need to be changed in the future
V.PC.skill.engineering += .1;
this.refresh();
}, [], '', `Costs ${cashFormat(cost)} and increases the capacity of ${this.facility.name} by 5.`), ['indent']);
if (this.facility.hostedSlaves > 0) {
App.UI.DOM.appendNewElement("div", div, removeFacilityWorkers(this.facility.UIName.toLowerCase(), removeManager, removeSlave), ['indent']);
App.UI.DOM.appendNewElement("div", div, removeFacilityWorkers(this.facility.desc.baseName, removeManager, removeSlave), ['indent']);
}
return div;
......
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