From 52bba4b7a622c819f7612517faba3198cf2e50ba Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 25 Oct 2020 23:17:27 -0400 Subject: [PATCH] spacing --- src/js/birth/birth.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/js/birth/birth.js b/src/js/birth/birth.js index 08cc12bb238..4b126c9765b 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; -- GitLab