From 0853be23e29ca198526fe628e40835fe6a6bf2c1 Mon Sep 17 00:00:00 2001
From: sensei <nobody@slash.goat>
Date: Mon, 1 Jan 2018 18:14:53 -0700
Subject: [PATCH] baby sex based on seeDicks

---
 src/pregmod/sePlayerBirth.tw | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/pregmod/sePlayerBirth.tw b/src/pregmod/sePlayerBirth.tw
index 286a16293e0..2f579c3e612 100644
--- a/src/pregmod/sePlayerBirth.tw
+++ b/src/pregmod/sePlayerBirth.tw
@@ -50,7 +50,7 @@ PC.pregSource documentation
 <</if>>
 
 <<if $PC.pregSource == -1>>
-	<<set $babyGender = either(1,2)>>
+	<<set $babyGender = Math.floor(Math.random()*100) < $seeDicks ? 2 : 1>>
 	Since you are heavily pregnant with a child of the Societal Elite, you are quickly taken to the finest clinic the arcology has to offer. After a quick sedation, you awake to find your belly no longer round with child; that and a note stating your next breeding partner and a notice that <<print cashFormat(50000)>> has been added to your account. The Societal Elite are @@.green;very pleased@@ at their new addition to the ranks. You just wish you could have seen your <<if $PC.pregType == 1>>little <<if $babyGender == 1>>girl<<else>>boy<</if>> before they took <<if $babyGender == 1>>her<<else>>him<</if>><<else>>babies before they took them<</if>> away to be raised into a proper member of the future world.
 	<<if $PC.ovaryAge >= 55 && $playerAging != 0>>
 		You are getting too old to have children; you feel like <<if $PC.pregType > 1>>they<<else>>this<</if>> may be your last.
@@ -100,7 +100,7 @@ While sitting at your desk planning your day, @@.lime;your water breaks,@@ thoro
 <br><br>
 You arrange yourself to give birth, relaxing until your body urges you to begin bearing down and pushing your child into the world.<<if _concubinePresent == 1>>$Concubine.slaveName settles in beside you, one hand soothing your contraction wracked middle and the other <<if $PC.dick == 1>>stroking your hardening dick<<else>>teasing your stiffening clit<</if>>.<</if>>
 <<if $badBirth > random(1,100)>> /* shits going wrong */
-	<<set $babyGender = either(1,2)>>
+	<<set $babyGender = Math.floor(Math.random()*100) < $seeDicks ? 2 : 1>>
 	<<if $Nurse != 0>>
 		You keep pushing and pushing, but your child is not coming out.<<if _concubinePresent == 1>> $Concubine.slaveName shifts to massaging your gravid middle<<if canTalk($Concubine)>>, while whispering words of encouragement into your ear<</if>>. Until $Nurse.slaveName shoos her away so she can take over and get this baby out of you.<</if>> $Nurse.slaveName was prepared for this possibility, adjusts your position and timings, and before long is holding your @@.lime;new baby <<if $babyGender == 1>>girl<<else>>boy<</if>>@@ in her arms.
 		<<if $PC.pregType == 8>>
@@ -213,7 +213,7 @@ You arrange yourself to give birth, relaxing until your body urges you to begin
 		<<set $gameover = "birth complications", $nextButton = "Have to keep trying!", $nextLink = "Gameover">>
 	<</if>>
 <<else>>
-	<<set $babyGender = either(1,2)>>
+	<<set $babyGender = Math.floor(Math.random()*100) < $seeDicks ? 2 : 1>>
 	<<if $Nurse != 0>>
 		Under $Nurse.slaveName's guidance, childbirth is a breeze for you.
 		<<if $PC.pregType == 1>>
@@ -473,7 +473,7 @@ You arrange yourself to give birth, relaxing until your body urges you to begin
 			<<set $PC.reservedChildren-->>
 			<<set $reservedChildren-->>
 		<</if>>
-		<<set $babyGender = either(1,2)>>
+	<<set $babyGender = Math.floor(Math.random()*100) < $seeDicks ? 2 : 1>>
 		
 	<</for>>
 
-- 
GitLab