From 91c10032cb48b09e6a6790c3136f4add8bbc9d5f Mon Sep 17 00:00:00 2001
From: Anu <anulithic@gmail.com>
Date: Tue, 6 Dec 2022 19:06:00 -0800
Subject: [PATCH] JESD Breeding Deal: give slave actual pregnancy, fix
 backwards pregWeek

---
 src/events/JE/jeSlaveDisputeBreedingDeal.js | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/events/JE/jeSlaveDisputeBreedingDeal.js b/src/events/JE/jeSlaveDisputeBreedingDeal.js
index 521f0125e32..232b333bb4a 100644
--- a/src/events/JE/jeSlaveDisputeBreedingDeal.js
+++ b/src/events/JE/jeSlaveDisputeBreedingDeal.js
@@ -35,7 +35,11 @@ App.Events.JESlaveDisputeBreedingDeal = class JESlaveDisputeBreedingDeal extends
 		slave.hips = 2;
 		slave.boobs = random(4, 6) * 100;
 		if (V.seePreg === 1) {
-			slave.belly = 18000;
+			slave.preg = random(36, 40);
+			slave.pregType = 1;
+			slave.pregWeek = slave.preg;
+			slave.pregKnown = 1;
+			SetBellySize(slave);
 		}
 		const {he, his, girl} = getPronouns(slave);
 
@@ -44,10 +48,9 @@ App.Events.JESlaveDisputeBreedingDeal = class JESlaveDisputeBreedingDeal extends
 		r.push(`A small-time slave breeder is accusing a customer of reneging on their agreement. For the last nine months, one of his best breeders has been busy growing his client's future slave and now`);
 		if (V.seePreg === 1) {
 			r.push(`that ${he}'s ready to give birth,`);
-			slave.belly = 0;
-			slave.pregWeek = -3;
 		} else {
 			r.push(`that it's born,`);
+			slave.pregWeek = -3;
 		}
 		r.push(`he's refusing to transfer the funds, placing the entire operation in jeopardy.`);
 		App.Events.addParagraph(node, r);
@@ -87,7 +90,7 @@ App.Events.JESlaveDisputeBreedingDeal = class JESlaveDisputeBreedingDeal extends
 			let r = [];
 			r.push(`You settle the dispute in favor of the slave breeder, and against the prominent accuser, by declaring that the standard paternity test will suffice.`);
 			if (V.seePreg === 1) {
-				r.push(`As if on queue, the ${girl}'s water breaks and soaks ${his} pants. The call ends to the sight of ${his} crotch bulging as ${his} child is born into ${his} clothing.`);
+				r.push(`As if on cue, the ${girl}'s water breaks and soaks ${his} pants. The call ends to the sight of ${his} crotch bulging as ${his} child is born into ${his} clothing.`);
 			}
 			r.push(`While he is satisfied with his future slave, he speaks <span class="red">openly</span> in public about how you were so quick to use cheap services to settle the claim instead of listening to his requests. The breeder, however, passes a <span class="green">good word</span> around the industry that slavers trading with your arcology can expect to be protected from abusive claims.`);
 			V.arcologies[0].prosperity += 5;
-- 
GitLab