From 4092715cf6fe5c1bb7a527aa6b195719ace1879e Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Sat, 17 Feb 2018 19:11:12 -0500
Subject: [PATCH] fixes and c-secs

---
 devNotes/VersionChangeLog-Premod+LoliMod.txt |   7 +-
 devNotes/twine JS                            |   2 +-
 src/js/eventSelectionJS.tw                   |   2 +-
 src/pregmod/csec.tw                          |  17 ++-
 src/uncategorized/RESS.tw                    |   2 +-
 src/uncategorized/slaveInteract.tw           | 142 +++++++++++--------
 src/utility/miscWidgets.tw                   |  84 +++++++----
 7 files changed, 152 insertions(+), 104 deletions(-)

diff --git a/devNotes/VersionChangeLog-Premod+LoliMod.txt b/devNotes/VersionChangeLog-Premod+LoliMod.txt
index 7bd6a278309..a6f5e45c3b9 100644
--- a/devNotes/VersionChangeLog-Premod+LoliMod.txt
+++ b/devNotes/VersionChangeLog-Premod+LoliMod.txt
@@ -4,10 +4,15 @@
 
 2/17/18
 
+	356
+	-minor fixes
+	-minor fixes submitted via git
+	-more additions and fixes to the revamped vector art (I also now know what it is called.)
+	-added option to c-section a slave should you feel like it
+
 	355
 	-minor fixes and a major fix to personal attention
 	-additional new vectors for the new embedded vector art
-	-added option to c-section a slave should you feel like it
 
 2/16/18
 
diff --git a/devNotes/twine JS b/devNotes/twine JS
index 8fb11f42e39..fed40467405 100644
--- a/devNotes/twine JS	
+++ b/devNotes/twine JS	
@@ -5515,7 +5515,7 @@ if(eventSlave.fetish == "mindbroken") {
 			}
 		}
 	}
