From 755bb8b01791956c929e95bc4625d15af22d2c5b Mon Sep 17 00:00:00 2001 From: lowercase-donkey <lowercasedonkey@gmail.com> Date: Thu, 29 Aug 2019 01:24:19 -0400 Subject: [PATCH] fix --- src/facilities/nursery/nurseryWidgets.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/facilities/nursery/nurseryWidgets.js b/src/facilities/nursery/nurseryWidgets.js index ead76b2b619..38caa3a2689 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. `; } -- GitLab