diff --git a/src/endWeek/economics/arcmgmt.js b/src/endWeek/economics/arcmgmt.js index 7029a303376d5a1d55b2da698a06bad997114ca7..cec242c0fe782572febb7da9c3416b4ded9f6538 100644 --- a/src/endWeek/economics/arcmgmt.js +++ b/src/endWeek/economics/arcmgmt.js @@ -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;