From e2fd002d44b62dbb41a6b4492c3b633242d78e51 Mon Sep 17 00:00:00 2001
From: x <okp57855@psoxs.com>
Date: Wed, 13 Feb 2019 01:01:42 +1300
Subject: [PATCH] Inital code

---
 src/pregmod/csec.tw | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/pregmod/csec.tw b/src/pregmod/csec.tw
index a16ebe2df1a..27fbaaea079 100644
--- a/src/pregmod/csec.tw
+++ b/src/pregmod/csec.tw
@@ -213,15 +213,14 @@ Performing a cesarean section is trivial for the remote surgery to carry out. $a
 		<<set _lostBabies = 1, _call = 1>>
 		<<= BirthDestinationText("Sold",$activeSlave)>>
 	<<elseif $universalRulesChildrenBecomeBreeders > 0 && $arcologies[0].FSRepopulationFocus > 40 && $DefaultBirthDestination === "individually decided fates">>
-		<<set _lostBabies = 1>>
-		<<= BirthDestinationText("Orphanage",$activeSlave)>>
-		<<set $breederOrphanageTotal += _curBabies>>
+		<<set _lostBabies = 1, _call = 0, $breederOrphanageTotal += _curBabies>>
+		<<= BirthDestinationText("Breeder",$activeSlave)>>
 	<</if>>
 	<<if _lostBabies != 1 && $DefaultBirthDestination === "individually decided fates">>
 		<br><br>
 		<<link '...sent to a slave orphanage.'>>
 			<<replace #_disposition>>
-				<<set $slaveOrphanageTotal += _curBabies>>
+				<<set $slaveOrphanageTotal += _curBabies, _call = 0>>
 				<<= BirthDestinationText("Orphanage",$activeSlave)>>
 			<</replace>>
 			<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
@@ -229,8 +228,8 @@ Performing a cesarean section is trivial for the remote surgery to carry out. $a
 		<<if $arcologies[0].FSRepopulationFocus > 40>>
 			<br><<link '...sent to a breeder school.'>>
 				<<replace #_disposition>>
+					<<set $breederOrphanageTotal += _curBabies, _call = 0>>
 					<<= BirthDestinationText("Breeder",$activeSlave)>>
-					<<set $breederOrphanageTotal += _curBabies>>
 				<</replace>>
 				<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
 			<</link>>
@@ -238,16 +237,16 @@ Performing a cesarean section is trivial for the remote surgery to carry out. $a
 		<</if>>
 		<br><<link '...sent to a citizen school.'>>
 			<<replace #_disposition>>
+				<<set $activeSlave.devotion += 4, $citizenOrphanageTotal += _curBabies, _call = 0>>
 				<<= BirthDestinationText("Citizen",$activeSlave)>>
-				<<set $activeSlave.devotion += 4, $citizenOrphanageTotal += _curBabies>>
 			<</replace>>
 			<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
 		<</link>>
 		//Will cost <<print cashFormat(100)>> weekly//
 		<br><<link '...sent to be raised privately.'>>
 			<<replace #_disposition>>
+				<<set $activeSlave.devotion += 6, $privateOrphanageTotal += _curBabies, _call = 0>>
 				The <<= BirthDestinationText("Private",$activeSlave)>>
-				<<set $activeSlave.devotion += 6, $privateOrphanageTotal += _curBabies>>
 			<</replace>>
 			<<set $nextButton = "Back">><<UpdateNextButton>> /* unlock Continue button */
 		<</link>>
-- 
GitLab