From ddaaf351c4cff24de870910db392a646714f535b Mon Sep 17 00:00:00 2001 From: turnop <17540-turnop@users.noreply.gitgud.io> Date: Mon, 21 Sep 2020 11:39:35 -0700 Subject: [PATCH] Replaces copied block with one-line solution for Baron v/ Societal Elite in birth.js --- js/birth.js | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/js/birth.js b/js/birth.js index 4f34fbb8f47..1558aa49d6e 100644 --- a/js/birth.js +++ b/js/birth.js @@ -2053,22 +2053,9 @@ globalThis.deadlyBirth = function(slave, curBabies) { // "DeadlyBirth">> r.push(`agape. An unfortunate loss.`); } App.Events.addParagraph(el, r); - if (V.arcologies[0].FSRestart !== "unset" && slave.breedingMark === 1 && V.propOutcome === 1 && (slave.pregSource === -1 || slave.pregSource === -6) && V.eugenicsFullControl !== 1 && V.FSNeoImperialistLaw2 === 1) { + if (V.arcologies[0].FSRestart !== "unset" && slave.breedingMark === 1 && V.propOutcome === 1 && (slave.pregSource === -1 || slave.pregSource === -6) && V.eugenicsFullControl !== 1) { const div = document.createElement("div"); - div.append(`The Barons `); - App.UI.DOM.appendNewElement("span", div, `are furious `, "red"); - div.append(` you would allow an Elite child to perish under your watch`); - if (curBabies > 1) { - div.append(`, let alone multiple`); - } - div.append(`.`); - el.append(div); - V.failedElite += 100; - } - App.Events.addParagraph(el, r); - if (V.arcologies[0].FSRestart !== "unset" && slave.breedingMark === 1 && V.propOutcome === 1 && (slave.pregSource === -1 || slave.pregSource === -6) && V.eugenicsFullControl !== 1 && v.FSNeoImperialistLaw2 !== 1) { - const div = document.createElement("div"); - div.append(`The Societal Elite `); + div.append(`The ${V.FSNeoImperialistLaw2 === 1 ? "Barons" : "Societal Elite"} `); App.UI.DOM.appendNewElement("span", div, `are furious `, "red"); div.append(` you would allow an Elite child to perish under your watch`); if (curBabies > 1) { -- GitLab