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

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

Provide for detailed inspection of pregnancies directly from the Incubator pregnancy list

See merge request pregmodfan/fc-pregmod!5068
parents 7bfa8b47 43aaa143
No related branches found
No related tags found
No related merge requests found
:: Analyze PC Pregnancy [nobr]
<<set $nextButton = "Continue", $nextLink = "Manage Personal Affairs">>
<<if lastVisited("Incubator") === 1>>
<<set $storedLink = "Incubator">>
<<elseif lastVisited("Manage Personal Affairs") === 1>>
<<set $storedLink = "Manage Personal Affairs">>
<</if>>
<<set $nextButton = "Continue", $nextLink = $storedLink>>
<<set _WL = $PC.womb.length, _incubatorReservations = WombReserveCount($PC, "incubator"), _nurseryReservations = WombReserveCount($PC, "nursery")>>
......
:: Analyze Pregnancy [nobr]
<<set $nextButton = "Continue", $nextLink = "Slave Interact">>
<<if lastVisited("Incubator") === 1>>
<<set $storedLink = "AS Dump">>
<<elseif lastVisited("Slave Interact") === 1>>
<<set $storedLink = "Slave Interact">>
<</if>>
<<set $nextButton = "Continue", $nextLink = $storedLink>>
<<setLocalPronouns $activeSlave>>
<<set _WL = $activeSlave.womb.length, _incubatorReservations = WombReserveCount($activeSlave, "incubator"), _nurseryReservations = WombReserveCount($activeSlave, "nursery")>>
......
......@@ -111,6 +111,9 @@ Reserve an eligible mother-to-be's child to be placed in a tank upon birth. Of $
<</if>>
<<if (_reservedIncubator + _reservedNursery < _WL) && ($reservedChildren < $freeTanks)>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $pregnancyMonitoringUpgrade == 1>>
<<print "[[Inspect pregnancy|Analyze Pregnancy][$i = " + _u + "; $activeSlave = $slaves[$i]]] | ">>
<</if>>
<<print "[[Keep another child|Incubator][WombAddToGenericReserve($slaves[" + _u + "], 'incubator', 1)]]">>
<<if _reservedIncubator > 0>>
| <<print "[[Keep one less child|Incubator][WombCleanGenericReserve($slaves[" + _u + "], 'incubator', 1)]]">>
......@@ -123,6 +126,9 @@ Reserve an eligible mother-to-be's child to be placed in a tank upon birth. Of $
<</if>>
<<elseif (_reservedIncubator == _WL) || ($reservedChildren == $freeTanks) || (_reservedIncubator + _reservedNursery == _WL)>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $pregnancyMonitoringUpgrade == 1>>
<<print "[[Inspect pregnancy|Analyze Pregnancy][$i = " + _u + "; $activeSlave = $slaves[$i]]] | ">>
<</if>>
<<print "[[Keep one less child|Incubator][WombCleanGenericReserve($slaves[" + _u + "], 'incubator', 1)]]">>
<<if _reservedIncubator > 1>>
| <<print "[[Keep none of " + $his + " children|Incubator][WombCleanGenericReserve($slaves[" + _u + "], 'incubator', 9999)]]">>
......@@ -132,10 +138,16 @@ Reserve an eligible mother-to-be's child to be placed in a tank upon birth. Of $
<<if _WL - _reservedNursery == 0>>
//$His children are already reserved for $nurseryName//
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $pregnancyMonitoringUpgrade == 1>>
<<print "[[Inspect pregnancy|Analyze Pregnancy][$i = " + _u + "; $activeSlave = $slaves[$i]]] | ">>
<</if>>
<<print "[[Keep " + $his + " " + ((_WL > 1) ? "children" : "child") + " here instead|Incubator][WombChangeReserveType($slaves[" + _u + "], 'nursery', 'incubator')]]">>
<<else>>
You have <<if $freeTanks == 1>>an<</if>> @@.lime;available aging tank<<if $freeTanks > 1>>s<</if>>.@@
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $pregnancyMonitoringUpgrade == 1>>
<<print "[[Inspect pregnancy|Analyze Pregnancy][$i = " + _u + "; $activeSlave = $slaves[$i]]] | ">>
<</if>>
<<print "[[Keep "+ ((_WL > 1) ? "a" : "the") +" child|Incubator][WombAddToGenericReserve($slaves[" + _u + "], 'incubator', 1)]]">>
<<if (_WL > 1) && ($reservedChildren + _WL - _reservedIncubator) <= $freeTanks>>
| <<print "[[Keep all of " + $his + " children|Incubator][WombAddToGenericReserve($slaves[" + _u + "], 'incubator', 9999)]]">>
......@@ -143,6 +155,9 @@ Reserve an eligible mother-to-be's child to be placed in a tank upon birth. Of $
<</if>>
<<elseif $reservedChildren == $freeTanks>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $pregnancyMonitoringUpgrade == 1>>
<<print "[[Inspect pregnancy|Analyze Pregnancy][$i = " + _u + "; $activeSlave = $slaves[$i]]] | ">>
<</if>>
You have @@.red;no room for $his offspring.@@
<</if>>
<<set _eligibility = 1>>
......@@ -181,6 +196,9 @@ Reserve an eligible mother-to-be's child to be placed in a tank upon birth. Of $
<</if>>
<<if (_reservedIncubator < _WL) && ($reservedChildren < $freeTanks) && (_reservedIncubator - _reservedNursery > 0)>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $pregnancyMonitoringUpgrade == 1>>
<<print "[[Inspect pregnancy|Analyze PC Pregnancy]] | ">>
<</if>>
<<print "[[Keep another child|Incubator][WombAddToGenericReserve($PC, 'incubator', 1)]]">>
<<if _reservedIncubator > 0>>
| <<print "[[Keep one less child|Incubator][WombCleanGenericReserve($PC, 'incubator', 1)]]">>
......@@ -193,6 +211,9 @@ Reserve an eligible mother-to-be's child to be placed in a tank upon birth. Of $
<</if>>
<<elseif (_reservedIncubator == _WL) || ($reservedChildren == $freeTanks) || (_reservedIncubator - _reservedNursery >= 0)>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $pregnancyMonitoringUpgrade == 1>>
<<print "[[Inspect pregnancy|Analyze PC Pregnancy]] | ">>
<</if>>
<<print "[[Keep one less child|Incubator][_reservedIncubator -= 1, $reservedChildren -= 1]]">>
<<if _reservedIncubator > 1>>
| <<print "[[Keep none of your children|Incubator][WombCleanGenericReserve($PC, 'incubator', 9999)]]">>
......@@ -205,6 +226,9 @@ Reserve an eligible mother-to-be's child to be placed in a tank upon birth. Of $
<<else>>
You have <<if $freeTanks == 1>>an<</if>> @@.lime;available aging tank<<if $freeTanks > 1>>s<</if>>.@@
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $pregnancyMonitoringUpgrade == 1>>
<<print "[[Inspect pregnancy|Analyze PC Pregnancy]] | ">>
<</if>>
<<print "[[Keep " + ((_WL > 1) ? "a" : "your") +" child|Incubator][WombAddToGenericReserve($PC, 'incubator', 1)]]">>
<<if (_WL > 1) && ($reservedChildren + _WL - _reservedIncubator) <= $freeTanks>>
| [[Keep all of your children|Incubator][WombAddToGenericReserve($PC, 'incubator', 9999)]]
......@@ -212,6 +236,9 @@ Reserve an eligible mother-to-be's child to be placed in a tank upon birth. Of $
<</if>>
<<elseif $reservedChildren == $freeTanks>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $pregnancyMonitoringUpgrade == 1>>
<<print "[[Inspect pregnancy|Analyze PC Pregnancy]] | ">>
<</if>>
You have @@.red;no room for your offspring.@@
<</if>>
<</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