From 222a3e09685ebf3975da32ab63c5a176c588f550 Mon Sep 17 00:00:00 2001
From: DCoded <dcoded@live.com>
Date: Sun, 23 Sep 2018 19:04:52 -0700
Subject: [PATCH] Nursery stuff

---
 src/js/storyJS.tw | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/js/storyJS.tw b/src/js/storyJS.tw
index ea0cf74d934..cc9061f1da6 100644
--- a/src/js/storyJS.tw
+++ b/src/js/storyJS.tw
@@ -268,6 +268,14 @@ window.canImpreg = function(slave1, slave2) {
 		return null;
 	} else if (slave2.dick < 1) {
 		return false;
+	} else if (slave2.ID === -1) {
+		if (slave1.eggType != "human") {
+			return false;
+		} else if (!canGetPregnant(slave1)) { /* includes chastity checks */
+			return false;
+		} else {
+			return true;
+		}
 	} else if (slave2.balls < 1) {
 		return false;
 	} else if (slave2.dickAccessory == "chastity") {
@@ -278,6 +286,14 @@ window.canImpreg = function(slave1, slave2) {
 		return false;
 	} else if (slave2.vasectomy == 1) {
 		return false;
+	} else if (slave1.ID === -1) {
+		if (slave2.ballType != "human") {
+			return false;
+		} else if (!isPlayerFertile(slave1)) {
+			return false;
+		} else {
+			return true;
+		}
 	} else if (!canBreed(slave1, slave2)) {
 		return false; /* pregmod end */
 	} else if (!canGetPregnant(slave1)) { /* includes chastity checks */
@@ -305,7 +321,7 @@ window.isFertile = function(slave) {
 		return false;
 	} else if (slave.ovaryAge >= 47) {
 		return false;
-	} else if (slave.inflation != 0) {
+	} else if (slave.inflation > 2) {
 		return false;
 	} else if (slave.bellyImplant != -1) {
 		return false;
@@ -720,6 +736,7 @@ window.expandFacilityAssignments = function(facilityAssignments) {
 	var assignmentPairs = {
 		"serve in the club": "be the DJ",
 		"rest in the spa": "be the Attendant",
+		"work as a nanny": "be the Matron",
 		"work in the brothel": "be the Madam",
 		"work in the dairy": "be the Milkmaid",
 		"work as a servant": "be the Stewardess",
@@ -728,7 +745,6 @@ window.expandFacilityAssignments = function(facilityAssignments) {
 		"serve in the master suite": "be your Concubine",
 		"learn in the schoolroom": "be the Schoolteacher",
 		"be confined in the cellblock": "be the Wardeness",
-		"be a nanny": "be the Matron",
 	};
 
 	if (!facilityAssignments || !facilityAssignments.length)
-- 
GitLab