Skip to content
Snippets Groups Projects
Commit d1d53612 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'pregmod-dev' into 'pregmod-master'

csec error with incubator fix

See merge request pregmodfan/fc-pregmod!1614
parents cc9c8d25 ff85aaf9
No related branches found
No related tags found
No related merge requests found
:: csec [nobr]
<<set $nextButton = " ", $nextLink = "Slave Interact">>
<<ClearSummaryCache $activeSlave>>
<<set _getFather = $slaves.find(function(s) { return s.ID == $activeSlave.pregSource; })>>
......@@ -15,7 +16,6 @@
<<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.curStillBirth = 0 >>
<<set _curBabies = $activeSlave.curBabies.length>> /*just to improve speed and usability here.*/
......@@ -117,9 +117,10 @@ Performing a cesarean section is trivial for the remote surgery to carry out. $a
<<for _cb = 0; _cb < _cToIncub; _cb++>> /* if there is no reserved children, code in loop will not trigger */
<<include "Generate Child">>
<<include "Incubator Workaround">>
<<set $activeSlave.curBabies.shift()>> /*for now child generation metod for incubator not changed. But here children for incubator removed from array of birthed babies. If we decide later - we can use them for incubator as real objects here. For now they just discarded silently */
<<set $mom.curBabies.shift()>> /*for now child generation metod for incubator not changed. But here children for incubator removed from array of birthed babies. If we decide later - we can use them for incubator as real objects here. For now they just discarded silently */
<<set $reservedChildren-- >>
<</for>>
<<set $activeSlave = $mom>>
<<else>>
/*No live babies. Placeholder */
<</if>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment