From 0219c557daca8639a7c0346f3bcd2b1e4be6045d Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Fri, 17 Aug 2018 00:38:07 -0400
Subject: [PATCH] club ads pregnancy toggle respect

---
 src/uncategorized/clubReport.tw | 124 ++++++++++++++++----------------
 1 file changed, 63 insertions(+), 61 deletions(-)

diff --git a/src/uncategorized/clubReport.tw b/src/uncategorized/clubReport.tw
index 976ae4b7875..9077fb9c932 100644
--- a/src/uncategorized/clubReport.tw
+++ b/src/uncategorized/clubReport.tw
@@ -649,70 +649,72 @@
 		<</if>>
 	<</if>>
 
-	<br>&nbsp;&nbsp;&nbsp;&nbsp;
-	<<if ($clubAdsSpending > 0)>>
-		<<if $clubAdsPreg == 1>>
-			Its advertisements feature girls that are clearly pregnant.
-			<<set _ads = 1>>
-		<<elseif $clubAdsPreg == -1>>
-			Its advertisements feature girls that have flat, usually firm, bellies.
-			<<set _ads = -1>>
-		<<else>>
-			Its advertisements feature some girls that are pregnant.
-			<<set _ads = 0>>
+	<<if $seePreg == 1>>
+		<br>&nbsp;&nbsp;&nbsp;&nbsp;
+		<<if ($clubAdsSpending > 0)>>
+			<<if $clubAdsPreg == 1>>
+				Its advertisements feature girls that are clearly pregnant.
+				<<set _ads = 1>>
+			<<elseif $clubAdsPreg == -1>>
+				Its advertisements feature girls that have flat, usually firm, bellies.
+				<<set _ads = -1>>
+			<<else>>
+				Its advertisements feature some girls that are pregnant.
+				<<set _ads = 0>>
+			<</if>>
 		<</if>>
-	<</if>>
-	<<if ($arcologies[0].FSRepopulationFocus != "unset") && ($arcologies[0].FSRepopulationFocus >= 80)>>
-		Most customers prefer their girls rounded with child.
-		<<set _pref = 1>>
-	<<elseif  ($arcologies[0].FSRestart != "unset") && ($arcologies[0].FSRestart >= 80) >>
-		Most customers prefer girls that aren't gravid.
-		<<set _pref = -1>>
-	<<else>>
-    	<<if ($arcologies[0].FSRepopulationFocus == "unset") && ($arcologies[0].FSRestart == "unset")>>
-        	<<if ($clubAdsSpending == 0) || ($clubAdsPreg == 0)>>
-        		<<set _possibleBonuses++>>
-        		<<if (_pregYes > 0) && (_pregNo > 0) && (Math.abs(_pregYes-_pregNo) <= (_DL/3))>>
-        		<<set $repGain += _DL*random(5,10), $clubBonuses++>>
-        		There is a @@.green;wide@@ selection of slaves with a variety of middles working the club.
-        		<</if>>
-        	<</if>>
-    	<</if>>
-		Most customers don't have preferences for either big-bellied or flat-bellied girls.
-		<<set _pref = 0>>
-    <</if>>
-    <<if (_pregNo > (_DL/2))>>
-		<<set _girls = -1>>
-		Most of the slaves in the club sport flat bellies.
-	<<elseif (_pregYes > (_DL/2))>>
-		<<set _girls = 1>>
-		Most of the slaves in the club sport gravid middles.
-	<<else>>
-		<<set _girls = 0>>
-		The slaves in the club vary in belly type.
-	<</if>>
-	<<if (_pref == 0)>> /*customers don't care*/
-	<<elseif ($clubAdsSpending > 0)>>
-		<<if (_ads == _pref) && (_girls == _ads)>>
-			<<set _adsIncome = _DL*random(20,30), $cash += _adsIncome, $facility.club.adsIncome += _adsIncome, _clubBonuses++>>
-			Its advertising for <<if _ads == 1>>pregnant <<elseif _ads == -1>>flat-bellied <</if>>girls matched most customers' preferences and the girls in the club matched its advertisements. Your @@.green;reputation@@ increased slightly as a result.
-			<<set $rep += random(_minBonus,_maxBonus)>>
-		<<elseif (_ads == _pref) && (_girls != _ads)>>
-			Its advertising for <<if _ads == 1>>pregnant <<elseif _ads == -1>>flat-bellied <</if>>girls matched most customers preferences, but the girls in the club did not. Your @@.red;reputation@@ dropped slightly as a result.
-			<<set $rep -= random(_minBonus,_maxBonus)>>
-		<<elseif (_girls == _pref) && (_girls != _ads)>>
-			The <<if _girls == 1>>pregnant <<elseif _girls == -1>>flat-bellied <</if>>girls in the club did not match its advertisements, but since the girls in the club matched most customers preferences for <<if _pref == 1>>fecund <<elseif _pref == -1>>flat-bellied <</if>>girls, your reputation was not affected.
-		<<elseif (_girls != _pref)>>
-			Some customers were put off since the <<if _girls == 1>>pregnant <<elseif _girls == -1>>flat-bellied <</if>>girls in the club did not match their preferences for <<if _pref == 1>>fecund <<elseif _pref == -1>>flat-bellied <</if>>girls. Your @@.red;reputation@@ dropped slightly as a result.
-			<<set $rep -= random(_minBonus,_maxBonus)>>
+		<<if ($arcologies[0].FSRepopulationFocus != "unset") && ($arcologies[0].FSRepopulationFocus >= 80)>>
+			Most customers prefer their girls rounded with child.
+			<<set _pref = 1>>
+		<<elseif  ($arcologies[0].FSRestart != "unset") && ($arcologies[0].FSRestart >= 80) >>
+			Most customers prefer girls that aren't gravid.
+			<<set _pref = -1>>
+		<<else>>
+			<<if ($arcologies[0].FSRepopulationFocus == "unset") && ($arcologies[0].FSRestart == "unset")>>
+				<<if ($clubAdsSpending == 0) || ($clubAdsPreg == 0)>>
+					<<set _possibleBonuses++>>
+					<<if (_pregYes > 0) && (_pregNo > 0) && (Math.abs(_pregYes-_pregNo) <= (_DL/3))>>
+					<<set $repGain += _DL*random(5,10), $clubBonuses++>>
+					There is a @@.green;wide@@ selection of slaves with a variety of middles working the club.
+					<</if>>
+				<</if>>
+			<</if>>
+			Most customers don't have preferences for either big-bellied or flat-bellied girls.
+			<<set _pref = 0>>
 		<</if>>