-	if(eventSlave.career == "a breeding bull" && eventSlave.assignment == "serve in the master suite" && canPenetrate(eventSlave) && eventSlave.amp != 1 && State.variables.PC.vagina == 1 && State.variables.PC.preg == 0 && (eventSlave.muscles > 30 || eventSlave.weight > 30)) {
+	if(eventSlave.career == "a breeding bull" && eventSlave.assignment == "serve in the master suite" && canPenetrate(eventSlave) && eventSlave.dick >= 5 && eventSlave.amp != 1 && State.variables.PC.vagina == 1 && State.variables.PC.preg == 0 && (eventSlave.muscles > 30 || eventSlave.weight > 30)) {
 		State.variables.RESSevent.push("breeding bull");
 		if(State.variables.PC.fertDrugs > 0) {
 			State.variables.RESSevent.push("breeding bull");
diff --git a/src/js/eventSelectionJS.tw b/src/js/eventSelectionJS.tw
index d64d3644280..e1317557a9c 100644
--- a/src/js/eventSelectionJS.tw
+++ b/src/js/eventSelectionJS.tw
@@ -1807,7 +1807,7 @@ if(eventSlave.fetish == "mindbroken") {
 			}
 		}
 	}
-	if(eventSlave.career == "a breeding bull" && eventSlave.assignment == "serve in the master suite" && canPenetrate(eventSlave) && eventSlave.amp != 1 && State.variables.PC.vagina == 1 && State.variables.PC.preg == 0 && (eventSlave.muscles > 30 || eventSlave.weight > 30)) {
+	if(eventSlave.career == "a breeding bull" && eventSlave.assignment == "serve in the master suite" && canPenetrate(eventSlave) && eventSlave.dick >= 5 && eventSlave.amp != 1 && State.variables.PC.vagina == 1 && State.variables.PC.preg == 0 && (eventSlave.muscles > 30 || eventSlave.weight > 30)) {
 		State.variables.RESSevent.push("breeding bull");
 		if(State.variables.PC.fertDrugs > 0) {
 			State.variables.RESSevent.push("breeding bull");
diff --git a/src/pregmod/csec.tw b/src/pregmod/csec.tw
index 5831c5e2e67..155aada43d0 100644
--- a/src/pregmod/csec.tw
+++ b/src/pregmod/csec.tw
@@ -62,7 +62,7 @@ Performing a cesarean section is trivial for the remote surgery for the remote s
 already been
 
 <<if $activeSlave.reservedChildren == $activeSlave.pregType>>
-	taken to $incubatorName.
+	been taken to $incubatorName.
 	<<for _csec = $activeSlave.reservedChildren; _csec != 0; _csec-->>
 		<<set $mom = $slaves[$i]>>
 		<<include "Generate Child">>
@@ -70,7 +70,7 @@ already been
 	<</for>>
 	<<set _incubated = 2>>
 <<elseif $activeSlave.reservedChildren > 0>>
-	split between $incubatorName and
+	been split between $incubatorName and
 	<<for _csec = $activeSlave.reservedChildren; _csec != 0; _csec-->>
 		<<set $mom = $slaves[$i]>>
 		<<include "Generate Child">>
@@ -93,7 +93,7 @@ already been
 	<</if>>
 	<<if _lostBabies != 1>>
 		<br><br>
-		<<link 'sent to a slave orphanage'>>
+		<<link '...sent to a slave orphanage.'>>
 			<<replace #_disposition>>
 				<<set $slaveOrphanageTotal += $activeSlave.pregType>>
 				sent to one of $arcologies[0].name's slave orphanages. $activeSlave.slaveName
@@ -115,7 +115,7 @@ already been
 			<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
 		<</link>>
 		<<if $arcologies[0].FSRepopulationFocus > 40>>
-			<br><<link 'sent to a breeder school'>>
+			<br><<link '...sent to a breeder school.'>>
 				<<replace #_disposition>>
 					sent to one of $arcologies[0].name's future minded schools, to be administered fertility and virility treatments as well as be brought up to take pride in reproduction. $activeSlave.slaveName
 					<<if $activeSlave.fetish == "mindbroken" || $activeSlave.fuckdoll > 0>>
@@ -138,7 +138,7 @@ already been
 			<</link>>
 			//Will cost a one time <<print cashFormat(50)>>//
 		<</if>>
-		<br><<link 'sent to a citizen school'>>
+		<br><<link '...sent to a citizen school.'>>
 			<<replace #_disposition>>
 				sent to one of $arcologies[0].name's citizen schools, to be brought up coequal with the arcology's other young people. $activeSlave.slaveName
 				<<if $activeSlave.fetish == "mindbroken" || $activeSlave.fuckdoll > 0>>
@@ -157,7 +157,7 @@ already been
 			<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
 		<</link>>
 		//Will cost <<print cashFormat(100)>> weekly//
-		<br><<link 'sent to be raised privately'>>
+		<br><<link '...sent to be raised privately.'>>
 			<<replace #_disposition>>
 				The child<<if $activeSlave.pregType > 1>>ren are<<else>> is<</if>> sent to be privately raised, to be brought up as a future high class citizen. $activeSlave.slaveName
 				<<if $activeSlave.fetish == "mindbroken" || $activeSlave.fuckdoll > 0>>
@@ -181,7 +181,6 @@ already been
 	</span>
 <</if>>
 
-
 <<if $activeSlave.fetish != "mindbroken" && $activeSlave.fuckdoll == 0>>
 	<br><br>
 	<<if $activeSlave.pregSource == -1>>
@@ -226,7 +225,7 @@ Since her <<if $activeSlave.mpreg == 1>>ass<<else>>vagina<</if>> was spared from
 <<if ($PC.medicine >= 100)>>
 	Since you @@.springgreen;performed the surgery yourself,@@ and you do artist's work, her health is @@.green;less affected@@ by the surgery than it would have been if you'd paid some hack to do it remotely.
 	<<if $activeSlave.fetish != "mindbroken" && $activeSlave.fuckdoll == 0>>
-		She went into the surgery very aware that you were performing it personally.
+		She went into the surgery very aware that you were performing it manually.
 		<<if ($activeSlave.devotion < _oldDevotion)>>
 			<<if ($activeSlave.devotion > 50)>>
 				Though she is unhappy with the results, she consoles herself with the knowledge that you cared enough to do it personally.
@@ -260,5 +259,5 @@ Since her <<if $activeSlave.mpreg == 1>>ass<<else>>vagina<</if>> was spared from
 <<set $activeSlave.pregSource = 0>>
 <<set $activeSlave.pregKnown = 0>>
 <<set $activeSlave.pregWeek = -4>>
-<<set $activeSlave.csec = 1>>
+<<set $activeSlave.cSec = 1>>
 <<SetBellySize $activeSlave>>
diff --git a/src/uncategorized/RESS.tw b/src/uncategorized/RESS.tw
index cdcbdfe6ce0..9b042da9a01 100644
--- a/src/uncategorized/RESS.tw
+++ b/src/uncategorized/RESS.tw
@@ -7368,7 +7368,7 @@ You tell her kindly that you understand, and that she'll be trained to address t
 <</link>><<if ($activeSlave.anus == 0)>> //This option will take anal virginity//<</if>>
 <</if>>
 <<if canDoVaginal($activeSlave)>>
-<<link "Avail yourself to her pussy">>
+<br><<link "Avail yourself to her pussy">>
 	<<EventNameDelink $activeSlave>>
 	<<replace "#result">>
 	In accordance with the rules, she
diff --git a/src/uncategorized/slaveInteract.tw b/src/uncategorized/slaveInteract.tw
index 5f02558b541..4d70dfb9e6c 100644
--- a/src/uncategorized/slaveInteract.tw
+++ b/src/uncategorized/slaveInteract.tw
@@ -1028,69 +1028,87 @@ Aphrodisiacs: <span id="aphrodisiacs"><strong><<if $activeSlave.aphrodisiacs > 1
 <br>
 <span id="fertilityblock">
 <<if $activeSlave.fuckdoll == 0 && ($activeSlave.ovaries == 1 || $activeSlave.mpreg == 1)>>
-<<if ($activeSlave.preg < -1)>>
-	//She is sterile//
-<<elseif ($activeSlave.pubertyXX == 0) && $activeSlave.preg < 1>>
-	//She is not yet fertile//
-<<elseif $activeSlave.ovaryAge >= 47 && $activeSlave.preg < 1>>
-	//She is too old to become pregnant//
-	<<if $activeSlave.preg == -1>>
-		<<set $activeSlave.preg = 0>>
-		<<SetBellySize $activeSlave>>
-	<</if>>
-<<elseif $activeSlave.broodmotherCountDown > 0>>
-	//Her pregnancy implant is shutting down; she will be completely emptied of her remaining brood in $activeSlave.broodmotherCountDown week<<if $activeSlave.broodmotherCountDown > 1>>s<</if>>//
-<<elseif $activeSlave.preg >= -1>>
-Contraception: <span id="fertility"><strong><<if $activeSlave.preg == -1>><<print "using contraceptives">><<elseif $activeSlave.pregWeek < 0>><<print "postpartum">><<elseif $activeSlave.preg == 0>><<print "fertile">><<elseif $activeSlave.preg < 4>><<print "may be pregnant">><<else>><<print $activeSlave.preg>><<print " weeks pregnant">><</if>></strong></span>.
-<<if ($activeSlave.preg == 0)>>
-	<<link "Use contraceptives">><<set $activeSlave.preg = -1>>
-	<<SlaveInteractFertility>>
-	<<SlaveInteractImpreg>>
-	<</link>>
-<<elseif $activeSlave.preg == -1>>
-	<<link "Let her get pregnant">><<set $activeSlave.preg = 0>>
-	<<SlaveInteractFertility>>
-	<<SlaveInteractImpreg>>
-	<</link>>
-<<elseif $activeSlave.induce == 1>>
-	//Hormones are being slipped into her food, she will give birth suddenly and rapidly this week//
-<<elseif ($activeSlave.preg > 38) && ($activeSlave.broodmother == 0) && ($activeSlave.labor == 0)>>
-	[[Induce labor|Slave Interact][$activeSlave.labor = 1,$activeSlave.induce = 1,$birthee = 1]]
-<<elseif ($activeSlave.broodmother > 0) && ($activeSlave.preg > 37)>>
-	[[Induce mass childbirth|BirthStorm]] | [[Begin implant shutdown|Slave Interact][$activeSlave.broodmotherCountDown = 37]]
-<<elseif ($activeSlave.preg > 0) && ($activeSlave.broodmother == 0) && $activeSlave.breedingMark == 1 && $activeSlave.pregSource == -1>>
-	//You are forbidden from aborting an elite child//
-<<elseif ($activeSlave.preg > 0) && ($activeSlave.broodmother == 0)>>
-	[[Abort her pregnancy|Abort]]
-<</if>>
-<</if>>
+	<<if ($activeSlave.preg < -1)>>
+		//She is sterile//
+	<<elseif ($activeSlave.pubertyXX == 0) && $activeSlave.preg < 1>>
+		//She is not yet fertile//
+	<<elseif $activeSlave.ovaryAge >= 47 && $activeSlave.preg < 1>>
+		//She is too old to become pregnant//
+		<<if $activeSlave.preg == -1>>
+			<<set $activeSlave.preg = 0>>
+			<<SetBellySize $activeSlave>>
+		<</if>>
+	<<elseif $activeSlave.broodmotherCountDown > 0>>
+		//Her pregnancy implant is shutting down; she will be completely emptied of her remaining brood in $activeSlave.broodmotherCountDown week<<if $activeSlave.broodmotherCountDown > 1>>s<</if>>//
+	<<elseif $activeSlave.preg >= -1>>
+		Contraception: <span id="fertility"><strong><<if $activeSlave.preg == -1>><<print "using contraceptives">><<elseif $activeSlave.pregWeek < 0>><<print "postpartum">><<elseif $activeSlave.preg == 0>><<print "fertile">><<elseif $activeSlave.preg < 4>><<print "may be pregnant">><<else>><<print $activeSlave.preg>><<print " weeks pregnant">><</if>></strong></span>.
+		<<if ($activeSlave.preg == 0)>>
+			<<link "Use contraceptives">><<set $activeSlave.preg = -1>>
+			<<SlaveInteractFertility>>
+			<<SlaveInteractImpreg>>
+			<</link>>
+		<<elseif $activeSlave.preg == -1>>
+			<<link "Let her get pregnant">><<set $activeSlave.preg = 0>>
+			<<SlaveInteractFertility>>
+			<<SlaveInteractImpreg>>
+			<</link>>
+		<<elseif $activeSlave.induce == 1>>
+			//Hormones are being slipped into her food, she will give birth suddenly and rapidly this week//
+		<<elseif ($activeSlave.preg > 38) && ($activeSlave.broodmother == 0) && ($activeSlave.labor == 0)>>
+			[[Induce labor|Slave Interact][$activeSlave.labor = 1,$activeSlave.induce = 1,$birthee = 1]]
+			| [[Give her a cesarean section|csec]]
+		<<elseif ($activeSlave.broodmother > 0)>>
+			<<if ($activeSlave.preg > 37)>>
+				[[Induce mass childbirth|BirthStorm]] | [[Begin implant shutdown|Slave Interact][$activeSlave.broodmotherCountDown = 37]]
+			<</if>>
+		<<elseif ($activeSlave.preg > 35)>>
+			[[Give her a cesarean section|csec]]
+		<<elseif ($activeSlave.preg > 0) && $activeSlave.breedingMark == 1 && $activeSlave.pregSource == -1>>
+			//You are forbidden from aborting an elite child//
+		<<elseif ($activeSlave.preg > 0)>>
+			[[Abort her pregnancy|Abort]]
+		<</if>>
+	<</if>>
 <<elseif ($activeSlave.ovaries == 1 || $activeSlave.mpreg == 1)>>
-<<if ($activeSlave.preg < -1)>>
-	//It is sterile//
-<<elseif ($activeSlave.pubertyXX == 0)>>
-	//It is not yet fertile//
-<<elseif $activeSlave.ovaryAge >= 47 && $activeSlave.preg < 1>>
-	//It is too old to become pregnant//
-	<<if $activeSlave.preg == -1>>
-		<<set $activeSlave.preg = 0>>
-		<<SetBellySize $activeSlave>>
-	<</if>>
-<<elseif ($activeSlave.preg >= -1)>>
-__Contraception__: <span id="fertility"><strong><<if $activeSlave.preg == -1>><<print "using contraceptives">><<elseif $activeSlave.pregWeek < 0>><<print "postpartum">><<elseif $activeSlave.preg == 0>><<print "fertile">><<elseif $activeSlave.preg < 4>><<print "may be pregnant">><<else>><<print $activeSlave.preg>><<print " weeks pregnant">><</if>></strong></span>.
-<<if ($activeSlave.preg == 0)>>
-	<<link "Use contraceptives">><<set $activeSlave.preg = -1>>
-	<<SlaveInteractFertility>>
-	<</link>>
-<<elseif ($activeSlave.preg == -1)>>
-	<<link "Let her get pregnant">><<set $activeSlave.preg = 0>>
-	<<SlaveInteractFertility>>
-	<</link>>
-<<elseif ($activeSlave.broodmother > 0) && ($activeSlave.preg > 37)>>
-	[[Induce mass childbirth|BirthStorm]]
-<<elseif ($activeSlave.preg > 0) && ($activeSlave.broodmother == 0)>>
-	[[Abort her pregnancy|Abort]]
-<</if>>
-<</if>>
+	<<if ($activeSlave.preg < -1)>>
+		//It is sterile//
+	<<elseif ($activeSlave.pubertyXX == 0)>>
+		//It is not yet fertile//
+	<<elseif $activeSlave.ovaryAge >= 47 && $activeSlave.preg < 1>>
+		//It is too old to become pregnant//
+		<<if $activeSlave.preg == -1>>
+			<<set $activeSlave.preg = 0>>
+			<<SetBellySize $activeSlave>>
+		<</if>>
+	<<elseif $activeSlave.broodmotherCountDown > 0>>
+		//Its pregnancy implant is shutting down; it will be completely emptied of its contained brood in $activeSlave.broodmotherCountDown week<<if $activeSlave.broodmotherCountDown > 1>>s<</if>>//
+	<<elseif ($activeSlave.preg >= -1)>>
+		__Contraception__: <span id="fertility"><strong><<if $activeSlave.preg == -1>><<print "using contraceptives">><<elseif $activeSlave.pregWeek < 0>><<print "postpartum">><<elseif $activeSlave.preg == 0>><<print "fertile">><<elseif $activeSlave.preg < 4>><<print "may be pregnant">><<else>><<print $activeSlave.preg>><<print " weeks pregnant">><</if>></strong></span>.
+		<<if ($activeSlave.preg == 0)>>
+			<<link "Use contraceptives">><<set $activeSlave.preg = -1>>
+			<<SlaveInteractFertility>>
+			<</link>>
+		<<elseif ($activeSlave.preg == -1)>>
+			<<link "Let it get pregnant">><<set $activeSlave.preg = 0>>
+			<<SlaveInteractFertility>>
+			<</link>>
+		<<elseif $activeSlave.induce == 1>>
+			//Hormones are being slipped into its food, it will give birth suddenly and rapidly this week//
+		<<elseif ($activeSlave.preg > 38) && ($activeSlave.broodmother == 0) && ($activeSlave.labor == 0)>>
+			[[Induce labor|Slave Interact][$activeSlave.labor = 1,$activeSlave.induce = 1,$birthee = 1]]
+			| [[Give it a cesarean section|csec]]
+		<<elseif ($activeSlave.broodmother > 0)>>
+			<<if ($activeSlave.preg > 37)>>
+				[[Induce mass childbirth|BirthStorm]] | [[Begin implant shutdown|Slave Interact][$activeSlave.broodmotherCountDown = 37]]
+			<</if>>
+		<<elseif ($activeSlave.preg > 35)>>
+			[[Give it a cesarean section|csec]]
+		<<elseif ($activeSlave.preg > 0) && $activeSlave.breedingMark == 1 && $activeSlave.pregSource == -1>>
+			//You are forbidden from aborting an elite child//
+		<<elseif ($activeSlave.preg > 0)>>
+			[[Abort its pregnancy|Abort]]
+		<</if>>
+	<</if>>
 <</if>>
 <<if ($activeSlave.pregKnown == 1) && ($pregSpeedControl == 1) && ($activeSlave.breedingMark != 1) && ($activeSlave.indentureRestrictions < 1) && ($activeSlave.broodmother == 0) && $seePreg != 0>>
 <br>&nbsp;&nbsp;&nbsp;&nbsp;
diff --git a/src/utility/miscWidgets.tw b/src/utility/miscWidgets.tw
index 02fada5553c..0446a50d580 100644
--- a/src/utility/miscWidgets.tw
+++ b/src/utility/miscWidgets.tw
@@ -660,47 +660,73 @@
 	<<elseif $activeSlave.ovaryAge >= 47 && $activeSlave.preg < 1>>
 		//She is too old to become pregnant//
 		<<if $activeSlave.preg == -1>>
-			<<set $activeSlave.preg = 0, $activeSlave.bellyPreg = 0>>
+			<<set $activeSlave.preg = 0>>
+			<<SetBellySize $activeSlave>>
 		<</if>>
+	<<elseif $activeSlave.broodmotherCountDown > 0>>
+			//Her pregnancy implant is shutting down; she will be completely emptied of her remaining brood in $activeSlave.broodmotherCountDown week<<if $activeSlave.broodmotherCountDown > 1>>s<</if>>//
 	<<elseif ($activeSlave.preg >= -1)>>
-	__Contraception__: <span id="fertility"><strong><<if $activeSlave.preg == -1>><<print "using contraceptives">><<elseif $activeSlave.pregWeek < 0>><<print "postpartum">><<elseif $activeSlave.preg == 0>><<print "fertile">><<elseif $activeSlave.preg < 4>><<print "may be pregnant">><<else>><<print $activeSlave.preg>><<print " weeks pregnant">><</if>></strong></span>.
-	<<if ($activeSlave.preg == 0)>>
-		<<link "Use contraceptives">><<set $activeSlave.preg = -1>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>>
-	<<elseif ($activeSlave.preg == -1)>>
-		<<link "Let her get pregnant">><<set $activeSlave.preg = 0>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>>
-	<<elseif $activeSlave.induce == 1>>
-		//Hormones are being slipped into her food, she will give birth suddenly and rapidly this week//
-	<<elseif ($activeSlave.preg > 38) && ($activeSlave.broodmother == 0) && ($activeSlave.labor == 0)>>
-		[[Induce labor|Slave Interact][$activeSlave.labor = 1,$activeSlave.induce = 1,$birthee = 1]]
-	<<elseif ($activeSlave.broodmother > 0) && ($activeSlave.preg > 37)>>
-		[[Induce mass childbirth|BirthStorm]]
-	<<elseif ($activeSlave.preg > 0) && ($activeSlave.broodmother == 0) && $activeSlave.breedingMark == 1 && $activeSlave.pregSource == -1>>
-		//You are forbidden from aborting an elite child//
-	<<elseif ($activeSlave.preg > 0) && ($activeSlave.broodmother == 0)>>
-		[[Abort her pregnancy|Abort]]
-	<</if>>
+		__Contraception__: <span id="fertility"><strong><<if $activeSlave.preg == -1>><<print "using contraceptives">><<elseif $activeSlave.pregWeek < 0>><<print "postpartum">><<elseif $activeSlave.preg == 0>><<print "fertile">><<elseif $activeSlave.preg < 4>><<print "may be pregnant">><<else>><<print $activeSlave.preg>><<print " weeks pregnant">><</if>></strong></span>.
+		<<if ($activeSlave.preg == 0)>>
+			<<link "Use contraceptives">><<set $activeSlave.preg = -1>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>>
+		<<elseif ($activeSlave.preg == -1)>>
+			<<link "Let her get pregnant">><<set $activeSlave.preg = 0>><<SlaveInteractImpreg>><<SlaveInteractFertility>><</link>>
+		<<elseif $activeSlave.induce == 1>>
+			//Hormones are being slipped into her food, she will give birth suddenly and rapidly this week//
+		<<elseif ($activeSlave.preg > 38) && ($activeSlave.broodmother == 0) && ($activeSlave.labor == 0)>>
+			[[Induce labor|Slave Interact][$activeSlave.labor = 1,$activeSlave.induce = 1,$birthee = 1]]
+			| [[Give her a cesarean section|csec]]
+		<<elseif ($activeSlave.broodmother > 0)>>
+			<<if ($activeSlave.preg > 37)>>
+				[[Induce mass childbirth|BirthStorm]] | [[Begin implant shutdown|Slave Interact][$activeSlave.broodmotherCountDown = 37]]
+			<</if>>
+		<<elseif ($activeSlave.preg > 35)>>
+			[[Give her a cesarean section|csec]]
+		<<elseif ($activeSlave.preg > 0) && $activeSlave.breedingMark == 1 && $activeSlave.pregSource == -1>>
+			//You are forbidden from aborting an elite child//
+		<<elseif ($activeSlave.preg > 0)>>
+			[[Abort her pregnancy|Abort]]
+		<</if>>
 	<</if>>
 <<elseif ($activeSlave.ovaries == 1 || $activeSlave.mpreg == 1)>>
 	<<if ($activeSlave.preg < -1)>>
 		//It is sterile//
 	<<elseif ($activeSlave.pubertyXX == 0)>>
 		//It is not yet fertile//
-	<<elseif $activeSlave.ovaryAge >= 47>>
+	<<elseif $activeSlave.ovaryAge >= 47 && $activeSlave.preg < 1>>
 		//It is too old to become pregnant//
 		<<if $activeSlave.preg == -1>>
-			<<set $activeSlave.preg = 0, $activeSlave.bellyPreg = 0>>
+			<<set $activeSlave.preg = 0>>
+			<<SetBellySize $activeSlave>>
 		<</if>>
+	<<elseif $activeSlave.broodmotherCountDown > 0>>
+		//Its pregnancy implant is shutting down; it will be completely emptied of its contained brood in $activeSlave.broodmotherCountDown week<<if $activeSlave.broodmotherCountDown > 1>>s<</if>>//
 	<<elseif ($activeSlave.preg >= -1)>>
-	__Contraception__: <span id="fertility"><strong><<if $activeSlave.preg == -1>><<print "using contraceptives">><<elseif $activeSlave.pregWeek < 0>><<print "postpartum">><<elseif $activeSlave.preg == 0>><<print "fertile">><<elseif $activeSlave.preg < 4>><<print "may be pregnant">><<else>><<print $activeSlave.preg>><<print " weeks pregnant">><</if>></strong></span>.
-	<<if ($activeSlave.preg == 0)>>
-		<<link "Use contraceptives">><<set $activeSlave.preg = -1>><<SlaveInteractFertility>><</link>>
-	<<elseif ($activeSlave.preg == -1)>>
-		<<link "Let her get pregnant">><<set $activeSlave.preg = 0>><<SlaveInteractFertility>><</link>>
-	<<elseif ($activeSlave.broodmother > 0) && ($activeSlave.preg > 37)>>
-		[[Induce mass childbirth|BirthStorm]]
-	<<elseif ($activeSlave.preg > 0) && ($activeSlave.broodmother == 0)>>
-		[[Abort her pregnancy|Abort]]
-	<</if>>
+		__Contraception__: <span id="fertility"><strong><<if $activeSlave.preg == -1>><<print "using contraceptives">><<elseif $activeSlave.pregWeek < 0>><<print "postpartum">><<elseif $activeSlave.preg == 0>><<print "fertile">><<elseif $activeSlave.preg < 4>><<print "may be pregnant">><<else>><<print $activeSlave.preg>><<print " weeks pregnant">><</if>></strong></span>.
+		<<if ($activeSlave.preg == 0)>>
+			<<link "Use contraceptives">><<set $activeSlave.preg = -1>>
+			<<SlaveInteractFertility>>
+			<</link>>
+		<<elseif ($activeSlave.preg == -1)>>
+			<<link "Let it get pregnant">><<set $activeSlave.preg = 0>>
+			<<SlaveInteractFertility>>
+			<</link>>
+		<<elseif $activeSlave.induce == 1>>
+			//Hormones are being slipped into its food, it will give birth suddenly and rapidly this week//
+		<<elseif ($activeSlave.preg > 38) && ($activeSlave.broodmother == 0) && ($activeSlave.labor == 0)>>
+			[[Induce labor|Slave Interact][$activeSlave.labor = 1,$activeSlave.induce = 1,$birthee = 1]]
+			| [[Give it a cesarean section|csec]]
+		<<elseif ($activeSlave.broodmother > 0)>>
+			<<if ($activeSlave.preg > 37)>>
+				[[Induce mass childbirth|BirthStorm]] | [[Begin implant shutdown|Slave Interact][$activeSlave.broodmotherCountDown = 37]]
+			<</if>>
+		<<elseif ($activeSlave.preg > 35)>>
+			[[Give it a cesarean section|csec]]
+		<<elseif ($activeSlave.preg > 0) && $activeSlave.breedingMark == 1 && $activeSlave.pregSource == -1>>
+			//You are forbidden from aborting an elite child//
+		<<elseif ($activeSlave.preg > 0)>>
+			[[Abort its pregnancy|Abort]]
+		<</if>>
 	<</if>>
 <</if>>
 <<if ($activeSlave.pregKnown == 1) && ($pregSpeedControl == 1) && ($activeSlave.breedingMark != 1) && ($activeSlave.indentureRestrictions < 1) && ($activeSlave.broodmother == 0)>>
-- 
GitLab