From 62af069ea272d9f90fd65d7752c09dc12a7b39cd Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Tue, 13 Nov 2018 04:36:38 -0500
Subject: [PATCH] beta BC code

---
 devNotes/twine JS.txt | 7 ++++++-
 src/js/wombJS.tw      | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/devNotes/twine JS.txt b/devNotes/twine JS.txt
index 4c0c6bd21af..911e0a973e5 100644
--- a/devNotes/twine JS.txt	
+++ b/devNotes/twine JS.txt	
@@ -10458,7 +10458,12 @@ window.WombInit = function(actor) {
 	}
 
 	//backward compatibility setup. Fully accurate for normal pregnancy only.
-	if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother == 0) {
+	if (actor.womb.length > 0 && actor.broodmother == 0 && actor.womb[0].genetics == undefined) {
+		var i;
+		for (i=0; i<actor.womb.length; i++) {
+			ft.genetics = generateGenetics(actor.ID, ft.fatherID, i+1);
+		}
+	} else if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother == 0) {
 		WombImpregnate(actor, actor.pregType, actor.pregSource, actor.preg);
 	} else if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother > 0 && actor.broodmotherOnHold < 1) {
 		//sorry but for already present broodmothers it's impossible to calculate fully, aproximation used.
diff --git a/src/js/wombJS.tw b/src/js/wombJS.tw
index eac3bdf8d3b..ed7437f55f1 100644
--- a/src/js/wombJS.tw
+++ b/src/js/wombJS.tw
@@ -45,7 +45,12 @@ window.WombInit = function(actor) {
 	}
 
 	//backward compatibility setup. Fully accurate for normal pregnancy only.
-	if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother == 0) {
+	if (actor.womb.length > 0 && actor.broodmother == 0 && actor.womb[0].genetics == undefined) {
+		var i;
+		for (i=0; i<actor.womb.length; i++) {
+			ft.genetics = generateGenetics(actor.ID, ft.fatherID, i+1);
+		}
+	} else if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother == 0) {
 		WombImpregnate(actor, actor.pregType, actor.pregSource, actor.preg);
 	} else if (actor.womb.length == 0 && actor.pregType != 0 && actor.broodmother > 0 && actor.broodmotherOnHold < 1) {
 		//sorry but for already present broodmothers it's impossible to calculate fully, aproximation used.
-- 
GitLab