-	<<else>>	
-		<<if (_girls == _pref)>>
-			The <<if _girls == 1>>pregnant <<elseif _girls == -1>>flat-bellied <</if>>girls in the club match most customers' preferences for <<if _pref == 1>>fecund <<elseif _pref == -1>>flat-bellied <</if>>girls. Your @@.green;reputation@@ increased slightly as a result.
-			<<set $rep += random(_minBonus,_maxBonus)>>
+		<<if (_pregNo > (_DL/2))>>
+			<<set _girls = -1>>
+			Most of the slaves in the club sport flat bellies.
+		<<elseif (_pregYes > (_DL/2))>>
+			<<set _girls = 1>>
+			Most of the slaves in the club sport gravid middles.
 		<<else>>
-			Some customers were put off since the <<if _girls == 1>>pregnant <<elseif _girls == -1>>flat-bellied <</if>>girls in the club did not match their preferences for <<if _pref == 1>>fecund <<elseif _pref == -1>>flat-bellied <</if>>girls. Your @@.red;reputation@@ dropped slightly as a result.
-			<<set $rep -= random(_minBonus,_maxBonus)>>
+			<<set _girls = 0>>
+			The slaves in the club vary in belly type.
+		<</if>>
+		<<if (_pref == 0)>> /*customers don't care*/
+		<<elseif ($clubAdsSpending > 0)>>
+			<<if (_ads == _pref) && (_girls == _ads)>>
+				<<set _adsIncome = _DL*random(20,30), $cash += _adsIncome, $facility.club.adsIncome += _adsIncome, _clubBonuses++>>
+				Its advertising for <<if _ads == 1>>pregnant <<elseif _ads == -1>>flat-bellied <</if>>girls matched most customers' preferences and the girls in the club matched its advertisements. Your @@.green;reputation@@ increased slightly as a result.
+				<<set $rep += random(_minBonus,_maxBonus)>>
+			<<elseif (_ads == _pref) && (_girls != _ads)>>
+				Its advertising for <<if _ads == 1>>pregnant <<elseif _ads == -1>>flat-bellied <</if>>girls matched most customers preferences, but the girls in the club did not. Your @@.red;reputation@@ dropped slightly as a result.
+				<<set $rep -= random(_minBonus,_maxBonus)>>
+			<<elseif (_girls == _pref) && (_girls != _ads)>>
+				The <<if _girls == 1>>pregnant <<elseif _girls == -1>>flat-bellied <</if>>girls in the club did not match its advertisements, but since the girls in the club matched most customers preferences for <<if _pref == 1>>fecund <<elseif _pref == -1>>flat-bellied <</if>>girls, your reputation was not affected.
+			<<elseif (_girls != _pref)>>
+				Some customers were put off since the <<if _girls == 1>>pregnant <<elseif _girls == -1>>flat-bellied <</if>>girls in the club did not match their preferences for <<if _pref == 1>>fecund <<elseif _pref == -1>>flat-bellied <</if>>girls. Your @@.red;reputation@@ dropped slightly as a result.
+				<<set $rep -= random(_minBonus,_maxBonus)>>
+			<</if>>
+		<<else>>	
+			<<if (_girls == _pref)>>
+				The <<if _girls == 1>>pregnant <<elseif _girls == -1>>flat-bellied <</if>>girls in the club match most customers' preferences for <<if _pref == 1>>fecund <<elseif _pref == -1>>flat-bellied <</if>>girls. Your @@.green;reputation@@ increased slightly as a result.
+				<<set $rep += random(_minBonus,_maxBonus)>>
+			<<else>>
+				Some customers were put off since the <<if _girls == 1>>pregnant <<elseif _girls == -1>>flat-bellied <</if>>girls in the club did not match their preferences for <<if _pref == 1>>fecund <<elseif _pref == -1>>flat-bellied <</if>>girls. Your @@.red;reputation@@ dropped slightly as a result.
+				<<set $rep -= random(_minBonus,_maxBonus)>>
+			<</if>>
 		<</if>>
 	<</if>>
 
-- 
GitLab