From 874497690ad8a153c2b7f5237d1e18ebc65dbdcb Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Mon, 27 Apr 2020 20:59:06 -0700
Subject: [PATCH] Debranch

---
 src/js/generateGenetics.js | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/js/generateGenetics.js b/src/js/generateGenetics.js
index 4b4ff267077..520fc57fc63 100644
--- a/src/js/generateGenetics.js
+++ b/src/js/generateGenetics.js
@@ -1220,11 +1220,7 @@ globalThis.generateChild = function(mother, ova, destination) {
 			mature: 0
 		};
 
-		if (genes.gender === "XX") {
-			child = GenerateNewSlave("XX", fixedAge);
-		} else {
-			child = GenerateNewSlave("XY", fixedAge);
-		}
+		child = GenerateNewSlave(genes.gender, fixedAge);
 		setSlaveName();
 		setSurname();
 
-- 
GitLab