From 8efe57c631a78437e177975cb4d4525bde7ebcca Mon Sep 17 00:00:00 2001
From: DCoded <dicoded@email.com>
Date: Sat, 21 Aug 2021 16:16:28 -0400
Subject: [PATCH] Removed 50-child limit on Nursery

---
 src/facilities/nursery/nursery.js | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/src/facilities/nursery/nursery.js b/src/facilities/nursery/nursery.js
index 736081de573..0f9d2bdba69 100644
--- a/src/facilities/nursery/nursery.js
+++ b/src/facilities/nursery/nursery.js
@@ -736,18 +736,12 @@ App.Facilities.Nursery.nursery = class Nursery extends App.Facilities.Facility {
 
 		div.append(`It can support ${numberWithPlural(V.nursery, 'child', 'children')}. There ${numberWithPlural(V.nurseryChildren, 'is', 'are')} currently ${numberWithPlural(V.nurseryChildren, 'room')} in use in ${this.facility.name}.`);
 
-		if (V.nursery < 50) {
-			links.push(App.UI.DOM.link(`Add room for another child`, () => {
-				cashX(forceNeg(cost), "nursery");
-				V.nursery += 5;
+		links.push(App.UI.DOM.link(`Add room for another child`, () => {
+			cashX(forceNeg(cost), "nursery");
+			V.nursery += 5;
 
-				App.UI.reload();
-			}, [], '', `Costs ${cashFormat(cost)} and will increase upkeep costs.`));
-		} else {
-			links.push(App.UI.DOM.disabledLink(`Add room for another child`, [
-				`${this.facility.nameCaps} can support a maximum of 50 children.`,	// TODO: remove this somewhat arbitrary limitation?
-			]));
-		}
+			App.UI.reload();
+		}, [], '', `Costs ${cashFormat(cost)} and will increase upkeep costs.`));
 
 		if (V.nursery > 1 && FetusGlobalReserveCount("nursery") < V.nursery - V.nurseryChildren) {
 			links.push(App.UI.DOM.link(`Remove a room`, () => {
-- 
GitLab