diff --git a/src/pregmod/csec.tw b/src/pregmod/csec.tw index a51f5d76ba6b411b10c24dbab00d7a8077daae65..2288b065db4f0fa9f3f356b9e51528235eac269b 100644 --- a/src/pregmod/csec.tw +++ b/src/pregmod/csec.tw @@ -10,7 +10,7 @@ <<set $activeSlave.pregControl = "none">> <<set _beforeSize = WombGetVolume($activeSlave)>> -<<set $activeSlave.curBabies = WombBirth($activeSlave, 34)>> /* 34 week is minimal gestation time for live birth. Here we take only ready to survive. With others we will deal later in code. */ +<<set $activeSlave.curBabies = WombBirth($activeSlave, $activeSlave.pregData.minLiveBirth)>> /* 34 week is minimal gestation time for human live birth. Here we take only ready to survive. With others we will deal later in code. */ <<set $activeSlave.curStillBirth = 0 >> <<set _curBabies = $activeSlave.curBabies.length>> /*just to improve speed and usability here.*/ diff --git a/src/pregmod/widgets/seBirthWidgets.tw b/src/pregmod/widgets/seBirthWidgets.tw index 48128dcc17f2b1f6a6a6069da3562d21d28ba54f..297c33696ed217578a36e087be50f26602d220e5 100644 --- a/src/pregmod/widgets/seBirthWidgets.tw +++ b/src/pregmod/widgets/seBirthWidgets.tw @@ -297,9 +297,9 @@ <<if $slaves[$i].broodmother > 0>> <<set $slaves[$i].curBabies = WombBirth($slaves[$i], 37)>> /*broodmothers - give birth for all 37+ week fetuses.*/ <<elseif $slaves[$i].prematureBirth == 1>> - <<set $slaves[$i].curBabies = WombBirth($slaves[$i], 22)>> + <<set $slaves[$i].curBabies = WombBirth($slaves[$i], $activeSlave.pregData.minLiveBirth/1.5)>> /*around 22 weeks for human*/ <<else>> - <<set $slaves[$i].curBabies = WombBirth($slaves[$i], 34)>> /*Normal pregnancy - 34 week is minimal gestation time for live birth.*/ + <<set $slaves[$i].curBabies = WombBirth($slaves[$i], $activeSlave.pregData.minLiveBirth)>> /*Normal human pregnancy - 34 week is minimal gestation time for live birth.*/ <</if>> <<set $slaves[$i].curStillBirth = 0 >> diff --git a/src/uncategorized/pCoupAttempt.tw b/src/uncategorized/pCoupAttempt.tw index 0084e0742fa9ccca9fdaa6dba197a66e8edf16ca..256b03af319ccf2c4df10499ab74184acf320313 100644 --- a/src/uncategorized/pCoupAttempt.tw +++ b/src/uncategorized/pCoupAttempt.tw @@ -7,8 +7,8 @@ <<set WombProgress($traitor, _pregWeeks)>> /* In all cases should be done */ <<set WombUpdatePregVars($traitor)>> - <<if WombBirthReady($traitor, 40) > 0 >> /* normal birth case, partial birthers not supported*/ - <<set $traitor.preg = -1, $traitor.birthsTotal += WombBirthReady($traitor, 40), $traitor.pregType = 0, $traitor.pregSource = 0, $traitor.pregWeek = 0, $traitor.pregKnown = 0>> + <<if WombBirthReady($traitor, $traitor.pregData.normalBirth) > 0 >> /* normal birth case, partial birthers not supported*/ + <<set $traitor.preg = -1, $traitor.birthsTotal += WombBirthReady($traitor, $traitor.pregData.normalBirth), $traitor.pregType = 0, $traitor.pregSource = 0, $traitor.pregWeek = 0, $traitor.pregKnown = 0>> <<set WombFlush($traitor)>> <<else>>/* still pregnant slave */ <<set $traitor.preg = WombMaxPreg($traitor)>> /*most ready fetus is a base*/ diff --git a/src/uncategorized/pCoupCollaboration.tw b/src/uncategorized/pCoupCollaboration.tw index 2c9b37a9b7255213c8e0a01684d1f241f639a081..0a6afe6549c835ad898ce2fd80a15c20189c0419 100644 --- a/src/uncategorized/pCoupCollaboration.tw +++ b/src/uncategorized/pCoupCollaboration.tw @@ -6,8 +6,8 @@ <<set WombProgress($traitor, _pregWeeks)>> /* In all cases should be done */ <<set WombUpdatePregVars($traitor)>> -<<if WombBirthReady($traitor, 40) > 0 >> /* normal birth case, partial birthers not supported*/ - <<set $traitor.preg = -1, $traitor.birthsTotal += WombBirthReady($traitor, 40), $traitor.pregType = 0, $traitor.pregSource = 0, $traitor.pregWeek = 0, $traitor.pregKnown = 0>> +<<if WombBirthReady($traitor, $traitor.pregData.normalBirth) > 0 >> /* normal birth case, partial birthers not supported*/ + <<set $traitor.preg = -1, $traitor.birthsTotal += WombBirthReady($traitor, $traitor.pregData.normalBirth), $traitor.pregType = 0, $traitor.pregSource = 0, $traitor.pregWeek = 0, $traitor.pregKnown = 0>> <<set WombFlush($traitor)>> <<else>>/* still pregnant slave */ <<set $traitor.preg = WombMaxPreg($traitor)>> /*most ready fetus is a base*/ diff --git a/src/uncategorized/pCoupLoss.tw b/src/uncategorized/pCoupLoss.tw index 7ed6d5372076dd639ddb2105a879da99d8cf7050..e6ea560ff933dc4066feb38f4d6e8e1f08ddb8ae 100644 --- a/src/uncategorized/pCoupLoss.tw +++ b/src/uncategorized/pCoupLoss.tw @@ -5,8 +5,8 @@ <<set WombProgress($traitor, _pregWeeks)>> /* In all cases should be done */ <<set WombUpdatePregVars($traitor)>> -<<if WombBirthReady($traitor, 40) > 0 >> /* normal birth case, partial birthers not supported*/ - <<set $traitor.preg = -1, $traitor.birthsTotal += WombBirthReady($traitor, 40), $traitor.pregType = 0, $traitor.pregSource = 0, $traitor.pregWeek = 0, $traitor.pregKnown = 0>> +<<if WombBirthReady($traitor, $traitor.pregData.normalBirth) > 0 >> /* normal birth case, partial birthers not supported*/ + <<set $traitor.preg = -1, $traitor.birthsTotal += WombBirthReady($traitor, $traitor.pregData.normalBirth), $traitor.pregType = 0, $traitor.pregSource = 0, $traitor.pregWeek = 0, $traitor.pregKnown = 0>> <<set WombFlush($traitor)>> <<else>>/* still pregnant slave */ <<set $traitor.preg = WombMaxPreg($traitor)>> /*most ready fetus is a base*/ diff --git a/src/uncategorized/pTraitorMessage.tw b/src/uncategorized/pTraitorMessage.tw index 377cc4d96a3d7d855e014f3145a4bfbd6500b379..5127bb2c2188cadbcc96d04de81ec70400cfd561 100644 --- a/src/uncategorized/pTraitorMessage.tw +++ b/src/uncategorized/pTraitorMessage.tw @@ -17,8 +17,8 @@ <<if $traitor.broodmother > 0>> /* Broodmother implant is assumed as removed.*/ <<set $traitor.preg = -1, $traitor.birthsTotal += WombBirthReady($traitor, 37), $traitor.pregType = 0, $traitor.pregSource = 0, $traitor.pregWeek = 0, $traitor.pregKnown = 0, $traitor.broodmother == 0, $traitor.broodmotherFetuses = 0>> <<set WombFlush($traitor)>> -<<elseif WombBirthReady($traitor, 40) > 0 >> /* normal birth case, partial birthers not supported*/ - <<set $traitor.preg = -1, $traitor.birthsTotal += WombBirthReady($traitor, 40), $traitor.pregType = 0, $traitor.pregSource = 0, $traitor.pregWeek = 0, $traitor.pregKnown = 0>> +<<elseif WombBirthReady($traitor, $traitor.pregData.normalBirth) > 0 >> /* normal birth case, partial birthers not supported*/ + <<set $traitor.preg = -1, $traitor.birthsTotal += WombBirthReady($traitor, $traitor.pregData.normalBirth), $traitor.pregType = 0, $traitor.pregSource = 0, $traitor.pregWeek = 0, $traitor.pregKnown = 0>> <<set WombFlush($traitor)>> <<else>>/* still pregnant slave */ <<set $traitor.preg = WombMaxPreg($traitor)>> /*most ready fetus is a base*/ diff --git a/src/uncategorized/reBoomerang.tw b/src/uncategorized/reBoomerang.tw index 88b471d716383215e4ab082e0f5eb4211942c4d9..4ad507423d5aee76c44446d1da95f42918f50901 100644 --- a/src/uncategorized/reBoomerang.tw +++ b/src/uncategorized/reBoomerang.tw @@ -25,8 +25,8 @@ brings up the relevant feeds. There's a naked body crumpled pathetically against <<if $activeSlave.broodmother > 0>> /* Broodmother implant is assumed as removed.*/ <<set $activeSlave.preg = -1, $activeSlave.birthsTotal += WombBirthReady($activeSlave, 37), $activeSlave.pregType = 0, $activeSlave.pregSource = 0, $activeSlave.pregWeek = 0, $activeSlave.pregKnown = 0, $activeSlave.broodmother == 0, $activeSlave.broodmotherFetuses = 0>> <<set WombFlush($activeSlave)>> -<<elseif WombBirthReady($activeSlave, 40) > 0 >> /* normal birth case, partial birthers not supported*/ - <<set $activeSlave.preg = -1, $activeSlave.birthsTotal += WombBirthReady($activeSlave, 40), $activeSlave.pregType = 0, $activeSlave.pregSource = 0, $activeSlave.pregWeek = 0, $activeSlave.pregKnown = 0>> +<<elseif WombBirthReady($activeSlave, $activeSlave.pregData.normalBirth) > 0 >> /* normal birth case, partial birthers not supported*/ + <<set $activeSlave.preg = -1, $activeSlave.birthsTotal += WombBirthReady($activeSlave, $activeSlave.pregData.normalBirth), $activeSlave.pregType = 0, $activeSlave.pregSource = 0, $activeSlave.pregWeek = 0, $activeSlave.pregKnown = 0>> <<set WombFlush($activeSlave)>> <<else>>/* still pregnant slave */ <<set $activeSlave.preg = WombMaxPreg($activeSlave)>> /*most ready fetus is a base*/ diff --git a/src/uncategorized/saDrugs.tw b/src/uncategorized/saDrugs.tw index 24846995881d9b8a31da706aef3ff1ccdc127c2d..33e7150975970302c254c497ede6b2f0bd630f33 100644 --- a/src/uncategorized/saDrugs.tw +++ b/src/uncategorized/saDrugs.tw @@ -1104,16 +1104,16 @@ <<case "labor supressors">> <<set $slaves[$i].chem += 2>> - <<if WombBirthReady($slaves[$i], 60) > 0>> + <<if WombBirthReady($slaves[$i], $activeSlave.pregData.normalBirth*1.5) > 0>> <<set $slaves[$i].health -= 20>> <<set $slaves[$i].labor = 1>> <<set $slaves[$i].induce = 1>> <<set $birthee = 1>> $He has been ready to give birth for some time now. Suppressing birth for so long @@.red;greatly affects $his health.@@ $He may @@.red;have trouble@@ giving birth to $his oversized child<<if $slaves[$i].pregType > 1>>ren<</if>>. $He seems to be in distress, $his body is @@.red;forcing $his child<<if $slaves[$i].pregType > 1>>ren<</if>> out!@@ - <<elseif WombBirthReady($slaves[$i], 50) > 0>> + <<elseif WombBirthReady($slaves[$i], $activeSlave.pregData.normalBirth*1.25) > 0>> <<set $slaves[$i].health -= 20>> $He has been ready to give birth for some time now. Suppressing birth for so long @@.red;greatly affects $his health.@@ $He may @@.red;have trouble@@ giving birth to $his oversized child<<if $slaves[$i].pregType > 1>>ren<</if>>. - <<elseif WombBirthReady($slaves[$i], 40) > 0>> + <<elseif WombBirthReady($slaves[$i], $activeSlave.pregData.normalBirth) > 0>> <<set $slaves[$i].health -= 10>> Labor suppressing agents @@.red;negatively affect $his health.@@ <</if>>