From 1fbffce85cc67289bbbcb61436efd18f7b49cc53 Mon Sep 17 00:00:00 2001 From: Anu <barrychahal@gmail.com> Date: Thu, 26 Sep 2019 17:41:11 -0700 Subject: [PATCH] Update src/cheats/mod_EditSlaveCheatDatatypeCleanupNew.tw --- src/cheats/mod_EditSlaveCheatDatatypeCleanupNew.tw | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/cheats/mod_EditSlaveCheatDatatypeCleanupNew.tw b/src/cheats/mod_EditSlaveCheatDatatypeCleanupNew.tw index 6cb6ca3ceab..2676d914206 100644 --- a/src/cheats/mod_EditSlaveCheatDatatypeCleanupNew.tw +++ b/src/cheats/mod_EditSlaveCheatDatatypeCleanupNew.tw @@ -35,7 +35,14 @@ <<elseif $tempSlave.preg > 0>> <<set $tempSlave.pregKnown = 1>> <</if>> -<<set $tempSlave.pregAdaptation = Number($tempSlave.pregAdaptation) || 50>> +<<set $tempSlave.pregAdaptation = Number($tempSlave.pregAdaptation) || 0>> +<<if $tempSlave.pregAdaptation == 0>> + <<if $tempSlave.genes == "XY">> + <<run generateXYPregAdaptation($tempSlave)>> + <<else>> + <<run generateXXPregAdaptation($tempSlave)>> + <</if>> +<</if>> <<run SlaveDatatypeCleanup($tempSlave)>> /* will break cheated pregnancies if run before the above block of code */ /* Dependency Check */ -- GitLab