diff --git a/src/pregmod/seBurst.tw b/src/pregmod/seBurst.tw index f9fefea70ad59a73e75a112697b480cdda9bb3d2..032fad3539c850414b0d95c5b00fe1a5e0d7738f 100644 --- a/src/pregmod/seBurst.tw +++ b/src/pregmod/seBurst.tw @@ -154,10 +154,14 @@ taken to $incubatorName. <<elseif _cToIncub < _curBabies && _cToIncub > 0>> split between $incubatorName and - <<if _cToNursery == _curBabies-_cToIncub && _incubated > 0>> - $nurseryName. - <<elseif _cToNursery < _curBabies-_cToIncub && _cToNursery > 0>> - $nurseryName, and the medical suite. + <<if _cToNursery > 0>> + <<if _cToNursery == _curBabies-_cToIncub && _incubated > 0>> + $nurseryName. + <<elseif _cToNursery < _curBabies-_cToIncub && _cToNursery > 0>> + $nurseryName, and the medical suite. + <</if>> + <<else>> + the medical suite. <</if>> <<elseif _cToNursery == _curBabies>> taken to $nurseryName. @@ -170,12 +174,12 @@ <<if _cToIncub > 0 || _cToNursery > 0>> <<for _cb = 0; _cb < _curBabies; _cb++>> /* if there is no reserved children, code in loop will not trigger */ <<if $slaves[_b].curBabies[_cb].reserve == "incubator">> - <<set $slaves[_b] = generateChild($slaves[_b], $slaves[_b].curBabies[_cb], 1)>> + <<set $activeSlave = generateChild($slaves[_b], $slaves[_b].curBabies[_cb], 1)>> <<include "Incubator Workaround">> <<run $slaves[_b].curBabies.splice($slaves[_b].curBabies[_cb], 1)>> <<set _cb--, _curBabies-->> <<elseif $slaves[_b].curBabies[_cb].reserve == "nursery">> - <<set $slaves[_b] = generateChild($slaves[_b], $slaves[_b].curBabies[_cb])>> + <<set $activeSlave = generateChild($slaves[_b], $slaves[_b].curBabies[_cb])>> <<include "Nursery Workaround">> <<run $slaves[_b].curBabies.splice($slaves[_b].curBabies[_cb], 1)>> <<set _cb--, _curBabies-->>