diff --git a/src/endWeek/economics/arcmgmt.js b/src/endWeek/economics/arcmgmt.js index 6d3047994baef3423012f00ae376cb2b98964acf..28cc4ab25d6ad5346aef765432a48920a45ac2db 100644 --- a/src/endWeek/economics/arcmgmt.js +++ b/src/endWeek/economics/arcmgmt.js @@ -1847,7 +1847,7 @@ globalThis.arcmgmt = function() { } function expiration() { - const el = new DocumentFragment(); + const el = document.createElement("div"); const r = []; /* Citizen expiration */ let z = []; @@ -1873,7 +1873,7 @@ globalThis.arcmgmt = function() { z.push(`<span class="red">${_deathsTC} millionaire(s)`); } if (_deathsLC > 0|| _deathsMC > 0|| _deathsUC > 0 || _deathsTC > 0) { - ret += z.reduce(function(res, ch, i, arr) { return res + (i === arr.length - 1 ? ' and ' : ', ') + ch; }) + " passed away due to natural causes.</span><br>"; + ret += z.reduce(function(res, ch, i, arr) { return res + (i === arr.length - 1 ? ' and ' : ', ') + ch; }) + " passed away due to natural causes.</span>"; r.push(ret); } @@ -1906,6 +1906,8 @@ globalThis.arcmgmt = function() { function denseApartments() { /* increases lowerclass attraction based on number of dense apartments */ + let el = new DocumentFragment(); + let r = []; let _count = 0; V.building.findCells(cell => !(cell instanceof App.Arcology.Cell.Penthouse)) .forEach(cell => { @@ -1917,14 +1919,20 @@ globalThis.arcmgmt = function() { } }); if (_count > 9) { - return App.UI.DOM.makeElement("span", `<span class="green">A great amount of lower class citizens</span> were attracted by the sectors filled with dense apartments.`); + r.push(App.UI.DOM.makeElement("span", `A great amount of lower class citizens`, "green")); + r.push(` were attracted by the sectors filled with dense apartments.`); } else if (_count > 5) { - return App.UI.DOM.makeElement("span", `<span class="green">A large amount of lower class citizens</span> were attracted by your sprawling blocks of dense apartments.`); + r.push(App.UI.DOM.makeElement("span", `A large amount of lower class citizens`, "green")); + r.push(` were attracted by your sprawling blocks of dense apartments.`); } else if (_count > 2) { - return App.UI.DOM.makeElement("span", `<span class="green">A moderate amount of lower class citizens</span> were attracted by your dense apartment complexes.`); + r.push(App.UI.DOM.makeElement("span", `A moderate amount of lower class citizens`, "green")); + r.push(` were attracted by your dense apartment complexes`); } else if (_count > 0) { - return App.UI.DOM.makeElement("span", `<span class="green">A small amount of lower class citizens</span> were attracted by your dense apartments.`); + r.push(App.UI.DOM.makeElement("span", `A small amount of lower class citizens`, "green")); + r.push(` were attracted by your dense apartments.`); } + App.Events.addNode(el, r); + return el; } function getBanishRatio() {