From a70ade6179f12a7d08060d108846a5c3520de648 Mon Sep 17 00:00:00 2001
From: lowercase-donkey <lowercasedonkey@gmail.com>
Date: Thu, 5 Sep 2019 23:08:21 -0400
Subject: [PATCH] fixes

---
 src/js/datatypeCleanupJS.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/js/datatypeCleanupJS.js b/src/js/datatypeCleanupJS.js
index 29f262e8d63..7a2b9f8c126 100644
--- a/src/js/datatypeCleanupJS.js
+++ b/src/js/datatypeCleanupJS.js
@@ -979,7 +979,7 @@ window.SlaveDatatypeCleanup = (function SlaveDatatypeCleanup() {
 		}
 		slave.heels = Math.clamp(+slave.heels, 0, 1) || 0;
 		slave.amp = Math.clamp(+slave.amp, -5, 1) || 0;
-		if (slave.amp == 1) {
+		if (slave.amp === 1) {
 			slave.missingArms = 3;
 			slave.missingLegs = 3;
 		}
@@ -1784,6 +1784,7 @@ window.FacilityDatatypeCleanup = (function() {
 		CellblockDatatypeCleanup();
 		MasterSuiteDatatypeCleanup();
 		HeadGirlSuiteDatatypeCleanup();
+		NurseryDatatypeCleanup();
 
 		V.Recruiter = V.slaves.find(s => s.assignment === "recruit girls") || 0;
 		V.Bodyguard = V.slaves.find(s => s.assignment === "guard you") || 0;
@@ -2012,6 +2013,11 @@ window.FacilityDatatypeCleanup = (function() {
 			V.HGSuiteHormones = 1;
 		}
 	}
+
+	function NurseryDatatypeCleanup() {
+		/* matron */
+		V.Matron = V.slaves.find(s => s.assignment === "be the Matron") || 0;
+	}
 })();
 
 
-- 
GitLab