From a5dd21d25d9689c817d56b3eae665202dc7523b9 Mon Sep 17 00:00:00 2001
From: DCoded <dcoded@live.com>
Date: Sun, 2 Aug 2020 21:19:40 -0400
Subject: [PATCH] Fixed only last nanny in array being used in
 nannyFetishEffects()

---
 src/facilities/nursery/reports/childrenReport.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/facilities/nursery/reports/childrenReport.js b/src/facilities/nursery/reports/childrenReport.js
index 2dabed5eae4..672c39337c8 100644
--- a/src/facilities/nursery/reports/childrenReport.js
+++ b/src/facilities/nursery/reports/childrenReport.js
@@ -104,9 +104,11 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
 	// MARK: Nanny Effects
 
 	function nannyFetishEffects(child) {
-		const { he } = getPronouns(child);
+		const
+			{ he } = getPronouns(child),
+			randomNanny = jsRandom(0, nannies.length),
+			slave = nannies[randomNanny];
 
-		for (const slave of nannies) {
 			if (slave.fetish !== "none") {
 				if (chance > 85) {
 					if (child.fetish === "none") {
@@ -122,7 +124,6 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
 					}
 				}
 			}
-		}
 	}
 
 	function nannyEducationEffects(child) {
-- 
GitLab