diff --git a/src/npc/generate/newChildIntro.js b/src/npc/generate/newChildIntro.js index 8b6c5ce5bab1bd5681b08c4a82ad7fb05fab251e..c352d5c1e598c54675ec484d40a51f0e3f18f54e 100644 --- a/src/npc/generate/newChildIntro.js +++ b/src/npc/generate/newChildIntro.js @@ -245,16 +245,16 @@ App.UI.newChildIntro = function(slave) { r = []; r.push(newName); r.push(`now stands before your desk`); - if (tempMom !== 0 && tempDad !== 0 && slave.father !== slave.mother) { + if (tempMom && tempDad && slave.father !== slave.mother) { r.push(`alongside ${his} mother ${tempMom.slaveName} and father ${tempDad.slaveName}.`); - } else if (tempMom !== 0) { + } else if (tempMom) { r.push(`alongside ${his} mother ${tempMom.slaveName}.`); - } else if (tempDad !== 0) { + } else if (tempDad) { r.push(`alongside ${his} father ${tempDad.slaveName}.`); } else { r.push(`alone, having no family${(slave.mother === -1 || slave.father === -1) ? `, other than you,` : ``} in your stock.`); } - if (V.arcologies[0].FSRestartDecoration === 100 && tempMom !== 0) { + if (V.arcologies[0].FSRestartDecoration === 100 && tempMom) { if (tempMom.breedingMark === 1 && V.propOutcome === 1) { r.push(`The Societal Elite are waiting to inspect the child of their eugenics programs.`); if (V.arcologies[0].FSSupremacist > 20 && slave.race !== V.arcologies[0].FSSupremacistRace) { @@ -284,7 +284,7 @@ App.UI.newChildIntro = function(slave) { } } - if (tempMom !== 0) { + if (tempMom) { ({ he2, his2, He2, himself2 } = getPronouns(tempMom).appendSuffix("2")); @@ -425,7 +425,7 @@ App.UI.newChildIntro = function(slave) { } } - if (tempDad !== 0 && slave.father !== slave.mother) { + if (tempDad && slave.father !== slave.mother) { ({ he2, his2, He2 } = getPronouns(tempDad).appendSuffix("2")); @@ -570,14 +570,14 @@ App.UI.newChildIntro = function(slave) { r = []; - if (tempMom !== 0 && tempDad !== 0 && slave.father !== slave.mother) { + if (tempMom && tempDad && slave.father !== slave.mother) { r.push(`You dismiss ${tempMom.slaveName} and ${tempDad.slaveName} so that you may conduct a more intimate inspection of their ${daughter}.`); - } else if (tempMom !== 0) { + } else if (tempMom) { ({ he2, his2, He2 } = getPronouns(tempMom).appendSuffix("2")); r.push(`You dismiss ${tempMom.slaveName} so that you may conduct a more intimate inspection of ${his2} ${daughter}.`); - } else if (tempDad !== 0) { + } else if (tempDad) { ({ he2, his2, He2 } = getPronouns(tempDad).appendSuffix("2"));