diff --git a/src/npc/startingGirls/editFamily.js b/src/npc/startingGirls/editFamily.js index cbb97f6d37e2dad39e96c45e589141b55db8fad0..04a9c67e7436d40dc8f81478806e2c5054ace24c 100644 --- a/src/npc/startingGirls/editFamily.js +++ b/src/npc/startingGirls/editFamily.js @@ -1,6 +1,7 @@ App.Intro.editFamily = function(slave) { const el = new DocumentFragment(); const _allowPCFamily = (V.freshPC === 1 || V.saveImported === 0); + const {His} = getPronouns(slave); // Checks to make sure a slave is not the active slave's parent. const isNotMom = (s) => ((s.mother !== slave.mother) || (slave.mother === 0)); @@ -12,9 +13,13 @@ App.Intro.editFamily = function(slave) { familyTable.append(summary()); familyTable.append(makeElWithID("dont-be-dumb")); familyTable.append(mother()); - familyTable.append(sameMotherAs()); + if (slave.mother) { + familyTable.append(sameMotherAs()); + } familyTable.append(father()); - familyTable.append(sameFatherAs()); + if (slave.father) { + familyTable.append(sameFatherAs()); + } familyTable.append(motherOfTheChildren()); familyTable.append(fatherOfTheChildren()); if (_allowPCFamily) { @@ -138,7 +143,7 @@ App.Intro.editFamily = function(slave) { const div = document.createElement("div"); const linkArray = []; - div.append("Same mother as: "); + div.append(`${His} mom, ${getSlave(slave.mother).slaveName}, is also the mom of: `); const nameEl = makeElWithID("sameMotherNames", "span"); nameEl.append(App.StartingGirls.listOfSlavesWithParent('mother', slave.mother), " "); @@ -200,7 +205,7 @@ App.Intro.editFamily = function(slave) { const div = document.createElement("div"); const linkArray = []; - div.append("Same father as: "); + div.append(`${His} dad, ${getSlave(slave.father).slaveName}, is also the father of: `); const nameEl = makeElWithID("sameFatherNames", "span"); nameEl.append(App.StartingGirls.listOfSlavesWithParent('father', slave.father), " ");