From 06d8e9d8854c71f3bea02c77baeec813d0f1ec28 Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Mon, 5 Oct 2020 17:35:41 -0700
Subject: [PATCH] Don't discard babies that exceed the reserve capacity...treat
 them as unreserved instead

---
 src/js/birth/birth.js | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/js/birth/birth.js b/src/js/birth/birth.js
index 3d20c374ab2..0d6bd24ea96 100644
--- a/src/js/birth/birth.js
+++ b/src/js/birth/birth.js
@@ -9037,14 +9037,10 @@ globalThis.birth = function(slave, {birthStorm = false, cSection = false} = {})
 globalThis.sendNewbornsToFacility = function(mom, babiesBeingBorn) {
 	const remainingBabies = [];
 	for (const ovum of babiesBeingBorn) {
-		if (ovum.reserve === "incubator") {
-			if (V.tanks.length < V.incubator) {
-				App.Facilities.Incubator.newChild(generateChild(mom, ovum, true));
-			}
-		} else if (ovum.reserve === "nursery") {
-			if (V.cribs.length < V.nursery) {
-				App.Facilities.Nursery.newChild(generateChild(mom, ovum));
-			}
+		if (ovum.reserve === "incubator" && V.tanks.length < V.incubator) {
+			App.Facilities.Incubator.newChild(generateChild(mom, ovum, true));
+		} else if (ovum.reserve === "nursery" && V.cribs.length < V.nursery) {
+			App.Facilities.Nursery.newChild(generateChild(mom, ovum));
 		} else {
 			remainingBabies.push(ovum);
 		}
-- 
GitLab