From fb6093696a5a89c0533a872c1d16fae06cea4d01 Mon Sep 17 00:00:00 2001
From: Skriv <skrivelese@gmail.com>
Date: Sun, 31 Mar 2019 04:34:09 +0200
Subject: [PATCH] revert generatePuberty change

---
 src/js/slaveGenerationJS.js | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/js/slaveGenerationJS.js b/src/js/slaveGenerationJS.js
index a54d865358c..f9359ebaf05 100644
--- a/src/js/slaveGenerationJS.js
+++ b/src/js/slaveGenerationJS.js
@@ -1482,6 +1482,14 @@ window.generatePronouns = /** @param {App.Entity.SlaveState} slave*/ function ge
 };
 
 window.generatePuberty = function(slave) {
-	slave.pubertyXX = ((slave.ovaries === 1 || slave.mpreg === 1) && slave.physicalAge >= slave.pubertyAgeXX) ? 1 : 0;
-	slave.pubertyXY = (slave.balls > 0 && slave.ballType !== "sterile" && slave.physicalAge >= slave.pubertyAgeXY) ? 1 : 0;
+	if ((slave.ovaries === 1 || slave.mpreg === 1) && slave.physicalAge >= slave.pubertyAgeXX) {
+		slave.pubertyXX = 1;
+	} else {
+		slave.pubertyXX = 0;
+	}
+	if (slave.balls > 0 && slave.ballType !== "sterile" && slave.physicalAge >= slave.pubertyAgeXY) {
+		slave.pubertyXY = 1;
+	} else {
+		slave.pubertyXY = 0;
+	}
 };
-- 
GitLab