diff --git a/src/facilities/nursery/nurseryWidgets.js b/src/facilities/nursery/nurseryWidgets.js index ead76b2b6199bd529d07087425458205d2c9e7a5..38caa3a268921e98e8d090a54d90696109f8ded0 100644 --- a/src/facilities/nursery/nurseryWidgets.js +++ b/src/facilities/nursery/nurseryWidgets.js @@ -2043,7 +2043,7 @@ App.Facilities.Nursery.LongInfantDescription = function(child) { if (fatherPC && motherPC) { r += `${He} is <span class="lightgreen">your child;</span> you knocked yourself up with ${him}. `; - } else if (father.ID === mother.ID) { + } else if (child.father === child.mother) { r += `${He} was <span class="lightgreen">both fathered and mothered by ${father.slaveName}.</span> `; } else { if (fatherPC) { @@ -2052,18 +2052,18 @@ App.Facilities.Nursery.LongInfantDescription = function(child) { r += `${He} is <span class="lightgreen">your child;</span> you gave birth to ${him}. `; } else { let pName; - if (child.father > 0) { - if (child.father in V.missingTable && V.showMissingSlaves) { - pName = V.slaves[V.slaveIndices[child.father]].slaveName; - } else { + if (child.father !== 0) { + if (V.showMissingSlaves && child.father in V.missingTable) { pName = `your former slave ${V.missingTable[child.father].slaveName}`; + } else { + pName = V.slaves[V.slaveIndices[child.father]].slaveName; } r += `${He} was <span class="lightgreen">fathered by ${pName}'s</span> virile dick. `; - } else if (child.mother > 0) { - if (child.mother in V.missingTable && V.showMissingSlaves) { - pName = V.slaves[V.slaveIndices[child.mother]].slaveName; - } else { + } else if (child.mother !== 0) { + if (V.showMissingSlaves && child.mother in V.missingTable) { pName = `your former slave ${V.missingTable[child.mother].slaveName}`; + } else { + pName = V.slaves[V.slaveIndices[child.mother]].slaveName; } r += `${He} was born from ${pName}'s fertile womb. `; }