diff --git a/src/npc/startingGirls/editFamily.js b/src/npc/startingGirls/editFamily.js index 0717927c390b7870290117a5294e10f36c3b26e1..41c4594e5930c270cd514f3f0a60f852672c91e5 100644 --- a/src/npc/startingGirls/editFamily.js +++ b/src/npc/startingGirls/editFamily.js @@ -1,7 +1,7 @@ App.Intro.editFamily = function(slave) { const el = new DocumentFragment(); const _allowPCFamily = (V.freshPC === 1 || V.saveImported === 0); - const {His} = getPronouns(slave); + const {His, 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)); @@ -13,13 +13,9 @@ App.Intro.editFamily = function(slave) { familyTable.append(summary()); familyTable.append(makeElWithID("dont-be-dumb")); familyTable.append(mother()); - if (slave.mother) { - familyTable.append(sameMotherAs()); - } + familyTable.append(sameMotherAs()); familyTable.append(father()); - if (slave.father) { - familyTable.append(sameFatherAs()); - } + familyTable.append(sameFatherAs()); familyTable.append(motherOfTheChildren()); familyTable.append(fatherOfTheChildren()); if (_allowPCFamily) { @@ -143,7 +139,11 @@ App.Intro.editFamily = function(slave) { const div = document.createElement("div"); const linkArray = []; - div.append(`${His} mom, ${getSlave(slave.mother).slaveName}, is also the mother of: `); + if (slave.mother === -1) { + div.append(`You are ${his} mother, and also the mother of: `); + } else { + div.append(`${His} mom, ${parentName("mother")}, is also the mother of: `); + } const nameEl = makeElWithID("sameMotherNames", "span"); nameEl.append(App.StartingGirls.listOfSlavesWithParent('mother', slave.mother), " "); @@ -205,7 +205,11 @@ App.Intro.editFamily = function(slave) { const div = document.createElement("div"); const linkArray = []; - div.append(`${His} dad, ${getSlave(slave.father).slaveName}, is also the father of: `); + if (slave.father === -1) { + div.append(`You are ${his} father, and also the father of: `); + } else { + div.append(`${His} dad, ${parentName("father")}, is also the father of: `); + } const nameEl = makeElWithID("sameFatherNames", "span"); nameEl.append(App.StartingGirls.listOfSlavesWithParent('father', slave.father), " "); @@ -477,7 +481,7 @@ App.Intro.editFamily = function(slave) { return `You`; } else { const relObj = getSlave(slave[rel]); - return relObj ? relObj.slaveName : "unknown to you."; + return relObj ? relObj.slaveName : "unknown to you"; } }