diff --git a/src/endWeek/economics/arcmgmt.js b/src/endWeek/economics/arcmgmt.js index 0713a4fa670c5439b28fd2d845c3f06005a0c5d7..cec242c0fe782572febb7da9c3416b4ded9f6538 100644 --- a/src/endWeek/economics/arcmgmt.js +++ b/src/endWeek/economics/arcmgmt.js @@ -93,7 +93,7 @@ globalThis.arcmgmt = function() { V.ASlaves = V.NPCSlaves + V.menials + V.fuckdolls + V.menialBioreactors; if (V.secExpEnabled > 0) { - V.ASlaves += V.SecExp.buildings.secHub ? V.SecExp.buildings.secHub.menials : 0 + App.SecExp.Manpower.employedSlave; + V.ASlaves += (V.SecExp.buildings.secHub ? V.SecExp.buildings.secHub.menials : 0) + App.SecExp.Manpower.employedSlave; } V.ACitizens = V.lowerClass + V.middleClass + V.upperClass + V.topClass; _percACitizens = Math.trunc((V.ACitizens / (V.ACitizens + V.ASlaves)) * 1000) / 10; @@ -1424,24 +1424,23 @@ globalThis.arcmgmt = function() { if (V.secExpEnabled > 0 && V.SecExp.buildings.transportHub) { if (V.SecExp.buildings.transportHub.surfaceTransport < 4) { _weatherFreeze = 1; - $(el).append(App.UI.DOM.makeElement("div", `The terrible weather is <span class="red">preventing people from entering or leaving</span> your arcology. Improving your transport infrastructure will prevent this from happening.`, "note")); + $(el).append(); } } else if (V.antiWeatherFreeze < 2) { _weatherFreeze = 1; - $(el).append(App.UI.DOM.makeElement("div", `The terrible weather is <span class="red">preventing people from entering or leaving</span> your arcology. Improving your transport infrastructure will prevent this from happening.`, "note")); } } else if (V.weatherToday.severity > 2) { if (V.secExpEnabled > 0 && V.SecExp.buildings.transportHub) { if (V.SecExp.buildings.transportHub.surfaceTransport < 3) { _weatherFreeze = 1; - $(el).append(App.UI.DOM.makeElement("div", `The terrible weather is <span class="red">preventing people from entering or leaving</span> your arcology. Improving your transport infrastructure will prevent this from happening.`, "note")); } } else if (V.antiWeatherFreeze < 1) { _weatherFreeze = 1; - $(el).append(App.UI.DOM.makeElement("div", `The terrible weather is <span class="red">preventing people from entering or leaving</span> your arcology. Improving your transport infrastructure will prevent this from happening.`, "note")); } } if (_weatherFreeze) { + const warning = App.UI.DOM.combineNodes(`The terrible weather is `, App.UI.DOM.makeElement("span", `preventing people from entering or leaving`, "red"), ` your arcology. Improving your transport infrastructure will prevent this from happening.`); + App.UI.DOM.appendNewElement("div", el, warning, "note"); V.weatherAwareness = 1; } return _weatherFreeze;