From 59e2e112293d108fb2cedbb109cc461f86cdb33a Mon Sep 17 00:00:00 2001 From: DCoded <dcoded@live.com> Date: Mon, 1 Jun 2020 23:37:22 -0400 Subject: [PATCH] Reverted changes to origin string, shut up JSHint --- src/facilities/nursery/widgets/utils/nurseryUtils.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/facilities/nursery/widgets/utils/nurseryUtils.js b/src/facilities/nursery/widgets/utils/nurseryUtils.js index 1024be2a255..c2a3f739bb9 100644 --- a/src/facilities/nursery/widgets/utils/nurseryUtils.js +++ b/src/facilities/nursery/widgets/utils/nurseryUtils.js @@ -435,7 +435,7 @@ App.Facilities.Nursery.nameChild = function nameChild(child) { if (!child.slaveName) { for (let i = 0; i < 10; i++) { continentNationality = hashChoice(V.nationalities); - child.slaveName = generateName(continentNationality, child.race, child.genes === "XY", sn => !currentSlaveNames.includes(sn)); + child.slaveName = generateName(continentNationality, child.race, child.genes === "XY", sn => !currentSlaveNames.includes(sn)); // jshint ignore: line } } if (!child.slaveName) { @@ -626,8 +626,6 @@ App.Facilities.Nursery.nameChild = function nameChild(child) { * @param {App.Entity.InfantState} child */ App.Facilities.Nursery.newChild = function newChild(child) { - const He = child.genes === "XX" ? `She` : `He`; - child.ID = generateSlaveID(); child.actualAge = 0; @@ -679,7 +677,7 @@ App.Facilities.Nursery.newChild = function newChild(child) { child.canRecruit = 0; } generatePronouns(child); - child.origin = `${He} was born and raised in your arcology. `; + child.origin = `$He was born and raised in your arcology. `; child.targetLocation = "slavery"; child.growTime = V.targetAgeNursery * 52; V.cribs.push(child); @@ -862,7 +860,7 @@ App.Facilities.Nursery.nurserySort = function nurserySort() { if (!eligibility) { r += `<br>`; - r += `<i>You have no pregnant slave bearing eligile children</i>`; + r += `<i>You have no pregnant slave bearing eligible children</i>`; } if (PC.pregKnown && (arcology.FSRestart === "unset" || V.eugenicsFullControl || (PC.pregSource !== -1 && PC.pregSource !== -6))) { -- GitLab