From b14fdaaebaf45dd86d4ee799934aba2a8f8471dd Mon Sep 17 00:00:00 2001
From: Anu <anulithic@gmail.com>
Date: Mon, 4 Sep 2023 23:34:36 -0700
Subject: [PATCH] Stop incubator slaves being released with half-puberties

---
 src/endWeek/reports/incubatorReport.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/endWeek/reports/incubatorReport.js b/src/endWeek/reports/incubatorReport.js
index 2de9eb4febe..a060753778b 100644
--- a/src/endWeek/reports/incubatorReport.js
+++ b/src/endWeek/reports/incubatorReport.js
@@ -260,6 +260,7 @@ App.EndWeek.incubatorReport = function() {
 					r.push(`Combined with the abundant food provided to ${him}, ${his} body grows rapidly.`);
 					if (tank.ovaries === 1) {
 						tank.pubertyXX = 1;
+						tank.pubertyAgeXX = tank.physicalAge - 1;
 						if (tank.hormoneBalance < 500) {
 							tank.hormoneBalance += 100;
 						}
@@ -335,6 +336,7 @@ App.EndWeek.incubatorReport = function() {
 						}
 					} else if (tank.balls > 0) {
 						tank.pubertyXY = 1;
+						tank.pubertyAgeXY = tank.physicalAge - 1;
 						if (tank.hormoneBalance > -500) {
 							tank.hormoneBalance -= 100;
 						}
@@ -392,6 +394,7 @@ App.EndWeek.incubatorReport = function() {
 					r.push(`Combined with the healthy food provided to ${him}, ${his} body grows readily.`);
 					if (tank.ovaries === 1) {
 						tank.pubertyXX = 1;
+						tank.pubertyAgeXX = tank.physicalAge - 1;
 						if (tank.hormoneBalance < 500) {
 							tank.hormoneBalance += 100;
 						}
@@ -467,6 +470,7 @@ App.EndWeek.incubatorReport = function() {
 						}
 					} else if (tank.balls > 0) {
 						tank.pubertyXY = 1;
+						tank.pubertyAgeXY = tank.physicalAge - 1;
 						if (tank.hormoneBalance > -500) {
 							tank.hormoneBalance -= 100;
 						}
@@ -524,6 +528,7 @@ App.EndWeek.incubatorReport = function() {
 					r.push(`Since ${his} body has little to work with, ${his} growth is fairly minor.`);
 					if (tank.ovaries === 1) {
 						tank.pubertyXX = 1;
+						tank.pubertyAgeXX = tank.physicalAge - 1;
 						if (tank.hormoneBalance < 500) {
 							tank.hormoneBalance += 100;
 						}
@@ -599,6 +604,7 @@ App.EndWeek.incubatorReport = function() {
 						}
 					} else if (tank.balls > 0) {
 						tank.pubertyXY = 1;
+						tank.pubertyAgeXY = tank.physicalAge - 1;
 						if (tank.hormoneBalance > -500) {
 							tank.hormoneBalance -= 100;
 						}
@@ -657,6 +663,7 @@ App.EndWeek.incubatorReport = function() {
 				r.push(`${His} hormone levels are being carefully managed, <span class="green">encouraging early puberty.</span>`);
 				if (tank.ovaries === 1) {
 					tank.pubertyXX = 1;
+					tank.pubertyAgeXX = tank.physicalAge - 1;
 					tank.hormoneBalance = 250;
 					if (tank.geneMods.NCS === 1) {
 						/* NCS blocks hormonal growth of all secondary sexual characteristics */
@@ -693,6 +700,7 @@ App.EndWeek.incubatorReport = function() {
 					}
 				} else if (tank.balls > 0) {
 					tank.pubertyXY = 1;
+					tank.pubertyAgeXY = tank.physicalAge - 1;
 					tank.hormoneBalance = -250;
 					if (tank.geneMods.NCS === 1) {
 						/* NCS blocks hormonal growth of all secondary sexual characteristics */
-- 
GitLab