From 939563ffbbceb8194d1ce26d14c6eb050bf2fd5c Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Tue, 31 Oct 2017 14:59:30 -0400
Subject: [PATCH] Selfcest preg catch.

---
 src/pregmod/generateChild.tw | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/src/pregmod/generateChild.tw b/src/pregmod/generateChild.tw
index 3bc2d0c0ac5..c7435e9cf2e 100644
--- a/src/pregmod/generateChild.tw
+++ b/src/pregmod/generateChild.tw
@@ -27,9 +27,14 @@
 	<<if $PC.pregSource < 1>>
 		<<set $activeSlave.slaveName = "Your daughter">>
 		<<set $activeSlave.mother = -1>>
-		<<set $activeSlave.father = $missingParentID>>
-		<<set $missingParentID-->>
-		<<set $activeSlave.nationality = "Stateless">>
+		<<if $PC.pregSource != -6>>
+			<<set $activeSlave.father = $missingParentID>>
+			<<set $missingParentID-->>
+			<<set $activeSlave.nationality = "Stateless">>
+		<<else>>
+			<<set $activeSlave.father = -1>>
+			<<set $activeSlave.nationality = $PC.nationality>>
+		<</if>>
 		<<if $PC.pregSource == -2 && $arcologies[0].FSSupremacist != "unset">>
 			<<set $activeSlave.race = either($PC.race, $arcologies[0].FSSubjugationistRace, $arcologies[0].FSSubjugationistRace)>>
 			<<if $PC.race != $arcologies[0].FSSubjugationistRace>>
@@ -153,9 +158,14 @@
 	<<if $PC.pregSource < 1>>
 		<<set $activeSlave.slaveName = "Your son">>
 		<<set $activeSlave.mother = -1>>
-		<<set $activeSlave.father = $missingParentID>>
-		<<set $missingParentID-->>
-		<<set $activeSlave.nationality = "Stateless">>
+		<<if $PC.pregSource != -6>>
+			<<set $activeSlave.father = $missingParentID>>
+			<<set $missingParentID-->>
+			<<set $activeSlave.nationality = "Stateless">>
+		<<else>>
+			<<set $activeSlave.father = -1>>
+			<<set $activeSlave.nationality = $PC.nationality>>
+		<</if>>
 		<<if $PC.pregSource == -2 && $arcologies[0].FSSupremacist != "unset">>
 			<<set $activeSlave.race = either($PC.race, $arcologies[0].FSSubjugationistRace, $arcologies[0].FSSubjugationistRace)>>
 			<<if $PC.race != $arcologies[0].FSSubjugationistRace>>
-- 
GitLab