Skip to content
Snippets Groups Projects
Commit 5dce19f4 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

fix temp var

parent 40a82d49
No related branches found
No related tags found
1 merge request!7883Birthstorm
......@@ -3,41 +3,41 @@
<<set $nextButton = "Back", $nextLink = "Slave Interact">>
<<set $AS = $activeSlave.ID>>
<<set babiesBeingBorn = WombBirth(getSlave($AS), 34)>> /*Here check - how many children survive this event. 34 weeks minimum.*/
<<set _numBeingBorn = babiesBeingBorn.length>>
<<set _babiesBeingBorn = WombBirth(getSlave($AS), 34)>> /*Here check - how many children survive this event. 34 weeks minimum.*/
<<set _numBeingBorn = _babiesBeingBorn.length>>
<<set _others = 0, _PC = 0, _citizens = 0, _oldMaster = 0, _arcOwner = 0, _clients = 0, _elite = 0, _lab = 0, _futaS = 0, _fathers = [], _babyFatherLink = []>>
<<for _cb = 0; _cb < babiesBeingBorn.length; _cb++>>
<<if babiesBeingBorn[_cb].fatherID == 0>>
<<for _cb = 0; _cb < _babiesBeingBorn.length; _cb++>>
<<if _babiesBeingBorn[_cb].fatherID == 0>>
<<set _others++>>
<<set _fathers.push("some man's")>>
<<elseif babiesBeingBorn[_cb].fatherID == -1>>
<<elseif _babiesBeingBorn[_cb].fatherID == -1>>
<<set $PC.counter.slavesFathered++>>
<<set _PC++>>
<<set _fathers.push("your")>>
<<elseif babiesBeingBorn[_cb].fatherID == -2>>
<<elseif _babiesBeingBorn[_cb].fatherID == -2>>
<<set _citizens++>>
<<set _fathers.push("a citizen's")>>
<<elseif babiesBeingBorn[_cb].fatherID == -3>>
<<elseif _babiesBeingBorn[_cb].fatherID == -3>>
<<set _oldMaster++>>
<<set _fathers.push("your former Master's")>>
<<elseif babiesBeingBorn[_cb].fatherID == -4>>
<<elseif _babiesBeingBorn[_cb].fatherID == -4>>
<<set _arcOwner++>>
<<set _fathers.push("another arcology owner's")>>
<<elseif babiesBeingBorn[_cb].fatherID == -5>>
<<elseif _babiesBeingBorn[_cb].fatherID == -5>>
<<set _clients++>>
<<set _fathers.push("your client's")>>
<<elseif babiesBeingBorn[_cb].fatherID == -6>>
<<elseif _babiesBeingBorn[_cb].fatherID == -6>>
<<set _elite++>>
<<set _fathers.push("the Societal Elite's")>>
<<elseif babiesBeingBorn[_cb].fatherID == -7>>
<<elseif _babiesBeingBorn[_cb].fatherID == -7>>
<<set _lab++>>
<<set _fathers.push("the gene lab's")>>
<<elseif babiesBeingBorn[_cb].fatherID == -9>>
<<elseif _babiesBeingBorn[_cb].fatherID == -9>>
<<set _futaS++>>
<<set _fathers.push("a Futanari Sister's")>>
<<else>>
<<set _babyDaddy = findFather(babiesBeingBorn[_cb].fatherID)>>
<<set _babyDaddy = findFather(_babiesBeingBorn[_cb].fatherID)>>
<<if def _babyDaddy>>
<<if _babyDaddy.ID == getSlave($AS).ID>>
<<set _fathers.push(String($his + " own"))>>
......@@ -108,9 +108,9 @@
<<set _cToIncub = 0, _cToNursery = 0>>
<<for _csec = 0; _csec < _numBeingBorn; _csec++>>
<<if babiesBeingBorn[_csec].reserve === "incubator">>
<<if _babiesBeingBorn[_csec].reserve === "incubator">>
<<set _cToIncub++>>
<<elseif babiesBeingBorn[_csec].reserve === "nursery">>
<<elseif _babiesBeingBorn[_csec].reserve === "nursery">>
<<set _cToNursery++>>
<</if>>
<</for>>
......@@ -209,14 +209,14 @@ The remote surgery allows the removal of the pregnancy generator through convent
<</if>>
<<if _cToIncub > 0 || _cToNursery > 0>>
<<set babiesBeingBorn = sendNewbornsToFacility(getSlave($AS), babiesBeingBorn)>>
<<set _babiesBeingBorn = sendNewbornsToFacility(getSlave($AS), _babiesBeingBorn)>>
<</if>>
<<else>>
/* TODO: No live babies. Placeholder */
<</if>>
<<set _numBeingBorn = babiesBeingBorn.length>>
<<set _numBeingBorn = _babiesBeingBorn.length>>
<<if _incubated != 2 && _nursed != 2 && _numBeingBorn > 0>>
<span id="_disposition">
......
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