From cd4583c5ab970fc0d002bdd78591a6a1f27b1c83 Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Tue, 14 Apr 2020 17:51:26 -0400
Subject: [PATCH] Incubator text cleaning

---
 Changelog.txt                  |  1 +
 src/pregmod/incubator.tw       | 14 +++++++-------
 src/pregmod/incubatorReport.tw | 11 ++++++++---
 src/pregmod/theBlackMarket.tw  |  2 +-
 4 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/Changelog.txt b/Changelog.txt
index 3b34fb8c976..568926b7313 100644
--- a/Changelog.txt
+++ b/Changelog.txt
@@ -3,6 +3,7 @@ Pregmod
 0.10.7.1-3.4.x
 
 	-added incubator upgrade to improve young slave pregnancy adaptation
+	-added incubator setting to generate husks for bodyswapping
 	-added nipple growth drugs
 	-various fixes and cleaning
 
diff --git a/src/pregmod/incubator.tw b/src/pregmod/incubator.tw
index 3562e04a232..07abb3461cb 100644
--- a/src/pregmod/incubator.tw
+++ b/src/pregmod/incubator.tw
@@ -335,15 +335,15 @@ Target age for release: <<textbox "$targetAge" $targetAge "Incubator">> [[Minimu
 	<<else>>
 		The highly controlled environment inside incubation tube coupled with the greatly accelerated growth process is the perfect opportunity to push the boundaries of a body's ability to sustain pregnancy. This will include injections of specialized serums and mechanical manipulation of their reproductive system through a special set of manipulators, probes, nozzles and syringes supervised by a powerful monitoring program. Costly to maintain.<br>
 		<<if $incubatorUpgradeReproduction < 1>> /* Now with reports - what is lacking for construction */
-			Incubator lacks advanced monitoring and hormone injection systems. Construction not possible.
+			$incubatorNameCaps lacks advanced monitoring and hormone injection systems. Construction not possible.
 		<<elseif $incubatorUpgradeOrgans < 1>>
-			Incubator lacks the ability to extract tissue samples. Construction not possible.
+			$incubatorNameCaps lacks the ability to extract tissue samples. Construction not possible.
 		<<elseif $dispensaryUpgrade < 1>>
-			Incubator lacks connection with advanced pharmaceutical fabricator. Cutting-edge targeted serums production needed as integral part. Construction not possible.
+			$incubatorNameCaps lacks a connection to an advanced pharmaceutical fabricator. Cutting-edge targeted serums production needed as integral part. Construction not possible.
 		<<elseif $bellyImplants < 1>>
-			Incubator lacks connection with implant manufacturing as fillable abdominal implants technology used as integral part. Construction not possible.
+			$incubatorNameCaps lacks a connection with an implant manufacturing to construct fillable abdominal implants to simulate expansion. Construction not possible.
 		<<elseif $incubatorUpgradeGrowthStims < 1>>
-			Incubator lacks advanced monitoring and stimulant injection systems. Construction not possible.
+			$incubatorNameCaps lacks advanced monitoring and stimulant injection systems. Construction not possible.
 		<<else>>
 			[[Manufacture and install this subsystem|Incubator][cashX(forceNeg(Math.trunc(2000000*$upgradeMultiplierArcology)), "capEx"), $incubatorUpgradePregAdaptation = 1]] //Costs <<print cashFormat(Math.trunc(2000000*$upgradeMultiplierArcology))>> and will increase upkeep costs//
 		<</if>>
@@ -467,7 +467,7 @@ Target age for release: <<textbox "$targetAge" $targetAge "Incubator">> [[Minimu
 				<</if>>
 			<</if>>
 			<<if ($incubatorPregAdaptationSetting == 1 && $tanks[$i].genes == "XX") || ($incubatorPregAdaptationSetting == 2 && $tanks[$i].genes == "XY") || $incubatorPregAdaptationSetting == 3 >>
-				There are probes and tubes inserted inside $his reproductive organs, as the Incubator works on them.
+				There are probes and tubes inserted inside $his reproductive organs so $incubatorName may work on them.
 				<<set _safecc = ($tanks[$i].pregAdaptation - 5) * 2000>>
 				<<if _safecc > 300000>> /* Some bigger size descriptions may be unreachable by normal game mechanics, so they are here just in case.*/
 					$His bloated form looks more like an overinflated beachball made of the overstretched skin of $his belly with $his relative tiny body attached to its side. $He is completely dominated by it now. The process has gone too far, so $his body can't maintain its form with the belly as part of abdominal cavity. Now $his skin, tissues and muscles have stretched enough for $his belly to expand outside of any physical boundaries and appear more an attachment to $his body, rather than part of it. 
@@ -741,7 +741,7 @@ Target age for release: <<textbox "$targetAge" $targetAge "Incubator">> [[Minimu
 			Pregnancy adaptation programmed to intensive procedures. Up to octuplet pregnancy should be possible for the subjects. Warning! Side effects may occur to health and mental condition.
 			[[Standart|Incubator][$incubatorPregAdaptationPower = 0]] | [[Advanced|Incubator][$incubatorPregAdaptationPower = 1]] | [[Extreme|Incubator][$incubatorPregAdaptationPower = 3]]
 		<<elseif $incubatorPregAdaptationPower == 3>>
-			Pregnancy adaptation programmed to extreme procedures. Normally unusutainable pregnancies can be possible for the some subjects. Actual capacity may vary with genetic and other individal conditions. WARNING! Extreme side effects may occur to health and mental condition!
+			Pregnancy adaptation programmed to extreme procedures. Normally unsustainable pregnancies may be possible for some subjects. Actual capacity will vary with genetic and other individal conditions. WARNING! Extreme side effects may occur to health and mental condition!
 			[[Standart|Incubator][$incubatorPregAdaptationPower = 0]] | [[Advanced|Incubator][$incubatorPregAdaptationPower = 1]] | [[Intensive|Incubator][$incubatorPregAdaptationPower = 2]]
 		<<else>>
 			Pregnancy adaptation programmed to standard procedures. Normal pregnancy should be safe for subjects.
diff --git a/src/pregmod/incubatorReport.tw b/src/pregmod/incubatorReport.tw
index a027fd87b36..109137ed115 100644
--- a/src/pregmod/incubatorReport.tw
+++ b/src/pregmod/incubatorReport.tw
@@ -767,8 +767,13 @@
 				<<set $tanks[_inc].preg = -2>>
 				It caused @@.red;reproductive damage@@ when excessive meddling damaged an organ.
 			<<case 2>>
-				<<set $tanks[_inc].preg = -3>>
-				It caused @@.red;severe reproductive damage@@ when excessive hormones shut down the associated organs. To avoid further damage corrupted organs forced to be removed.
+				<<if $tanks[_inc].ovaries == 1 || $tanks[_inc].mpreg == 1>>
+					<<set $tanks[_inc].preg = -3>>
+				<</if>>
+				<<if $tanks[_inc].balls > 0>>
+					<<set $tanks[_inc].ballType = "sterile">>
+				<</if>>
+				It caused @@.red;severe reproductive damage@@ when excessive hormones shut down the associated organs.
 			<<case 3>>
 				<<set $tanks[_inc].lactation = 1>>
 				It has @@.orange;triggered a hormonal disorder,@@ causing $his breast glands begin producing milk.
@@ -790,7 +795,7 @@
 				An unexpected shift in hormones encouraged @@.green;explosive breast growth@@ before it could be corrected.
 			<<case 9>>
 				<<set $tanks[_inc].hips = 3>>
-				A malfunction in the skeletal reconstruction software caused it to overwiden  @@.green;overwiden $his hips.@@
+				A malfunction in the skeletal reconstruction software caused it to @@.green;overwiden $his hips.@@
 			<</switch>>
 		<</if>>
 	<</if>>
diff --git a/src/pregmod/theBlackMarket.tw b/src/pregmod/theBlackMarket.tw
index a819b1cb683..97d576886ee 100644
--- a/src/pregmod/theBlackMarket.tw
+++ b/src/pregmod/theBlackMarket.tw
@@ -300,7 +300,7 @@ He gestures to a door in the back of the stall. "The good shit's back there<<if
 					<<if $cash >= 120000 && $arcologies[0].FSRepopulationFocus < 60>>
 						[[Purchase documents regarding an incubator pregnancy adaptation module|The Black Market][cashX(-120000, "capEx"), $BlackmarketPregAdaptation = 1, _dump = $merchantIllegalWares.delete("BlackmarketPregAdaptation")]] //@@.yellowgreen;<<print cashFormat(120000)>>.@@//
 					<<elseif $cash < 120000>>
-							You cannot afford the asking price of @@.red;<<print cashFormat(120000)>>@@ for documentation on an incubator pregnancy adaptation module.
+						You cannot afford the asking price of @@.red;<<print cashFormat(120000)>>@@ for documentation on an incubator pregnancy adaptation module.
 					<</if>>
 					<br>"I'm not sure about this... but you still might be interested. Let me just begin with a story... Some time ago, there was a man with very pregnant girl in tow. Not so unusual in these days, but what made it really stand out was the girl's age — she couldn't have been any older then six! And looked ready to birth full sized triplets, no less. To top it all off, she did not look stressed by it at all, which was just amazing, given her size. The man said that he invented some sort of subsystem for those modern incubators to prep the occupant's body in a special way, and that this girl was a test subject. I do not understand much about this technical stuff, but the documentation seems legit enough. If you like, I can sell it to you; no guarantees though, on either the construction or the results."
 					<<if $arcologies[0].FSRepopulationFocus >= 60>>
-- 
GitLab