diff --git a/src/js/birth/birth.js b/src/js/birth/birth.js index 08cc12bb23849276e613523bcf8f0a82733c695f..4b126c9765bb0f81f95bf12b0f36f056058c72a9 100644 --- a/src/js/birth/birth.js +++ b/src/js/birth/birth.js @@ -1455,22 +1455,22 @@ globalThis.birth = function(slave, {birthStorm = false, cSection = false} = {}) App.Events.addParagraph(el, r); /* ------ Social reactions--------------- */ if (V.arcologies[0].FSRestart !== "unset") { - p = document.createElement("p"); + r = []; if (slave.breedingMark === 1 && V.propOutcome === 1 && (slave.pregSource === -1 || slave.pregSource === -6)) { - p.append(`The ${societalElite}`); - App.UI.DOM.appendNewElement("span", p, `are pleased`, "green"); - p.append(`at the new additions to their class.`); + r.push(`The ${societalElite}`); + r.push("span", `are pleased`, "green"); + r.push(`at the new additions to their class.`); V.failedElite -= (2 * numBeingBorn); } else if (V.eugenicsFullControl !== 1) { - p.append(`The ${societalElite}`); - App.UI.DOM.appendNewElement("span", p, `are disappointed`, "red"); - p.append(`that you would allow subhuman filth to dirty the arcology under your watch. Society`); - App.UI.DOM.appendNewElement("span", p, `frowns`, "red"); - p.append(`on the unwelcome addition of more subhumans into the world.`); + r.push(`The ${societalElite}`); + r.push("span", `are disappointed`, "red"); + r.push(`that you would allow subhuman filth to dirty the arcology under your watch. Society`); + r.push("span", `frowns`, "red"); + r.push(`on the unwelcome addition of more subhumans into the world.`); V.failedElite += (5 * numBeingBorn); repX(forceNeg(10 * numBeingBorn), "birth", slave); } - el.append(p); + App.Events.addParagraph(el, r); } } return el;