code:
:: Child Interact [nobr]

<<if $cheatMode>>
	[[Cheat Edit Child Alternative|MOD_Edit Child Cheat New][$cheater = 1]]
<</if>>

<<set _i = App.Facilities.Nursery.childIndexForID($activeChild.ID)>>

<<set $nextButton = "Confirm changes", $nextLink = "AC Dump", $returnTo = "Nursery", _SL = $slaves.length, _CL = $cribs.length, $cribs[_i] = $activeChild>>

<<setLocalPronouns $activeChild>>
<<run Enunciate($activeChild)>>

/* TODO: the encyclopedia will most likely need to be updated for children as well */
<<set $encyclopedia = either("Costs Summary", "Disease in the Free Cities", "Drugs and Their Effects", "From Rebellious to Devoted", "Gender", "Independent Slaves", "Modern Anal", "Nymphomania", "Slave Couture")>>
<<if $activeChild.dick > 0>>
	<<set $showEncyclopedia = 1, $encyclopedia = "Gender">>
<</if>>

@@.cyan;[←,Q] @@

	<<link "Prev" "Previous Child In Line">><</link>>

    @@.pink;$activeChild.slaveName@@

	<<link "Next" "Next Child In Line">><</link>>

@@.cyan; [E,→]@@

<<if $seeDetails>>
	<<set $saleDescription = 0>>

		<<= App.Facilities.Nursery.LongChildDescription($activeChild)>>

	[[Options][$nextLink = passage()]] |
	[[Hide descriptions|Child Interact][$seeDetails = 0]] |
	[[Customize|Customize Child]] |

	<<link "Update">>
			<<replace "#LCD">><<= App.Facilities.Nursery.LongChildDescription($activeChild)>><</replace>>
	<</link>>

<<else>>
	[[Show descriptions|Child Interact][$seeDetails = 1]]
<</if>>
/*
FIXME:

__Take slave to another room:__
[[Wardrobe|Wardrobe Use][$degradation = 0]]
| [[Auto salon|Salon][$degradation = 0, $primaryHairColor = "", $secondaryHairColor = "", $artificialEyeColor = "" ,$artificialEyeShape = "", $artificialEyeFill = "", $tattooChoice = "", $piercingLevel = ""]]
| [[Body mod studio|Body Modification][$degradation = 0, $tattooChoice = undefined]]
| [[Remote surgery|Remote Surgery][$degradation = 0]]
| [[Configure cybernetics|Prosthetics Configuration][$prostheticsConfig = "main"]]
*/

/*TODO: These will most likely need to be reworked*/
<<if $extremeUnderage && $childSex>>

	Or use $him here:

	<<if ($activeChild.vagina > -1)>>
		<<if canDoVaginal($activeChild)>>
		<<link "Fuck $him">>
			<<replace "#miniscene">><<include "FVagina">>
    <</replace>>
		<</link>> |
		<<if canDoAnal($activeChild)>>
			<<link "Use $his holes">>
				<<replace "#miniscene">><<include "FButt">>
    <</replace>>
			<</link>> |
			<</if>>
		<<else>>
			Remove $his chastity belt if you wish to fuck $him
		<</if>>
	<</if>>

	<<if canDoAnal($activeChild)>>
		<<link "Fuck $his ass">>
			<<replace "#miniscene">><<include "FAnus">>
    <</replace>>
		<</link>> |
	<<else>>
		| Remove $his chastity belt if you wish to fuck $his ass
	<</if>>

	<<link "Use $his mouth">>
		<<replace "#miniscene">><<include "FLips">>
    <</replace>>
	<</link>> |
	<<link "Kiss $him">>
		<<replace "#miniscene">><<include "FKiss">>
    <</replace>>
	<</link>> |
	<<link "Play with $his tits">>
		<<replace "#miniscene">><<include "FBoobs">>
    <</replace>>
	<</link>> |
	<<link "Caress $him">>
		<<replace "#miniscene">><<include "FCaress">>
    <</replace>>
	<</link>> |
	<<link "Give $him a hug">>
		<<replace "#miniscene">><<include "FEmbrace">>
    <</replace>>
	<</link>> |
	<<if $cheatMode>>
		<<link "Pat $his head">>
			<<replace "#miniscene">><<include "FPat">>
    <</replace>>
		<</link>> |
	<</if>>
	<<link "Grope $his boobs">>
		<<replace "#miniscene">><<include "FondleChildBoobs">>
    <</replace>>
	<</link>> |
	<<if $activeChild.nipples == "fuckable" && $PC.dick>>
		<<link "Fuck $his nipples">>
			<<replace "#miniscene">><<include "FNippleFuck">>
    <</replace>>
		<</link>> |
	<</if>>
	<<if $activeChild.lactation && $activeChild.boobs >= 2000 && $activeChild.belly < 60000>>
		<<link "Drink $his milk">>
			<<replace "#miniscene">><<include "FSuckle">>
    <</replace>>
		<</link>> |
	<</if>>

	<<if canDoAnal($activeChild)>>
		<<link "Grope $his butt">>
			<<replace "#miniscene">><<include "FondleChildButt">>
    <</replace>>
		<</link>> |
	<</if>>

	<<if ($activeChild.vagina > -1)>>
		<<if canDoVaginal($activeChild)>>
			<<link "Grope $his pussy">>
				<<replace "#miniscene">><<include "FondleChildVagina">>
    <</replace>>
			<</link>> |
			<<link "Eat $him out">>
				<<replace "#miniscene">><<include "FLickPussy">>
    <</replace>>
			<</link>> |
		<</if>>
	<</if>>

	<<if $activeChild.dick>>
		<<if !$activeChild.chastityPenis>>
		<<link "Grope $his dick">>
			<<replace "#miniscene">><<include "FondleChildDick">>
    <</replace>>
		<</link>> |
			<<if canPenetrate($activeChild) && $sexualOpeness>>
				<<link "Ride $his dick">>
					<<replace "#miniscene">><<include "FDick">>
    <</replace>>
				<</link>> |
			<</if>>
		<<else>>
			| //Remove $his dick chastity belt if you wish to play with $his cock//
		<</if>>
	<</if>>

	<<if (hasAnyLegs($activeChild)) && $PC.dick != 0>>
		<<link "Get a footjob">><<replace "#miniscene">><<set $childSex = 1>><<include "FFeet">>
    <</replace>><</link>> |
	<</if>>

	/* TODO: will children be able to be inflated? */
	<<if $activeChild.assignment != "work in the dairy" && $activeChild.assignment != "be confined in the arcade" && $activeChild.assignment != "be confined in the cellblock">>
		<<if $enema>>
			<<if ($activeChild.inflation < 3 && $activeChild.pregKnown == 0 && $activeChild.bellyImplant < 1500) || ($activeChild.inflation < 1)>>
				<<if $activeChild.inflationType == "water" || $activeChild.inflationType == "none">>
					|	<<link "Fill $his ass with water">>
						<<set $activeChild.inflationType = "water">>
						<<set $activeChild.inflationMethod = 2>>
							<<replace "#miniscene">>
							<<include "FillUpButt">>
<</replace>>
							<<SlaveInteractImpreg>>
							<<SlaveInteractFertility>>
							<</link>>
				<</if>>
				<<if $medicalEnema>>
					<<if $activeChild.inflationType == "aphrodisiac" || $activeChild.inflationType == "none">>
						|	<<link "Fill $his ass with aphrodisiacs">>
							<<set $activeChild.inflationType = "aphrodisiac">>
							<<set $activeChild.inflationMethod = 2>>
								<<replace "#miniscene">>
								<<include "FillUpButt">>
<</replace>>
								<<SlaveInteractImpreg>>
								<<SlaveInteractFertility>>
								<</link>>
					<</if>>
					<<if $activeChild.inflationType == "curative" || $activeChild.inflationType == "none">>
						|	<<link "Fill $his ass with curatives">>
							<<set $activeChild.inflationType = "curative">>
							<<set $activeChild.inflationMethod = 2>>
								<<replace "#miniscene">>
								<<include "FillUpButt">>
<</replace>>
								<<SlaveInteractImpreg>>
								<<SlaveInteractFertility>>
								<</link>>
					<</if>>
					<<if $activeChild.inflationType == "tightener" || $activeChild.inflationType == "none">>
						|	<<link "Fill $his ass with rectal tighteners">>
							<<set $activeChild.inflationType = "tightener">>
							<<set $activeChild.inflationMethod = 2>>
								<<replace "#miniscene">>
								<<include "FillUpButt">>
<</replace>>
								<<SlaveInteractImpreg>>
								<<SlaveInteractFertility>>
								<</link>>
					<</if>>
				<</if>>
			<</if>>
		<</if>>
		<<if $dairyPiping>>
			<<if ($milkPipeline > 88 && $milkPipeline != 0) || $arcologies[0].FSPastoralistLaw>>
				<<if ($activeChild.inflation < 3 && $activeChild.pregKnown == 0 && $activeChild.bellyImplant < 1500) || ($activeChild.inflation < 1)>>
					<<if $activeChild.inflationType == "milk" || $activeChild.inflationType == "none">>
						|	<<link "Fill $his ass with milk">>
							<<set $activeChild.inflationType = "milk">>
							<<set $activeChild.inflationMethod = 2>>
								<<replace "#miniscene">>
								<<include "FillUpButt">>
<</replace>>
								<<SlaveInteractImpreg>>
								<<SlaveInteractFertility>>
								<</link>>
						|	<<link "Force-feed $him milk">>
							<<set $activeChild.inflationType = "milk">>
							<<set $activeChild.inflationMethod = 1>>
								<<replace "#miniscene">>
								<<include "FillUpFace">>
<</replace>>
								<<SlaveInteractImpreg>>
								<<SlaveInteractFertility>>
								<</link>>
					<</if>>
				<</if>>
			<<else>>
				| //$dairyNameCaps is not producing enough milk to pump through the pipes//
			<</if>>
			<<if ($cumPipeline > 88 && $cumPipeline != 0) || $arcologies[0].FSPastoralistLaw>>
				<<if ($activeChild.inflation < 3 && $activeChild.pregKnown == 0 && $activeChild.bellyImplant < 1500) || ($activeChild.inflation < 1)>>
					<<if $activeChild.inflationType == "cum" || $activeChild.inflationType == "none">>
						|	<<link "Fill $his ass with cum">>
							<<set $activeChild.inflationType = "cum">>
							<<set $activeChild.inflationMethod = 2>>
								<<replace "#miniscene">>
								<<include "FillUpButt">>
<</replace>>
								<<SlaveInteractImpreg>>
								<<SlaveInteractFertility>>
								<</link>>
						|	<<link "Force-feed $him cum">>
							<<set $activeChild.inflationType = "cum">>
							<<set $activeChild.inflationMethod = 1>>
								<<replace "#miniscene">>
								<<include "FillUpFace">>
<</replace>>
								<<SlaveInteractImpreg>>
								<<SlaveInteractFertility>>
								<</link>>
					<</if>>
				<</if>>
			<<else>>
				| //$dairyNameCaps is not producing enough cum to pump through the pipes//
			<</if>>
		<</if>>
		<<if $wcPiping == 1>>
			<<if ($activeChild.inflation < 3 && $activeChild.pregKnown == 0 && $activeChild.bellyImplant < 1500) || ($activeChild.inflation < 1)>>
				<<if $activeChild.inflationType == "urine" || $activeChild.inflationType == "none">>
				|	<<link "Fill $his ass with urine">>
					<<set $activeChild.inflationType = "urine">>
					<<set $activeChild.inflationMethod = 2>>
					<<replace "#miniscene">><<include "FillUpButt">>
<</replace>>
					<<SlaveInteractImpreg>>
					<<SlaveInteractFertility>>
					<</link>>
				<</if>>
			<</if>>
		<</if>>
	<</if>>
	<<if $activeChild.inflation == 0 && $activeChild.bellyImplant < 1500>>
		|	<<link "Use another slave to force-feed $him" "SlaveOnSlaveFeedingWorkAround">>
		<</link>>
		<<if $buckets>>
			|	<<link "Make $him consume two liters of slave food">>
				<<set $activeChild.inflationType = "food">>
				<<set $activeChild.inflationMethod = 1>>
				<<set $activeChild.inflation = 1>>
					<<replace "#miniscene">><<include "ForceFeeding">>
<</replace>>
					<<SlaveInteractImpreg>>
					<<SlaveInteractFertility>>
					<</link>>
			<<if $activeChild.pregKnown == 0>>
				|	<<link "Force $him to consume a gallon of slave food">>
					<<set $activeChild.inflationType = "food">>
					<<set $activeChild.inflationMethod = 1>>
					<<set $activeChild.inflation = 2>>
						<<replace "#miniscene">><<include "ForceFeeding">>
<</replace>>
						<<SlaveInteractImpreg>>
						<<SlaveInteractFertility>>
						<</link>>
				|	<<link "Force two gallons of slave food into $him">>
					<<set $activeChild.inflationType = "food">>
					<<set $activeChild.inflationMethod = 1>>
					<<set $activeChild.inflation = 3>>
						<<replace "#miniscene">><<include "ForceFeeding">>
<</replace>>
						<<SlaveInteractImpreg>>
						<<SlaveInteractFertility>>
						<</link>>
			<</if>>
		<</if>>
	<</if>>
	<<if canDoVaginal($activeChild)>>
		<<link "Have another slave fuck $his pussy" "FSlaveSlaveVag">>
		<</link>> |
	<</if>>
	<<if canPenetrate($activeChild)>>
		<<link "Have another slave ride $his cock" "FSlaveSlaveDick">>
		<</link>> |
	<<elseif $activeChild.clit >= 4>>
		<<link "Have another slave ride $his clit-dick" "FSlaveSlaveDick">>
		<</link>> |
	<</if>>
	<<if $seeBestiality>>
		<<if $farmyardKennels > 0 && $activeCanine != 0>>
			<<link "Have a $activeCanine.species mount $him">>
				<<set $animalType = "canine">>
				<<replace "#miniscene">><<include "BeastFucked">>
    <</replace>>
			<</link>> |
		<</if>>
		<<if $farmyardStable > 0 && $activeHooved.species != 0>>
			<<link "Let a $activeHooved.species mount $him">>
				<<set $animalType = "hooved">>
				<<replace "#miniscene">><<include "BeastFucked">>
    <</replace>>
			<</link>> |
		<</if>>
		<<if $farmyardCages > 0 && $activeFeline != 0>>
			<<link "Have a $activeFeline.species mount $him">>
				<<set $animalType = "feline">>
				<<replace "#miniscene">><<include "BeastFucked">>
    <</replace>>
			<</link>> |
		<</if>>
	<</if>>
	<<if $cheatMode>>
		<<link "Check $his deadliness">>
			<<replace "#miniscene">><<include "Deadliness">>
    <</replace>>
		<</link>> |
	<</if>>
	<<link "Abuse $him">>
		<<replace "#miniscene">><<include "FAbuse">><</replace>>
	<</link>>
	<<if $seeIncest == 1>>
		<<if $familyTesting == 1>>
			<<set _availRelatives = availableRelatives($activeChild)>>
			<<if _availRelatives.mother>>
			|	<<link "Fuck $him with $his mother">>
				<<replace "#miniscene">>
				<<set $partner = "mother">>
				<<include "FRelation">>
    <</replace>>
				<</link>>
			<<elseif _availRelatives.motherName !== null>>
				//$His mother, _availRelatives.motherName, is unavailable//
			<</if>>
			/*
			<<if _availRelatives.father>>
			|	<<link "Fuck $him with $his father">>
				<<replace "#miniscene">><<set $partner = "father">>
				<<include "FRelation">>
    <</replace>>
				<</link>>
			<<elseif _availRelatives.fatherName !== null>>
				//$His father, _availRelatives.fatherName, is unavailable//
			<</if>>
			*/
			<<if $activeChild.sisters > 0>>
				<<if _availRelatives.sisters == 0>>
					<<if $activeChild.sisters == 1>>
						//$His _sister2 is unavailable//
					<<else>>
						//$His sisters are unavailable//
					<</if>>
				<<else>>
					<<if $activeChild.sisters == 1>>
					|	<<link "Fuck $him with $his _sister2">>
						<<replace "#miniscene">>
						<<set $partner = "sister">>
						<<include "FRelation">>
    <</replace>>
						<</link>>
					<<else>>
					|	<<link "Fuck $him with one of $his sisters">>
						<<replace "#miniscene">>
						<<set $partner = "sister">>
						<<include "FRelation">>
    <</replace>>
						<</link>>
					<</if>>
				<</if>>
			<</if>>
		<<else>>
			<<if ($activeChild.relation != 0)>>
				<<set _assayedSlave = getSlave($activeChild.relationTarget)>>
				<<setLocalPronouns _assayedSlave 2>>
				<<if isSlaveAvailable(_assayedSlave)>>
					<<if ($activeChild.relation == "mother")>>
					|	<<link "Fuck $him with $his _daughter2">>
						<<replace "#miniscene">>
						<<set $partner = "relation">>
						<<include "FRelation">>
    <</replace>>
						<</link>>
					<<elseif ($activeChild.relation == "daughter")>>
					|	<<link "Fuck $him with $his mother">>
						<<replace "#miniscene">>
						<<set $partner = "relation">>
						<<include "FRelation">>
    <</replace>>
						<</link>>
					<<elseif ($activeChild.relation == "sister")>>
					|	<<link "Fuck $him with $his _sister2">>
						<<replace "#miniscene">>
						<<set $partner = "relation">>
						<<include "FRelation">>
    <</replace>>
						<</link>>
					<<elseif ($activeChild.relation == "twin")>>
					|	<<link "Fuck $him with $his twin">>
						<<replace "#miniscene">>
						<<set $partner = "relation">>
						<<include "FRelation">>
    <</replace>>
						<</link>>
					<</if>>
				<<else>>
					//_assayedSlave.slaveName is unavailable//
				<</if>>
			<</if>>
		<</if>>
	<</if>>
	<<if ($activeChild.relationship > 0)>>
		<<set _si = $slaveIndices[$activeChild.relationshipTarget]>>
		<<if isSlaveAvailable($slaves[_si])>>
			<<setLocalPronouns $slaves[_si] 2>>
			<<if ($activeChild.relationship)>>
				|	<<link `"Fuck $him with $his friend <<= SlaveFullName($slaves[_si])>>"`>>
						<<replace "#miniscene">>
							<<set $partner = "relationship">>
							<<include "FRelation">>
    <</replace>>
						<</link>>
			<<elseif ($activeChild.relationship == 2)>>
				|	<<link `"Fuck $him with $his best friend <<= SlaveFullName($slaves[_si])>>"`>>
						<<replace "#miniscene">>
							<<set $partner = "relationship">>
							<<include "FRelation">>
    <</replace>>
						<</link>>
			<<elseif ($activeChild.relationship == 3)>>
				|	<<link `"Fuck $him with $his FWB <<= SlaveFullName($slaves[_si])>>"`>>
						<<replace "#miniscene">>
							<<set $partner = "relationship">>
							<<include "FRelation">>
    <</replace>>
						<</link>>
			<<elseif ($activeChild.relationship == 4)>>
				|	<<link `"Fuck $him with $his lover <<= SlaveFullName($slaves[_si])>>"`>>
						<<replace "#miniscene">>
							<<set $partner = "relationship">>
							<<include "FRelation">>
    <</replace>>
						<</link>>
			<<else>>
				|	<<link `"Fuck $him with $his slave _wife2 <<= SlaveFullName($slaves[_si])>>"`>>
						<<replace "#miniscene">>
							<<set $partner = "relationship">>
							<<include "FRelation">>
    <</replace>>
						<</link>>
			<</if>>
		<</if>>
	<</if>>
	<<if ($activeChild.rivalryTarget != 0) && canWalk($activeChild)>>
		|	<<link "Abuse $his rival with $him">>
				<<replace "#miniscene">><<include "FRival">>
    <</replace>>
			<</link>>
	<</if>>
	<<if ($activeChild.fetish != "mindbroken") && (canTalk($activeChild) || hasAnyArms($activeChild))>>
		| <<link "Ask $him about $his feelings">><<replace "#miniscene">><<set $childSex = 1>><<include "FFeelings">>
    <</replace>><</link>>
	<</if>>
	<<if $activeChild.devotion >= 100 && $activeChild.relationship < 0 && $activeChild.relationship > -3>>
		|	<<link "Talk to $him about relationships" "Matchmaking">>
				<<set $subSlave = 0, $eventSlave = $activeChild>>
			<</link>>
	<</if>>
<</if>>

<<if $familyTesting>>

			<<link "Pull up the file on $his family tree.">>
					<<replace #familyTreeLink>>
						/* TODO: this may need to be updated */<<run renderFamilyTree($slaves, $activeChild.ID)>><</replace>>
			<</link>>

<</if>>

/* TODO: the RA may need to be reworked to work with children in the Nursery */
<<if $activeChild.useRulesAssistant == 0>>
	@@.gray;''Not subject'' to the Rules Assistant.@@
	<<link "Include $him" "Child Interact">>
		<<set $activeChild.useRulesAssistant = 1>>
	<</link>>

<<else>>
	__Rules Assistant:__ [[Rules Assistant Options|Rules Assistant]]

	<<if (def $activeChild.currentRules) && ($activeChild.currentRules.length > 0)>>

			<<= $defaultRules.filter(x => ruleApplied($activeChild, x)).map(x => `<li>Rule "${x.name}" applied</li>`).join(" ") >>

	<</if>> |
	<<link "//Apply rules//">>
		<<silently>>
		<<run DefaultRules($activeChild)>>
		<</silently>>
		<<goto "Child Interact">>
	<</link>> |
	<<link "Exempt $him" "Child Interact">>
		<<set $activeChild.useRulesAssistant = 0>>
		<</link>>
<</if>>

/* TODO: move all wardrobe options to a wardrobe passage */
<<if $showWardrobe>>

__Appearance:__

Clothes: $activeChild.clothes.
	<<link "Let $him choose">>
		<<set $activeChild.clothes = "choosing her own clothes", $activeChild.choosesOwnClothes = 1>>
		<<replace "#clothes">>$activeChild.clothes<</replace>>
	<</link>>

	Nice:
	<<link "Ballgown">>
		<<set $activeChild.clothes = "a ball gown", $activeChild.choosesOwnClothes = 0>>
		<<replace "#clothes">>$activeChild.clothes<</replace>>
	<</link>> |
	<<link "Mini dress">>
		<<set $activeChild.clothes = "a mini dress", $activeChild.choosesOwnClothes = 0>>
		<<replace "#clothes">>$activeChild.clothes<</replace>>
	<</link>> |
	<<link "Oversized t-shirt">>
		<<set $activeChild.clothes = "an oversized t-shirt", $activeChild.choosesOwnClothes = 0>>
		<<replace "#clothes">>$activeChild.clothes<</replace>>
	<</link>> |
	<<link "Schoolgirl">>
		<<set $activeChild.clothes = "a schoolgirl outfit", $activeChild.choosesOwnClothes = 0>>
		<<replace "#clothes">>$activeChild.clothes<</replace>>
	<</link>> |
	<<link "Slave gown">>
		<<set $activeChild.clothes = "a slave gown", $activeChild.choosesOwnClothes = 0>>
		<<replace "#clothes">>$activeChild.clothes<</replace>>
	<</link>> |
	<<link "Sweater">>
		<<set $activeChild.clothes = "a sweater", $activeChild.choosesOwnClothes = 0>>
		<<replace "#clothes">>$activeChild.clothes<</replace>>
	<</link>> |
	<<link "T-shirt">>
		<<set $activeChild.clothes = "a t-shirt", $activeChild.choosesOwnClothes = 0>>
		<<replace "#clothes">>$activeChild.clothes<</replace>>
	<</link>>

	Harsh:
	<<link "Go naked">>
		<<set $activeChild.clothes = "no clothing", $activeChild.choosesOwnClothes = 0>>
		<<replace "#clothes">>$activeChild.clothes<</replace>>
	<</link>>

Collar: $activeChild.collar.
	<<link "None">>
		<<set $activeChild.collar = "none">>
		<<replace "#collar">>$activeChild.collar<</replace>>
	<</link>>

    //Nice://
	<<link "Stylish leather">>
		<<set $activeChild.collar = "stylish leather">>
		<<replace "#collar">>$activeChild.collar<</replace>>
	<</link>> |
	<<link "Satin choker">>
		<<set $activeChild.collar = "satin choker">>
		<<replace "#collar">>$activeChild.collar<</replace>>
	<</link>> |
	<<link "Silken ribbon">>
		<<set $activeChild.collar = "silk ribbon">>
		<<replace "#collar">>$activeChild.collar<</replace>>
	<</link>> |
	<<link "Heavy gold">>
		<<set $activeChild.collar = "heavy gold">>
		<<replace "#collar">>$activeChild.collar<</replace>>
	<</link>> |
	<<link "Pretty jewelry">>
		<<set $activeChild.collar = "pretty jewelry">>
		<<replace "#collar">>$activeChild.collar<</replace>>
	<</link>> |
	<<if $seeAge>>
		<<link "Nice retirement counter">>
			<<set $activeChild.collar = "nice retirement counter">>
			<<replace "#collar">>$activeChild.collar<</replace>>
		<</link>> |
	<</if>>
	<<link "Bell">>
		<<set $activeChild.collar = "bell collar">>
		<<replace "#collar">>$activeChild.collar<</replace>>
	<</link>> |
	<<link "Cowbell">>
		<<set $activeChild.collar = "leather with cowbell">>
		<<replace "#collar">>$activeChild.collar<</replace>>
	<</link>>
	<<if isItemAccessible("bowtie")>>
	| //FS// <<link "Bowtie collar">>
			<<set $activeChild.collar = "bowtie">>
			<<replace "#collar">>$activeChild.collar<</replace>>
		<</link>>
	<</if>>
	<<if isItemAccessible("ancient Egyptian")>>
	| //FS// <<link "Ancient Egyptian">>
			<<set $activeChild.collar = "ancient Egyptian">>
			<<replace "#collar">>$activeChild.collar<</replace>>
		<</link>>
	<</if>>

	Harsh:
		<<link "Tight steel">>
			<<set $activeChild.collar = "tight steel">>
			<<replace "#collar">>$activeChild.collar<</replace>>
		<</link>> |
	<<if $seeAge>>
		<<link "Cruel retirement counter">>
			<<set $activeChild.collar = "cruel retirement counter">>
			<<replace "#collar">>$activeChild.collar<</replace>>
		<</link>> |
	<</if>>
	<<link "Uncomfortable leather">>
	<<set $activeChild.collar = "uncomfortable leather">>
		<<replace "#collar">>$activeChild.collar<</replace>>
	<</link>> |
	<<if $activeChild.preg > -1 && $seePreg != 0>>
		<<link "Pregnancy biometrics">>
			<<set $activeChild.collar = "preg biometrics">>
			<<replace "#collar">>$activeChild.collar<</replace>>
		<</link>> |
	<</if>>
	<<link "Shock punishment">>
		<<set $activeChild.collar = "shock punishment">>
		<<replace "#collar">>$activeChild.collar<</replace>>
	<</link>> |
	<<link "Dildo gag">>
		<<set $activeChild.collar = "dildo gag">>
		<<replace "#collar">>$activeChild.collar<</replace>>
	<</link>> |
	<<if isItemAccessible("massive dildo gag") && $activeChild.skill.oral > 50>>
		<<link "Massive dildo gag">>
			<<set $activeChild.collar = "massive dildo gag">>
			<<replace "#collar">>$activeChild.collar<</replace>>
		<</link>> |
	<</if>>
	<<link "Ball gag">>
		<<set $activeChild.collar = "ball gag">>
		<<replace "#collar">>$activeChild.collar<</replace>>
		<</link>> |
	<<link "Bit gag">>
		<<set $activeChild.collar = "bit gag">>
		<<replace "#collar">>$activeChild.collar<</replace>>
		<</link>> |
	<<link "Neck corset">>
		<<set $activeChild.collar = "neck corset">>
		<<replace "#collar">>$activeChild.collar<</replace>>
		<</link>> |
	<<link "Porcelain mask">>
		<<set $activeChild.collar = "porcelain mask">>
		<<replace "#collar">>$activeChild.collar<</replace>>
		<</link>>

	<<if hasAnyArms($activeChild)>>

Arm accessory: $activeChild.armAccessory.
		<<link "None">>
			<<set $activeChild.armAccessory = "none">>
			<<replace "#armAccessory">>$activeChild.armAccessory<</replace>>
		<</link>> |
		<<link "Hand Gloves">>
			<<set $activeChild.armAccessory = "hand gloves">>
			<<replace "#armAccessory">>$activeChild.armAccessory<</replace>>
		<</link>> |
		<<link "Elbow Gloves">>
			<<set $activeChild.armAccessory = "elbow gloves">>
			<<replace "#armAccessory">>$activeChild.armAccessory<</replace>>
		<</link>>
	<</if>>

	<<if hasAnyLegs($activeChild)>>

Shoes: $activeChild.shoes.
		<<link "Go barefoot">>
			<<set $activeChild.shoes = "none">>
			<<replace "#shoes">>$activeChild.shoes<</replace>>
		<</link>> |
		<<link "Flats">>
			<<set $activeChild.shoes = "flats">>
			<<replace "#shoes">>$activeChild.shoes<</replace>>
		<</link>> |
		<<link "Heels">>
			<<set $activeChild.shoes = "heels">>
			<<replace "#shoes">>$activeChild.shoes<</replace>>
		<</link>> |
		<<link "Pumps">>
			<<set $activeChild.shoes = "pumps">>
			<<replace "#shoes">>$activeChild.shoes<</replace>>
		<</link>> |
		<<link "Thigh boots">>
			<<set $activeChild.shoes = "boots">>
			<<replace "#shoes">>$activeChild.shoes<</replace>>
		<</link>> |
		<<link "Painfully extreme heels">>
			<<set $activeChild.shoes = "extreme heels">>
			<<replace "#shoes">>$activeChild.shoes<</replace>>
		<</link>>

Leg accessory: $activeChild.legAccessory.
		<<link "None">>
			<<set $activeChild.legAccessory = "none">>
			<<replace "#legAccessory">>$activeChild.legAccessory<</replace>>
		<</link>> |
		<<link "Short Stockings">>
			<<set $activeChild.legAccessory = "short stockings">>
			<<replace "#legAccessory">>$activeChild.legAccessory<</replace>>
		<</link>> |
		<<link "Long Stockings">>
			<<set $activeChild.legAccessory = "long stockings">>
			<<replace "#legAccessory">>$activeChild.legAccessory<</replace>>
		<</link>>
	<</if>>

Torso accessory: $activeChild.bellyAccessory.
	<<link "None">>
		<<set $activeChild.bellyAccessory = "none">>
		<<replace "#bellyAccessory">>$activeChild.bellyAccessory<</replace>>
	<</link>> |
	<<link "Tight corset">>
		<<set $activeChild.bellyAccessory = "a corset">>
		<<replace "#bellyAccessory">>$activeChild.bellyAccessory<</replace>>
	<</link>>
	<<if ($activeChild.breedingMark != 1 || !$propOutcome || $eugenicsFullControl)>> |
	|	<<link "Extreme corset">>
			<<set $activeChild.bellyAccessory = "an extreme corset">>
			<<replace "#bellyAccessory">>$activeChild.bellyAccessory<</replace>>
		<</link>>
	<</if>>
	<<if ($activeChild.belly > 10000)>>
	|	<<link "Supportive band">>
			<<set $activeChild.bellyAccessory = "a support band">>
			<<replace "#bellyAccessory">>$activeChild.bellyAccessory<</replace>>
		<</link>>
	<</if>>
	<<if isItemAccessible("a small empathy belly")>> /* works for all of them */
	<<if $activeChild.belly < 1500 && $activeChild.weight < 130>> |
		|	<<link "1st Trimester belly">>
				<<set $activeChild.bellyAccessory = "a small empathy belly">>
				<<replace "#bellyAccessory">>$activeChild.bellyAccessory<</replace>>
			<</link>>
		|	<<link "2nd Trimester belly">>
				<<set $activeChild.bellyAccessory = "a medium empathy belly">>
				<<replace "#bellyAccessory">>$activeChild.bellyAccessory<</replace>>
			<</link>>
		|	<<link "3rd Trimester belly">>
				<<set $activeChild.bellyAccessory = "a large empathy belly">>
				<<replace "#bellyAccessory">>$activeChild.bellyAccessory<</replace>>
			<</link>>
		|	<<link "3rd Trimester twins belly">>
				<<set $activeChild.bellyAccessory = "a huge empathy belly">>
				<<replace "#bellyAccessory">>$activeChild.bellyAccessory<</replace>>
			<</link>>
		<<else>>
			| $His stomach is too big to fit an empathy belly around.
		<</if>>
	<</if>>

Anal accessory: $activeChild.buttplug.
	<<link "None">>
		<<set $activeChild.buttplug = "none", $activeChild.buttplugAttachment = "none">>
		<<replace "#buttplug">>$activeChild.buttplug<</replace>>
	<</link>> |
	<<link "Normal">>
		<<set $activeChild.buttplug = "plug">>
		<<replace "#buttplug">>$activeChild.buttplug<</replace>>
	<</link>>
	<<if isItemAccessible("long plug") && ($activeChild.breedingMark != 1 || !$propOutcome || $eugenicsFullControl)>>
		<<link "Long">>
			<<set $activeChild.buttplug = "long plug">>
			<<replace "#buttplug">>$activeChild.buttplug<</replace>>
		<</link>>
	<</if>>
	<<link "Large">>
		<<set $activeChild.buttplug = "large plug">>
		<<replace "#buttplug">>$activeChild.buttplug<</replace>>
	<</link>>
	<<if isItemAccessible("long, large plug") && ($activeChild.breedingMark != 1 || !$propOutcome || $eugenicsFullControl)>>
		<<link "Long and large">>
			<<set $activeChild.buttplug = "long, large plug">>
			<<replace "#buttplug">>$activeChild.buttplug<</replace>>
		<</link>> |
	<</if>>
	<<if $activeChild.anus >= 2>>
		<<link "Huge">>
			<<set $activeChild.buttplug = "huge plug">>
			<<replace "#buttplug">>$activeChild.buttplug<</replace>>
		<</link>>
	<</if>>
	<<if isItemAccessible("long, huge plug")>>
		<<if ($activeChild.breedingMark != 1 || !$propOutcome || $eugenicsFullControl) && $activeChild.anus >= 2>>
			<<link "Long and huge">>
				<<set $activeChild.buttplug = "long, huge plug">>
				<<replace "#buttplug">>$activeChild.buttplug<</replace>>
			<</link>> |
		<</if>>
	<</if>>
	<<if isItemAccessible("tail") && $activeChild.buttplug != "none">>
		    Anal accessory attachment: $activeChild.buttplugAttachment.
		<<link "None">>
			<<set $activeChild.buttplugAttachment = "none">>
			<<replace "#buttplugAttach">>$activeChild.buttplugAttachment<</replace>>
		<</link>>
		<<if $toysBoughtButtPlugTails>>
			<<link "Tail">>
				<<set $activeChild.buttplugAttachment = "tail">>
				<<replace "#buttplugAttach">>$activeChild.buttplugAttachment<</replace>>
			<</link>> |
			<<link "Cat tail">>
				<<set $activeChild.buttplugAttachment = "cat tail">>
				<<replace "#buttplugAttach">>$activeChild.buttplugAttachment<</replace>>
			<</link>> |
			<<link "Fox tail">>
				<<set $activeChild.buttplugAttachment = "fox tail">>
				<<replace "#buttplugAttach">>$activeChild.buttplugAttachment<</replace>>
			<</link>>
		<</if>>
	<</if>>
	<<if $activeChild.vagina > -1>>

Vaginal accessory: $activeChild.vaginalAccessory.
		<<link "None">>
			<<set $activeChild.vaginalAccessory = "none">>
			<<replace "#vaginalAccessory">>$activeChild.vaginalAccessory<</replace>>
			/* TODO: replace these */
			<<SlaveInteractImpreg>>
			<<SlaveInteractFertility>>
			<<SlaveInteractSexOption>>
			<<SlaveInteractAnalSexOption>>
			<<SlaveInteractGropeOption>>
			<<SlaveInteractDickGropeOption>>
			<<SlaveInteractAnalGropeOption>>
		<</link>> |
		<<link "Dildo">>
			<<set $activeChild.vaginalAccessory = "dildo">>
			<<replace "#vaginalAccessory">>$activeChild.vaginalAccessory<</replace>>
		<</link>> |
		<<if isItemAccessible("long dildo") && ($activeChild.breedingMark != 1 || !$propOutcome || $eugenicsFullControl)>>
			<<link "Long dildo">>
				<<set $activeChild.vaginalAccessory = "long dildo">>
				<<replace "#vaginalAccessory">>$activeChild.vaginalAccessory<</replace>>
			<</link>> |
		<</if>>
		<<link "Large dildo">>
			<<set $activeChild.vaginalAccessory = "large dildo">>
			<<replace "#vaginalAccessory">>$activeChild.vaginalAccessory<</replace>>
		<</link>>
		<<if isItemAccessible("long, large dildo") && ($activeChild.breedingMark != 1 || !$propOutcome || $eugenicsFullControl)>>
		|	<<link "Large and long dildo">>
				<<set $activeChild.vaginalAccessory = "long, large dildo">>
				<<replace "#vaginalAccessory">>$activeChild.vaginalAccessory<</replace>>
			<</link>>
		<</if>>
		<<if $activeChild.vagina >= 2>>
		|	<<link "Huge dildo">>
				<<set $activeChild.vaginalAccessory = "huge dildo">>
				<<replace "#vaginalAccessory">>$activeChild.vaginalAccessory<</replace>>
			<</link>>
		<</if>>
		<<if isItemAccessible("long, huge dildo") && ($activeChild.breedingMark != 1 || !$propOutcome || $eugenicsFullControl)>>
		|	<<if $activeChild.vagina >= 2>>
				<<link "Huge and long dildo">>
					<<set $activeChild.vaginalAccessory = "long, huge dildo">>
					<<replace "#vaginalAccessory">>$activeChild.vaginalAccessory<</replace>>
				<</link>>
			<</if>>
		<</if>>
	<</if>>
	<<if $activeChild.dick > 0>>

Dick accessory: $activeChild.dickAccessory.
		<<link "None">>
			<<set $activeChild.dickAccessory = "none">>
			<<replace "#dickAccessory">>$activeChild.dickAccessory<</replace>>
			<<SlaveInteractSexOption>>
			<<SlaveInteractAnalSexOption>>
			<<SlaveInteractGropeOption>>
			<<SlaveInteractDickGropeOption>>
			<<SlaveInteractAnalGropeOption>>
		<</link>>
		<<if isItemAccessible("bullet vibrator") && $toysBoughtVaginalAttachments>>
		|	<<link "Bullet vibrator">>
				<<set $activeChild.dickAccessory = "bullet vibrator">>
				<<replace "#dickAccessory">>$activeChild.dickAccessory<</replace>>
			<</link>>
		<</if>>
		<<if isItemAccessible("smart bullet vibrator") && $toysBoughtVaginalAttachments>>
		|	<<link "Smart bullet vibrator">>
				<<set $activeChild.dickAccessory = "smart bullet vibrator">>
				<<replace "#dickAccessory">>$activeChild.dickAccessory<</replace>>
			<</link>>
		<</if>>
	<</if>>

	/* TODO: redo all this */
	/* TODO: will children have chastity options?

Chastity device: <<if $activeChild.chastityAnus && $activeChild.chastityPenis && $activeChild.chastityVagina>>Full Chastity<<elseif $activeChild.chastityPenis && $activeChild.chastityVagina>>Genital Chastity<<elseif $activeChild.chastityAnus && $activeChild.chastityPenis>>Combined Chastity Cage<<elseif $activeChild.chastityAnus && $activeChild.chastityVagina>>Combined Chastity Belt<<elseif $activeChild.chastityVagina>>Chastity Belt<<elseif $activeChild.chastityPenis>>Chastity Cage<<elseif $activeChild.chastityAnus>>Anal Chastity<<elseif $activeChild.chastityAnus == 0 && $activeChild.chastityPenis == 0 && $activeChild.chastityVagina == 0>>None<<else>>THERE HAS BEEN AN ERROR.<</if>>

	<<link "None">>
		<<set $activeChild.chastityAnus = 0>>
		<<set $activeChild.chastityPenis = 0>>
		<<set $activeChild.chastityVagina = 0>>
		<<replace "#chastity">>None<</replace>>
		<<SlaveInteractAnalGropeOption>>
		<<SlaveInteractAnalSexOption>>
		<<SlaveInteractDickGropeOption>>
		<<SlaveInteractFertility>>
		<<SlaveInteractGropeOption>>
		<<SlaveInteractImpreg>>
		<<SlaveInteractSexOption>>
	<</link>> |
	<<link "Anal Chastity">>
		<<set $activeChild.choosesOwnChastity = 0>>
		<<set $activeChild.chastityAnus = 1>>
		<<set $activeChild.chastityPenis = 0>>
		<<set $activeChild.chastityVagina = 0>>
		<<replace "#chastity">>Anal Chastity<</replace>>
		<<SlaveInteractAnalGropeOption>>
		<<SlaveInteractAnalSexOption>>
		<<SlaveInteractDickGropeOption>>
		<<SlaveInteractFertility>>
		<<SlaveInteractGropeOption>>
		<<SlaveInteractImpreg>>
		<<SlaveInteractSexOption>>
	<</link>> |
	<<if $activeChild.vagina > -1>>
		<<link "Chastity Belt">>
			<<set $activeChild.choosesOwnChastity = 0>>
			<<set $activeChild.chastityAnus = 0>>
			<<set $activeChild.chastityPenis = 0>>
			<<set $activeChild.chastityVagina = 1>>
			<<replace "#chastity">>Vaginal Chastity<</replace>>
			<<SlaveInteractAnalGropeOption>>
			<<SlaveInteractAnalSexOption>>
			<<SlaveInteractDickGropeOption>>
			<<SlaveInteractFertility>>
			<<SlaveInteractGropeOption>>
			<<SlaveInteractImpreg>>
			<<SlaveInteractSexOption>>
		<</link>> |
		<<link "Combined Chastity Belt">>
			<<set $activeChild.choosesOwnChastity = 0>>
			<<set $activeChild.chastityAnus = 0>>
			<<set $activeChild.chastityPenis = 0>>
			<<set $activeChild.chastityVagina = 0>>
			<<replace "#chastity">>Combined Chastity Belt<</replace>>
			<<SlaveInteractAnalGropeOption>>
			<<SlaveInteractAnalSexOption>>
			<<SlaveInteractDickGropeOption>>
			<<SlaveInteractFertility>>
			<<SlaveInteractGropeOption>>
			<<SlaveInteractImpreg>>
			<<SlaveInteractSexOption>>
		<</link>>
	<</if>>
	<<if $activeChild.dick > 0>>
	|	<<link "Chastity Cage">>
			<<set $activeChild.choosesOwnChastity = 0>>
			<<set $activeChild.chastityAnus = 0>>
			<<set $activeChild.chastityPenis = 1>>
			<<set $activeChild.chastityVagina = 0>>
			<<replace "#chastity">>Chastity Cage<</replace>>
			<<SlaveInteractAnalGropeOption>>
			<<SlaveInteractAnalSexOption>>
			<<SlaveInteractDickGropeOption>>
			<<SlaveInteractFertility>>
			<<SlaveInteractGropeOption>>
			<<SlaveInteractImpreg>>
			<<SlaveInteractSexOption>>
		<</link>> |
		<<link "Combined Chastity Cage">>
			<<set $activeChild.choosesOwnChastity = 0>>
			<<set $activeChild.chastityAnus = 1>>
			<<set $activeChild.chastityPenis = 1>>
			<<set $activeChild.chastityVagina = 0>>
			<<replace "#chastity">>Combined Chastity Cage<</replace>>
			<<SlaveInteractAnalGropeOption>>
			<<SlaveInteractAnalSexOption>>
			<<SlaveInteractDickGropeOption>>
			<<SlaveInteractFertility>>
			<<SlaveInteractGropeOption>>
			<<SlaveInteractImpreg>>
			<<SlaveInteractSexOption>>
		<</link>>
		<<if $activeChild.vagina > -1>>
		|	<<link "Genital Chastity">>
				<<set $activeChild.choosesOwnChastity = 0>>
				<<set $activeChild.chastityAnus = 0>>
				<<set $activeChild.chastityPenis = 1>>
				<<set $activeChild.chastityVagina = 1>>
				<<replace "#chastity">>Genital Chastity<</replace>>
				<<SlaveInteractAnalGropeOption>>
				<<SlaveInteractAnalSexOption>>
				<<SlaveInteractDickGropeOption>>
				<<SlaveInteractFertility>>
				<<SlaveInteractGropeOption>>
				<<SlaveInteractImpreg>>
				<<SlaveInteractSexOption>>
			<</link>> |
			<<link "Full Chastity">>
				<<set $activeChild.choosesOwnChastity = 0>>
				<<set $activeChild.chastityAnus = 1>>
				<<set $activeChild.chastityPenis = 1>>
				<<set $activeChild.chastityVagina = 1>>
				<<replace "#chastity">>Full Chastity<</replace>>
				<<SlaveInteractAnalGropeOption>>
				<<SlaveInteractAnalSexOption>>
				<<SlaveInteractDickGropeOption>>
				<<SlaveInteractFertility>>
				<<SlaveInteractGropeOption>>
				<<SlaveInteractImpreg>>
				<<SlaveInteractSexOption>>
			<</link>>
		<</if>>
	<</if>>

	<<if $arcologies[0].FSRestart != "unset" && $activeChild.devotion > 20 && $activeChild.trust > 0 && $activeChild.choosesOwnClothes>>

		<<if $activeChild.choosesOwnChastity>>
			$He is allowed to decide whether $he to wear chastity devices.
			[[Withdraw Privilege|Child Interact][$activeChild.choosesOwnChastity = 0]]
		<<else>>
			$He is not allowed to choose whether to wear chastity devices.
			[[Allow Choice|Child Interact][$activeChild.choosesOwnChastity = 1]]
		<</if>>
	<</if>>
*/
<</if>>	/* CLOSES WARDROBE CHECK */

__Physical Regimen:__

/* TODO: will children be able to be put on drugs? if so, which drugs? */

Drugs: $activeChild.drugs.
	<<link "None">>
		<<set $activeChild.drugs = "no drugs">>
		<<SlaveInteractDrugs>>	/* TODO: */
		<</link>>
		<<if $activeChild.drugs == "intensive breast injections" || $activeChild.drugs == "intensive butt injections" || $activeChild.drugs == "intensive penis enhancement" || $activeChild.drugs == "intensive testicle enhancement">>
		|	<<link "Moderate">>
				<<switch $activeChild.drugs>>
				<<case "intensive breast injections">>
					<<set $activeChild.drugs = "breast injections">>
				<<case "intensive butt injections">>
					<<set $activeChild.drugs = "butt injections">>
				<<case "intensive penis enhancement">>
					<<set $activeChild.drugs = "penis enhancement">>
				<<case "intensive testicle enhancement">>
					<<set $activeChild.drugs = "testicle enhancement">>
				<</switch>>
				<<SlaveInteractDrugs>>
			<</link>>
		<<elseif $activeChild.drugs == "breast injections" || $activeChild.drugs == "butt injections" || $activeChild.drugs == "penis enhancement" || $activeChild.drugs == "testicle enhancement">>
		|	<<link "Intensify">>
				<<set $activeChild.drugs = "intensive " + $activeChild.drugs>>
				<<SlaveInteractDrugs>>
			<</link>>
		<</if>>
		<<if $activeChild.intelligence > -100>>
		|	<<link "Psychosuppressants">>
				<<set $activeChild.drugs = "psychosuppressants">>
				<<SlaveInteractDrugs>>
			<</link>>
		<<else>>
		|	Psychosuppressants
		<</if>>
		<<if ($activeChild.boobs < 48000)>>
		|	<<link "Breasts">>
				<<set $activeChild.drugs = "breast injections">>
				<<SlaveInteractDrugs>>
			<</link>>
		<<else>>
		|	Breasts
		<</if>>
		<<if $arcologies[0].FSAssetExpansionistResearch>>
			<<if ($activeChild.boobs < 25000)>>
			|	<<link "Hyper-Breasts">>
					<<set $activeChild.drugs = "hyper breast injections">>
					<<SlaveInteractDrugs>>
				<</link>>
			<<else>>
			|	Hyper Breasts
			<</if>>
		<</if>>
		<<if $arcologies[0].FSSlimnessEnthusiastResearch>>
			<<if ($activeChild.boobs-$activeChild.boobsImplant > 100)>>
			|	<<link "Breast reducers">>
					<<set $activeChild.drugs = "breast redistributors">>
					<<SlaveInteractDrugs>>
				<</link>>
			<<else>>
			|	Breast reducers
			<</if>>
			<<if ($activeChild.nipples == "huge" || $activeChild.nipples == "puffy" || $activeChild.nipples == "cute")>>
			|	<<link "Nipple reducers">>
					<<set $activeChild.drugs = "nipple atrophiers">>
					<<SlaveInteractDrugs>>
				<</link>>
			<<else>>
			|	Nipple reducers
			<</if>>
		<</if>>
		<<if ($activeChild.butt < 9)>>
		|	<<link "Buttocks">>
				<<set $activeChild.drugs = "butt injections">>
				<<SlaveInteractDrugs>>
			<</link>>
		<<else>>
		|	Buttocks
		<</if>>
		<<if $arcologies[0].FSAssetExpansionistResearch>>
			<<if ($activeChild.butt < 20)>>
			|	<<link "Hyper-Buttocks">>
					<<set $activeChild.drugs = "hyper butt injections">>
					<<SlaveInteractDrugs>>
				<</link>>
			<<else>>
			|	Hyper Buttocks
			<</if>>
		<</if>>
		<<if $arcologies[0].FSSlimnessEnthusiastResearch>>
			<<if ($activeChild.butt-$activeChild.buttImplant > 0)>>
			|	<<link "Butt reducers">>
					<<set $activeChild.drugs = "butt redistributors">>
					<<SlaveInteractDrugs>>
				<</link>>
			<<else>>
			|	Butt reducers
			<</if>>
		<</if>>
		<<if ($activeChild.lips <= 95) || (($activeChild.lips <= 85) && ($seeExtreme != 1))>>
		|	<<link "Lips">>
				<<set $activeChild.drugs = "lip injections">>
				<<SlaveInteractDrugs>>
			<</link>>
		<<else>>
		|	Lips
		<</if>>
		<<if $arcologies[0].FSSlimnessEnthusiastResearch>>
			<<if ($activeChild.lips-$activeChild.lipsImplant > 0)>>
			|	<<link "Lip reducers">>
					<<set $activeChild.drugs = "lip atrophiers">>
					<<SlaveInteractDrugs>>
				<</link>>
			<<else>>
			|	Lip reducers
			<</if>>
		<</if>>
		<<if $growthStim>>
			<<if canImproveHeight($activeChild)>>
			|	<<link "Growth Stimulants">>
					<<set $activeChild.drugs = "growth stimulants">>
					<<SlaveInteractDrugs>>
				<</link>>
			<<else>>
			|	Growth Stimulants
			<</if>>
		<</if>>
		<<if ($activeChild.dick > 0)>>
			<<if ($activeChild.dick < 10)>>
			|	<<link "Penis enhancement">>
					<<set $activeChild.drugs = "penis enhancement">>
					<<SlaveInteractDrugs>>
				<</link>>
			<<else>>
			|	Penis enhancement
			<</if>>
		<<else>>
			<<if ($activeChild.clit < 5)>>
			|	<<link "Clitoris enhancement">>
					<<set $activeChild.drugs = "penis enhancement">>
					<<SlaveInteractDrugs>>
				<</link>>
			<<else>>
			|	Clitoris enhancement
			<</if>>
		<</if>>
		<<if $arcologies[0].FSAssetExpansionistResearch>>
			<<if ($activeChild.dick > 0)>>
				<<if ($activeChild.dick < 31)>>
				|	<<link "Hyper penis enhancement">>
						<<set $activeChild.drugs = "hyper penis enhancement">>
						<<SlaveInteractDrugs>>
					<</link>>
				<<else>>
				|	Hyper penis enhancement
				<</if>>
			<<else>>
				<<if ($activeChild.clit < 5)>>
				|	<<link "Hyper clitoris enhancement">>
						<<set $activeChild.drugs = "penis enhancement">>
						<<SlaveInteractDrugs>>
					<</link>>
				<<else>>
				|	Hyper clitoris enhancement
				<</if>>
			<</if>>
		<</if>>
		<<if $arcologies[0].FSSlimnessEnthusiastResearch>>
			<<if ($activeChild.dick > 1)>>
			|	<<link "Penis reducers">>
					<<set $activeChild.drugs = "penis atrophiers">>
					<<SlaveInteractDrugs>>
				<</link>>
			<<elseif $activeChild.dick>>
			|	Penis reducers
			<</if>>
		<</if>>
		<<if ($activeChild.balls > 0)>>
		|	<<link "Testicle enhancement">>
				<<set $activeChild.drugs = "testicle enhancement">>
				<<SlaveInteractDrugs>>
			<</link>>
			<<if $arcologies[0].FSAssetExpansionistResearch>>
			|	<<link "Hyper testicle enhancement">>
					<<set $activeChild.drugs = "hyper testicle enhancement">>
					<<SlaveInteractDrugs>>
				<</link>>
			<</if>>
		<</if>>
		<<if $arcologies[0].FSSlimnessEnthusiastResearch>>
			<<if ($activeChild.balls > 1)>>
			|	<<link "Testicle reducers">>
					<<set $activeChild.drugs = "testicle atrophiers">>
					<<SlaveInteractDrugs>>
				<</link>>
			<<elseif $activeChild.balls>>
			|	Testicle reducers
			<</if>>
			<<if ($activeChild.clit > 0)>>
			|	<<link "Clitoris reducers">>
					<<set $activeChild.drugs = "clitoris atrophiers">>
					<<SlaveInteractDrugs>>
				<</link>>
			<</if>>
			<<if $activeChild.labia > 0 && $activeChild.vagina > -1>>
			|	<<link "Labia reducers">>
					<<set $activeChild.drugs = "labia atrophiers">>
					<<SlaveInteractDrugs>>
				<</link>>
			<</if>>
		<</if>>
		<<if $arcologies[0].FSYouthPreferentialistResearch>>
			<<if ($activeChild.visualAge > 18)>>
			|	<<link "Anti-aging cream">>
					<<set $activeChild.drugs = "anti-aging cream">>
					<<SlaveInteractDrugs>>
				<</link>>
			<<else>>
			|	Anti-aging cream
			<</if>>
		<</if>>
	|	<<link "Steroids">>
			<<set $activeChild.drugs = "steroids">>
			<<SlaveInteractDrugs>>
		<</link>>
		<<if $arcologies[0].FSSlimnessEnthusiastResearch>>
			<<if ($activeChild.weight > -95)>>
			|	<<link "Weight loss pills">>
					<<set $activeChild.drugs = "appetite suppressors">>
					<<SlaveInteractDrugs>>
				<</link>>
			<<else>>
			|	Weight loss pills
			<</if>>
		<</if>>
		<<if $precociousPuberty && $pubertyHormones && ($activeChild.breedingMark != 1 || !$propOutcome || $eugenicsFullControl)>>
			<<if ($activeChild.ovaries || $activeChild.mpreg) && $activeChild.pubertyXX == 0>>
			|	<<link "Female hormone injections">>
					<<set $activeChild.drugs = "female hormone injections">>
					<<SlaveInteractDrugs>>
				<</link>>
			<</if>>
			<<if $activeChild.balls > 0 && $activeChild.pubertyXY == 0>>
			|	<<link "Male hormone injections">>
					<<set $activeChild.drugs = "male hormone injections">>
					<<SlaveInteractDrugs>>
				<</link>>
			<</if>>
		<</if>>
	|	<<link "Hormone enhancers">>
			<<set $activeChild.drugs = "hormone enhancers">>
			<<SlaveInteractDrugs>>
		<</link>>
	|	<<link "Hormone blockers">>
			<<set $activeChild.drugs = "hormone blockers">>
			<<SlaveInteractDrugs>>
		<</link>>
		<<if $activeChild.boobs > 250 && $activeChild.boobShape != "saggy" && $purchasedSagBGone>>
		|	<<link "Sag-B-Gone breast lifting cream">>
				<<set $activeChild.drugs = "sag-B-gone">>
				<<SlaveInteractDrugs>>
			<</link>>
		<</if>>

Health: $activeChild.curatives.
<<link "None">>
	<<set $activeChild.curatives = "none">>
	<<replace "#curatives">>$activeChild.curatives<</replace>>
<</link>> |
<<link "Preventatives">>
	<<set $activeChild.curatives = "preventatives">>
	<<replace "#curatives">>$activeChild.curatives<</replace>>
<</link>> |
<<link "Curatives">>
	<<set $activeChild.curatives = "curatives">>
	<<replace "#curatives">>$activeChild.curatives<</replace>>
<</link>>

/* TODO: will children be able to be put on aphrodisiacs? */
Aphrodisiacs: $activeChild.aphrodisiacs.
<<link "None">>
	<<set $activeChild.aphrodisiacs = "none">>
	<<replace "#aphrodisiacs">>$activeChild.aphrodisiacs<</replace>>
<</link>> |
<<link "Apply">>
	<<set $activeChild.aphrodisiacs = "applied">>
	<<replace "#aphrodisiacs">>$activeChild.aphrodisiacs<</replace>>
<</link>> |
<<link "Extreme">>
	<<set $activeChild.aphrodisiacs = "extreme">>
	<<replace "#aphrodisiacs">>$activeChild.aphrodisiacs<</replace>>
<</link>> |
<<link "Anaphrodisiacs">>
	<<set $activeChild.aphrodisiacs = "anaphrodisiacs">>
	<<replace "#aphrodisiacs">>$activeChild.aphrodisiacs<</replace>>
<</link>>

/* TODO: will children be able to be bloated*/

<<if $activeChild.inflation > 0>>

	__Required Bloating__: <<if $activeChild.inflation == 3>><<print "$He is required to keep 2 gallons of $activeChild.inflationType in $him at all times">><<elseif $activeChild.inflation == 2>><<print "$He is required to keep 4 liters of $activeChild.inflationType in $him at all times">><<elseif $activeChild.inflation>><<print "$He is required to keep 2 liters of $activeChild.inflationType in $him at all times">><</if>>.
	<<if $activeChild.inflationMethod == 3>>
		<<link "Let $him deflate">>
			<<set $activeChild.inflation = 0, $activeChild.inflationType = "none" ,$activeChild.inflationMethod = 0, $activeChild.cumSource = 0, $activeChild.milkSource = 0, SetBellySize($activeChild)>>
			<<SlaveInteractImpreg>>
			<<SlaveInteractFertility>>
			<</link>>
	<<elseif $activeChild.inflationType == "milk">>
		<<link "Let $him deflate">>
			<<set $activeChild.inflation = 0, $activeChild.inflationType = "none" ,$activeChild.inflationMethod = 0, SetBellySize($activeChild)>>
			<<SlaveInteractImpreg>>
			<<SlaveInteractFertility>>
			<</link>>
	<<elseif $activeChild.inflationType == "cum">>
		<<link "Let $him deflate">>
			<<set $activeChild.inflation = 0, $activeChild.inflationType = "none" ,$activeChild.inflationMethod = 0, SetBellySize($activeChild)>>
			<<SlaveInteractImpreg>>
			<<SlaveInteractFertility>>
			<</link>>
	<<else>>
		<<link "Let $him deflate">>
			<<set $activeChild.inflation = 0, $activeChild.inflationType = "none" ,$activeChild.inflationMethod = 0, SetBellySize($activeChild)>>
			<<SlaveInteractImpreg>>
			<<SlaveInteractFertility>>
			<</link>>
	<</if>>
<</if>>

Hormones: $activeChild.hormones.
<<link "Intensive Female">>
	<<set $activeChild.hormones = "intensive female">>
	<<replace "#hormones">>$activeChild.hormones<</replace>>
<</link>> |
<<link "Female">>
	<<set $activeChild.hormones = "female">>
	<<replace "#hormones">>$activeChild.hormones<</replace>>
<</link>> |
<<link "None">>
	<<set $activeChild.hormones = "none">>
	<<replace "#hormones">>$activeChild.hormones<</replace>>
<</link>> |
<<link "Male">>
	<<set $activeChild.hormones = "male">>
	<<replace "#hormones">>$activeChild.hormones<</replace>>
<</link>> |
<<link "Intensive Male">>
	<<set $activeChild.hormones = "intensive male">>
	<<replace "#hormones">>$activeChild.hormones<</replace>>
<</link>>

Diet: $activeChild.diet.
<<link "Healthy">>
	<<set $activeChild.diet = "healthy">>
	<<replace "#diet">>$activeChild.diet<</replace>>
<</link>>
<<if ($activeChild.health.condition < 90) && ($activeChild.chem >= 10) && ($dietCleanse)>>
|	<<link "Cleanse">>
		<<set $activeChild.diet = "cleansing">>
		<<replace "#diet">>$activeChild.diet<</replace>>
	<</link>> |
<<elseif ($dietCleanse)>>
	| //$He is already healthy//
<</if>>
<<if ($activeChild.balls > 0) && ($cumProDiet)>>
|	<<link "Cum production">>
		<<set $activeChild.diet = "cum production">>
		<<replace "#diet">>$activeChild.diet<</replace>>
	<</link>>
<</if>>
<<if canGetPregnant($activeChild) && ($dietFertility)>>
|	<<link "Fertility">>
		<<set $activeChild.diet = "fertility">>
		<<replace "#diet">>$activeChild.diet<</replace>>
	<</link>>
<</if>>
<<if ($activeChild.weight >= -95)>>
|	<<link "Lose weight">>
		<<set $activeChild.diet = "restricted">>
		<<replace "#diet">>$activeChild.diet<</replace>>
	<</link>>
<<else>>
	| //$He is already underweight//
<</if>>
<<if $activeChild.weight <= 200>>
|	<<link "Fatten">>
		<<set $activeChild.diet = "fattening">>
		<<replace "#diet">>$activeChild.diet<</replace>>
	<</link>>
<<else>>
|	//$He is already extremely overweight//
<</if>>
<<if $feeder>>
|	<<link "Estrogen enriched">>
		<<set $activeChild.diet = "XX">>
		<<replace "#diet">>$activeChild.diet<</replace>>
	<</link>>
|	<<link "Testosterone enriched">>
		<<set $activeChild.diet = "XY">>
		<<replace "#diet">>$activeChild.diet<</replace>>
	<</link>>
	<<if $dietXXY && $activeChild.balls > 0 && ($activeChild.ovaries || $activeChild.mpreg)>>
	|	<<link "Herm hormone blend">>
			<<set $activeChild.diet = "XXY">>
			<<replace "#diet">>$activeChild.diet<</replace>>
		<</link>>
	<</if>>
<</if>>
<<if ($activeChild.muscles <= 95) && !isAmputee($activeChild)>>
|	<<link "Build muscle">><<set $activeChild.diet = "muscle building">><<replace "#diet">>$activeChild.diet<</replace>><</link>>
<<elseif $activeChild.muscles > 95 && !isAmputee($activeChild)>>
	| //$He is maintaining $his enormous musculature//
<<else>>
	| //$He has no limbs and thus can't effectively build muscle//
<</if>>
<<if $activeChild.muscles > 5 && canWalk($activeChild)>>
|	<<link "Slim down">>
		<<set $activeChild.diet = "slimming">>
		<<replace "#diet">>$activeChild.diet<</replace>>
	<</link>>
<<elseif !canWalk($activeChild)>>
	| //$He can't move and thus can't trim down//
<</if>>

/* TODO: replace these with strings */

Diet Base:

	<<if $activeChild.dietCum == 2>>
		Cum Based
	<<elseif ($activeChild.dietCum) && ($activeChild.dietMilk == 0)>>
		Cum Added
	<<elseif ($activeChild.dietCum) && ($activeChild.dietMilk)>>
		Cum and Milk Added
	<<elseif ($activeChild.dietMilk) && ($activeChild.dietCum == 0)>>
		Milk Added
	<<elseif ($activeChild.dietMilk == 2)>>
		Milk Based
	<<elseif ($activeChild.dietCum == 0) && ($activeChild.dietMilk == 0)>>
		Normal
	<<else>>
		THERE HAS BEEN AN ERROR
	<</if>>

<<link "Normal">>
	<<set $activeChild.dietCum = 0>>
	<<set $activeChild.dietMilk = 0>>
	<<replace "#dietBase">>Normal<</replace>>
<</link>> |
<<link "Cum Added">>
	<<set $activeChild.dietCum = 1>>
	<<set $activeChild.dietMilk = 0>>
	<<replace "#dietBase">>Cum Added<</replace>>
<</link>> |
<<link "Milk Added">>
	<<set $activeChild.dietCum = 0>>
	<<set $activeChild.dietMilk = 1>>
	<<replace "#dietBase">>Milk Added<</replace>>
<</link>> |
<<link "Cum & Milk Added">>
	<<set $activeChild.dietCum = 1>>
	<<set $activeChild.dietMilk = 1>>
	<<replace "#dietBase">>Cum & Milk Added<</replace>>
<</link>> |
<<link "Cum Based">>
	<<set $activeChild.dietCum = 2>>
	<<set $activeChild.dietMilk = 0>>
	<<replace "#dietBase">>Cum Based<</replace>>
<</link>> |
<<link "Milk Based">>
	<<set $activeChild.dietCum = 0>>
	<<set $activeChild.dietMilk = 2>>
	<<replace "#dietBase">>Milk Based<</replace>>
<</link>>

__Behavior__:

Living standard: $activeChild.rules.living.
//$His living conditions are managed by $nurseryName's décor.//

Typical punishment: $activeChild.rules.punishment.
<<link "Confinement">>
	<<set $activeChild.rules.punishment = "confinement">>
	<<replace "#standardPunishment">>$activeChild.rules.punishment<</replace>>
<</link>> |
<<link "Whipping">>
	<<set $activeChild.rules.punishment = "whipping">>
	<<replace "#standardPunishment">>$activeChild.rules.punishment<</replace>>
<</link>> |
<<link "Chastity">>
	<<set $activeChild.rules.punishment = "chastity">>
	<<replace "#standardPunishment">>$activeChild.rules.punishment<</replace>>
<</link>> |
<<link "Situational">>
	<<set $activeChild.rules.punishment = "situational">>
	<<replace "#standardPunishment">>$activeChild.rules.punishment<</replace>>
<</link>>

Typical reward: ''$activeChild.rules.reward.''
<<link "Relaxation">><<set $activeChild.rules.reward = "relaxation">><<replace "#standardReward">>$activeChild.rules.reward<</replace>><</link>> |
<<link "Drugs">><<set $activeChild.rules.reward = "drugs">><<replace "#standardReward">>$activeChild.rules.reward<</replace>><</link>> |
<<link "Orgasm">><<set $activeChild.rules.reward = "orgasm">><<replace "#standardReward">>$activeChild.rules.reward<</replace>><</link>> |
<<link "Situational">><<set $activeChild.rules.reward = "situational">><<replace "#standardReward">>$activeChild.rules.reward<</replace>><</link>>

Non-assignment orgasm rules:

Masturbation is ''<<if $activeSlave.rules.release.masturbation === 1>>allowed<<else>>forbidden<</if>>.''
	<<link "Allow">><<set $activeSlave.rules.release.masturbation = 1>><<replace "#relMasturbation">>allowed<</replace>><</link>> |
	<<link "Forbid">><<set $activeSlave.rules.release.masturbation = 0>><<replace "#relMasturbation">>forbidden<</replace>><</link>>

Sex with romantic partner is ''<<if $activeSlave.rules.release.partner === 1>>allowed<<else>>forbidden<</if>>.''
	<<link "Allow">><<set $activeSlave.rules.release.partner = 1>><<replace "#relPartner">>allowed<</replace>><</link>> |
	<<link "Forbid">><<set $activeSlave.rules.release.partner = 0>><<replace "#relPartner">>forbidden<</replace>><</link>>

<<if $seeIncest == 1>>

	Sex with close family is ''<<if $activeSlave.rules.release.family === 1>>allowed<<else>>forbidden<</if>>.''
		<<link "Allow">><<set $activeSlave.rules.release.family = 1>><<replace "#relFamily">>allowed<</replace>><</link>> |
		<<link "Forbid">><<set $activeSlave.rules.release.family = 0>><<replace "#relFamily">>forbidden<</replace>><</link>>

<</if>>

Sex with other slaves is ''<<if $activeSlave.rules.release.slaves === 1>>allowed<<else>>forbidden<</if>>.''
	<<link "Allow">><<set $activeSlave.rules.release.slaves = 1>><<replace "#relSlaves">>allowed<</replace>><</link>> |
	<<link "Forbid">><<set $activeSlave.rules.release.slaves = 0>><<replace "#relSlaves">>forbidden<</replace>><</link>>

Routine sex with <<= properMaster()>> is ''<<if $activeSlave.rules.release.master === 1>>granted<<else>>denied<</if>>.''
	<<link "Grant">><<set $activeSlave.rules.release.master = 1>><<replace "#relMaster">>granted<</replace>><</link>> |
	<<link "Deny">><<set $activeSlave.rules.release.master = 0>><<replace "#relMaster">>denied<</replace>><</link>>

/* TODO: will children be able to have clit piercings? */
<<if $activeChild.clitPiercing == 3>>

	<<if $activeChild.dick < 1>>
		$His smart clit piercing is set to
	<<else>>$His smart frenulum piercing is set to
	<</if>>
	$activeChild.clitSetting.
	<<link "Vanilla">>
		<<set $activeChild.clitSetting = "vanilla">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>> |
	<<link "Oral">>
		<<set $activeChild.clitSetting = "oral">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>> |
	<<link "Anal">>
		<<set $activeChild.clitSetting = "anal">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>> |
	<<link "Boobs">>
		<<set $activeChild.clitSetting = "boobs">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>> |
	<<link "Sub">>
		<<set $activeChild.clitSetting = "submissive">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>> |
	<<link "Dom">>
		<<set $activeChild.clitSetting = "dom">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>> |
	<<link "Humiliation">>
		<<set $activeChild.clitSetting = "humiliation">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>> |
	<<if $seePreg != 0>>
		<<link "Preg">>
			<<set $activeChild.clitSetting = "pregnancy">>
			<<replace "#setting">>$activeChild.clitSetting<</replace>>
		<</link>> |
	<</if>>
	<<link "Pain">>
		<<set $activeChild.clitSetting = "masochist">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>> |
	<<link "Sadism">>
		<<set $activeChild.clitSetting = "sadist">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>> |
	<<link "Men">>
		<<set $activeChild.clitSetting = "men">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>> |
	<<link "Anti-men">>
		<<set $activeChild.clitSetting = "anti-men">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>> |
	<<link "Women">>
		<<set $activeChild.clitSetting = "women">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>> |
	<<link "Anti-women">>
		<<set $activeChild.clitSetting = "anti-women">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>> |
	<<link "All sex">>
		<<set $activeChild.clitSetting = "all">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>> |
	<<link "No sex">>
		<<set $activeChild.clitSetting = "none">>
		<<replace "#setting">>$activeChild.clitSetting<</replace>>
	<</link>>

<</if>>

<<if $activeChild.voice != 0>>

Speech rules: $activeChild.rules.speech.
	<<link "Restrictive">>
		<<set $activeChild.rules.speech = "restrictive">>
			<<replace "#speechRules">>$activeChild.rules.speech<</replace>>
		<</link>> |
	<<link "Permissive">>
		<<set $activeChild.rules.speech = "permissive">>
			<<replace "#speechRules">>$activeChild.rules.speech<</replace>>
		<</link>>
	<<if $activeChild.accent > 0 && $activeChild.accent < 4>>|	<<link "Accent elimination">>
		<<set $activeChild.rules.speech = "accent elimination">>
			<<replace "#speechRules">>$activeChild.rules.speech<</replace>>
		<</link>>
	<<elseif $activeChild.accent > 3>>|	<<link "Language lessons">>
		<<set $activeChild.rules.speech = "language lessons">>
			<<replace "#speechRules">>$activeChild.rules.speech<</replace>>
		<</link>>
	<</if>>
<</if>>

Relationship rules: $activeChild.rules.relationship.
<<link "Restrictive">>
	<<set $activeChild.rules.relationship = "restrictive">>
	<<replace "#relationshipRules">>$activeChild.rules.relationship<</replace>>
<</link>> |
<<link "Just friends">>
	<<set $activeChild.rules.relationship = "just friends">>
	<<replace "#relationshipRules">>$activeChild.rules.relationship<</replace>>
<</link>> |
<<link "Permissive">>
	<<set $activeChild.rules.relationship = "permissive">>
	<<replace "#relationshipRules">>$activeChild.rules.relationship<</replace>>
<</link>>

Target destination: $activeChild.targetLocation.
<<link "Slavery">>
	<<set $activeChild.targetLocation = "slavery">>
	<<replace "#targetLocation">>$activeChild.targetLocation<</replace>>
<</link>> |
<<link "Freedom">>
	<<set $activeChild.targetLocation = "freedom">>
	<<replace "#targetLocation">>$activeChild.targetLocation<</replace>>
<</link>>

<<link "Export this child" "Export Slave">>
<</link>>
<<if $cheatMode>>
	|	<<link "Import a child" "Import Slave">>
	<</link>>
<</if>>
<<if $cheatMode>>

''Cheatmode:''
	<<link "Retrieve immediately" "Nursery Retrieval Workaround">>
		<<set $nurseryOldID = $cribs[$i].ID>>
		<<set $readySlave = $cribs.pluck([$i], [$i])>>
	<</link>>
<</if>>

<<if $activeChild.actualAge < $minimumSlaveAge>>
	<<link "Remove from $nurseryName" "Nursery Discard Workaround">><</link>>

//Children that are younger than <<print $minimumSlaveAge>> will be given to another arcology to be raised//
<<else>>
	<<link "Remove from $nurseryName" "Nursery Retrieval Workaround">><</link>>
<</if>>


code:
:: Children Report [nobr]

<<print App.Facilities.Nursery.childrenReport()>>

license: mit


code:
:: Customize Child [nobr]

<<set $nextButton = "Continue", $nextLink = "Rename Child">>
<<set $oldName = $activeChild.slaveName, $oldSurname = $activeChild.slaveSurname>>

You may enter custom descriptors for the child's hair color, hair style, tattoos, or anything else here. After typing, press enter to commit your change. These custom descriptors will appear in descriptions of the child, but will have no gameplay effect. Changing them is free.

<<if $activeChild.devotion >= -50>>
	<<if $activeChild.custom.title != "">>
		You have instructed $him to always refer to you as $activeChild.custom.title, which, should $he lisp, comes out as $activeChild.custom.titleLisp.
	<<else>>
		You expect $him to refer to you as all your other slaves do.
	<</if>>

	<<if $activeChild.custom.title == "">>
		<<link "Set a custom title for $him to address you as">>
			<<replace "#result">>
				Custom title:
					<<textbox "$activeChild.custom.title" $activeChild.custom.title>>
				<<link "Apply">>
					<<replace "#result">>
						$He'll try $his best to call you $activeChild.custom.title.
						<<set $activeChild.custom.titleLisp = lispReplace($activeChild.custom.title)>>
					<</replace>>
				<</link>>
			<</replace>>
		<</link>>
	<<else>>
		$He's trying $his best to call you <<textbox "$activeChild.custom.title" $activeChild.custom.title>>

		<<link "Apply">>
			<<replace "#result">>
				$He'll try $his best to call you $activeChild.custom.title.
				<<set $activeChild.custom.titleLisp = lispReplace($activeChild.custom.title)>>
			<</replace>>
		<</link>> |
		<<link "Stop using a custom title">>
			<<replace "#result">>
				$He will no longer refer to you with a special title.
				<<set $activeChild.custom.title = "">>
				<<set $activeChild.custom.titleLisp = "">>
			<</replace>>
		<</link>>
	<</if>>

<<else>>
	//You must break $his will further before $he will refer to you by a new title.
	<<if SlaveStatsChecker.checkForLisp($activeChild)>>
		<<if (def $activeChild.custom.titleLisp) && ($activeChild.custom.titleLisp != "")>>
			For now, $he intends to keep calling you "<<print $activeChild.custom.titleLisp>>".
		<</if>>
	<<else>>
		<<if (def $activeChild.custom.title) && ($activeChild.custom.title != "")>>
			For now, $he intends to keep calling you "<<print $activeChild.custom.title>>".
		<</if>>
	<</if>>//
<</if>>

<<if ((($activeChild.devotion >= -50) || ($activeChild.trust < -20)) && ($activeChild.birthName != $activeChild.slaveName)) || (($activeChild.devotion > 20) || ($activeChild.trust < -20))>>
	Change $his given name<<if $activeChild.birthName != $activeChild.slaveName>> ($his birth name was $activeChild.birthName)<</if>>:
		<<textbox "$activeChild.slaveName" $activeChild.slaveName "Rename Child">>
	<<link "Restore $his birth name" "Rename Child">>
		<<set $activeChild.slaveName = $activeChild.birthName>>
	<</link>>
	<<if $arcologies[0].FSPastoralist != "unset">>
		<<if $activeChild.lactation > 0>>
			| <<link "Give $him a random cow given name" "Rename Child">>
				<<set $activeChild.slaveName = setup.cowSlaveNames.random()>>
			<</link>>
		<</if>>
	<</if>>
	<<if $arcologies[0].FSChattelReligionist != "unset">>
		| <<link "Give $him a random devotional given name" "Rename Child">>
			<<set $activeChild.slaveName = setup.chattelReligionistSlaveNames.random()>>
		<</link>>
	<</if>>

	Change $his surname<<if $activeChild.birthSurname != $activeChild.slaveSurname>> ($his birth surname was $activeChild.birthSurname)<</if>>:
	<<if $activeChild.slaveSurname>>
		<<textbox "$activeChild.slaveSurname" $activeChild.slaveSurname "Rename Child">>
	<<else>>
		<<textbox "$activeChild.slaveSurname" "" "Rename Child">>
	<</if>>
	<<link "Restore $his birth surname" "Rename Child">>
		<<set $activeChild.slaveSurname = $activeChild.birthSurname>>
	<</link>>
	<<if $activeChild.slaveSurname>>
		| <<link "Take $his surname away" "Rename Child">>
			<<set $activeChild.slaveSurname = 0>>
		<</link>>
	<</if>>
	<<if $activeChild.relationship >= 5>>
		<<for _i = 0; _i < $slaves.length; _i++>>
			<<if $activeChild.relationshipTarget == $slaves[_i].ID>>
				<<if $slaves[_i].slaveSurname>>
					<<if $activeChild.slaveSurname != $slaves[_i].slaveSurname>>
						| <<link "Give $him $his wife's surname" "Rename Child">>
							<<set $activeChild.slaveSurname = $slaves[_i].slaveSurname>>
						<</link>>
						<<break>>
					<</if>>
				<</if>>
			<</if>>
		<</for>>
	<</if>>
	<<if $activeChild.relationship == -3>>
		<<if $PC.slaveSurname>>
			<<if $activeChild.slaveSurname != $PC.slaveSurname>>
				| <<link "Give $him your surname" "Rename Child">>
					<<set $activeChild.slaveSurname = $PC.slaveSurname>>
				<</link>>
			<</if>>
		<</if>>
	<</if>>
	<<if $arcologies[0].FSRomanRevivalist != "unset">>
		| <<link "Give $him a random full Roman name" "Rename Child">>
			<<set $activeChild.slaveName = setup.romanSlaveNames.random(), $activeChild.slaveSurname = setup.romanSlaveSurnames.random()>>
		<</link>>
	<<elseif $arcologies[0].FSAztecRevivalist != "unset">>
		| <<link "Give $him a random full Aztec name" "Rename Child">>
			<<set $activeChild.slaveName = setup.aztecSlaveNames.random(), $activeChild.slaveSurname = 0>>
		<</link>>
	<<elseif $arcologies[0].FSEgyptianRevivalist != "unset">>
		| <<link "Give $him a random full ancient Egyptian name" "Rename Child">>
			<<set $activeChild.slaveName = setup.ancientEgyptianSlaveNames.random(), $activeChild.slaveSurname = 0>>
		<</link>>
	<<elseif $arcologies[0].FSEdoRevivalist != "unset">>
		| <<link "Give $him a random full feudal Japanese name" "Rename Child">>
			<<set $activeChild.slaveName = setup.edoSlaveNames.random(), $activeChild.slaveSurname = setup.edoSlaveSurnames.random()>>
		<</link>>
	<</if>>
	<<if $arcologies[0].FSDegradationist > -1>>
		| <<link "Give $him a degrading full name" "Rename Child">>
	<<run DegradingName($activeChild)>>
	<</link>>
	<</if>>
<<else>>
	//You must break $his will further before you can successfully force a new name on $him.//
<</if>>

<<switch $activeChild.hStyle>>
<<case "tails" "dreadlocks" "cornrows">>
	$His hair is in $activeChild.hStyle.
<<case "ponytail">>
	$His hair is in a $activeChild.hStyle.
<<default>>
	$His hair is $activeChild.hStyle.
<</switch>>
Custom hair description:
	<<textbox "$activeChild.hStyle" $activeChild.hStyle "Add custom descriptors">>

	//For best results, use a short, uncapitalized and unpunctuated description; for example: 'back in a ponytail'//

$His hair is $activeChild.hColor in color.
Custom hair color:
	<<textbox "$activeChild.hColor" $activeChild.hColor "Add custom descriptors">>

	//For best results, use a short, uncapitalized and unpunctuated description; for example: 'black with purple highlights'//

<<if $activeChild.eyeColor != $activeChild.origEye>>
	$He is wearing $activeChild.eyeColor lenses.
<<else>>
	$He has $activeChild.eyeColor eyes.
<</if>>
Custom eye color:
	<<textbox "$activeChild.eyeColor" $activeChild.eyeColor "Add custom descriptors">>

	//For best results, use a short, uncapitalized and unpunctuated description; for example: 'blue'//

Change $his custom tattoo:
	<<textbox "$activeChild.custom.tattoo" $activeChild.custom.tattoo "Add custom descriptors">>

	//For best results, use complete sentences; for example: '$He has blue stars tattooed along $his cheekbones.'//

Change $his origin story:
	<<textbox "$activeChild.origin" $activeChild.origin "Add custom descriptors">>

	//For best results, use complete, capitalized and punctuated sentences; for example: '$He followed you home from the pet store.'//

Change $his custom description:
	<<textbox "$activeChild.custom.desc" $activeChild.custom.desc "Add custom descriptors">>

	//For best results, use complete, capitalized and punctuated sentences; for example: '$He has a beauty mark above $his left nipple.'//

Change $his custom label:
	<<textbox "$activeChild.custom.label" $activeChild.custom.label "Add custom descriptors">>

	//For best results, use a short phrase; for example: 'Breeder.'//

Assign $him a custom image: <input id="customImageValue" type="text">
<<link "Reset" "Add custom descriptors">>
	<<set $activeChild.custom.image = null>>
<</link>>

    //File must be in// <tt><select id="customImageFormatSelector" style="border: none;"><option value="png">PNG</option><option value="jpg">JPG</option><option value="gif">GIF</option><option value="webm">WEBM</option></select></tt> //format. Place file in the \resources folder. Enter the filename without the extension. For example, for a file with the path// <tt>\bin\resources\headgirl.png</tt>, //enter //<tt>headgirl</tt>.
<>
<<if $seeImages == 1 && $imageChoice == 1>>

	<<if ndef $activeChild.custom.hairVector>>
		<<set $activeChild.custom.hairVector = 0>>
	<</if>>
	Assign $him a custom hair SVG image:
	<<if $activeChild.custom.hairVector != 0>>
		<<textbox "$activeChild.custom.hairVector" $activeChild.custom.hairVector "Add custom descriptors">>
	<<else>>
		<<textbox "$activeChild.custom.hairVector" "" "Add custom descriptors">>
	<</if>>
	<<link "Reset" "Add custom descriptors">>
		<<set $activeChild.custom.hairVector = 0>>
	<</link>>
<</if>>


code:
:: Customize Infant [nobr]

<<set $nextButton = "Continue", $nextLink = "Rename Child">>
<<set $oldName = $activeChild.slaveName, $oldSurname = $activeChild.slaveSurname>>

/* TODO: all of this */
You may enter custom descriptors for your child's hair color, hair style, tattoos, or anything else here. After typing, press enter to commit your change. These custom descriptors will appear in descriptions of your child, but will have no gameplay effect. Changing them is free.

<<if (def $activeChild.custom) && ($activeChild.custom.title != "")>>
	You have instructed $him to always refer to you as $activeChild.custom.title, which, should $he lisp, comes out as $activeChild.custom.titleLisp.
<<else>>
	You expect $him to refer to you as all the other <<if $nurseryBabies > 1>>children and <</if>>slaves do.
<</if>>

<<if def $activeChild.custom>>
	<<if $activeChild.custom.title == "">>
		<<link "Set a custom title for $him to address you as">>
			<<replace "#result">>
				Custom title: <<textbox "$activeChild.custom.title" $activeChild.custom.title>>
				<<link "Apply">>
					<<replace "#result">>
						$He'll try $his best to call you $activeChild.custom.title.
						<<set $activeChild.custom.titleLisp = lispReplace($activeChild.custom.title)>>
					<</replace>>
				<</link>>
			<</replace>>
		<</link>>
	<<else>>
		$He's trying $his best to call you <<textbox "$activeChild.custom.title" $activeChild.custom.title>>

		<<link "Apply">>
			<<replace "#result">>
				$He'll try $his best to call you $activeChild.custom.title.
				<<set $activeChild.custom.titleLisp = lispReplace($activeChild.custom.title)>>
			<</replace>>
		<</link>> |
		<<link "Stop using a custom title">>
			<<replace "#result">>
				$He will no longer refer to you with a special title.
				<<set $activeChild.custom.title = "">>
				<<set $activeChild.custom.titleLisp = "">>
			<</replace>>
		<</link>>
	<</if>>
<</if>>

Change $his given name: <<textbox "$activeChild.slaveName" $activeChild.slaveName>>
/*
<<link "Restore $his birth name">><<set $activeChild.slaveName = $activeChild.birthName>><</link>>
<<if $arcologies[0].FSPastoralist != "unset">>
	<<if $activeChild.lactation > 0>>
		| <<link "Give $him a random cow given name" "Rename">><<set $activeChild.slaveName = setup.cowSlaveNames.random()>><</link>>
	<</if>>
<</if>>
<<if $arcologies[0].FSChattelReligionist != "unset">>
	| <<link "Give $him a random devotional given name" "Rename">><<set $activeChild.slaveName = setup.chattelReligionistSlaveNames.random()>><</link>>
<</if>>
*/

Change $his surname:
<<if $activeChild.slaveSurname>>
	<<textbox "$activeChild.slaveSurname" $activeChild.slaveSurname>>
<<else>>
	<<textbox "$activeChild.slaveSurname">>
<</if>>
/*
<<link "Restore $his birth surname">><<set $activeChild.slaveSurname = $activeChild.birthSurname>><</link>>
<<if $activeChild.slaveSurname>>
	| <<link "Take $his surname away">><<set $activeChild.slaveSurname = 0>><</link>>
<</if>>
*/
/*
<<if $activeChild.relationship >= 5>>
	<<for _i = 0; _i < $slaves.length; _i++>>
		<<if $activeChild.relationshipTarget == $slaves[_i].ID>>
			<<if $slaves[_i].slaveSurname>>
				<<if $activeChild.slaveSurname != $slaves[_i].slaveSurname>>
					| <<link "Give $him $his wife's surname">><<set $activeChild.slaveSurname = $slaves[_i].slaveSurname>><</link>>
					<<break>>
				<</if>>
			<</if>>
		<</if>>
	<</for>>
<</if>>
<<if $activeChild.relationship == -3>>
	<<if $PC.slaveSurname>>
		<<if $activeChild.slaveSurname != $PC.slaveSurname>>
			| <<link "Give $him your surname">><<set $activeChild.slaveSurname = $PC.slaveSurname>><</link>>
		<</if>>
	<</if>>
<</if>>
*/
/*
<<if $arcologies[0].FSRomanRevivalist != "unset">>
	| <<link "Give $him a random full Roman name">><<set $activeChild.slaveName = setup.romanSlaveNames.random(), $activeChild.slaveSurname = setup.romanSlaveSurnames.random()>><</link>>
<<elseif $arcologies[0].FSAztecRevivalist != "unset">>
	| <<link "Give $him a random full Aztec name">><<set $activeChild.slaveName = setup.aztecSlaveNames.random(), $activeChild.slaveSurname = 0>><</link>>
<<elseif $arcologies[0].FSEgyptianRevivalist != "unset">>
	| <<link "Give $him a random full ancient Egyptian name">><<set $activeChild.slaveName = setup.ancientEgyptianSlaveNames.random(), $activeChild.slaveSurname = 0>><</link>>
<<elseif $arcologies[0].FSEdoRevivalist != "unset">>
	| <<link "Give $him a random full feudal Japanese name">><<set $activeChild.slaveName = setup.edoSlaveNames.random(), $activeChild.slaveSurname = setup.edoSlaveSurnames.random()>><</link>>
<</if>>
<<if $arcologies[0].FSDegradationist > -1>>
	| <<link "Give $him a degrading full name">><<run DegradingName($activeChild)>><</link>>
<</if>>
*/
/*

<<switch $activeChild.hStyle>>
<<case "tails" "dreadlocks" "cornrows">>
$His hair is in $activeChild.hStyle.
<<case "ponytail">>
$His hair is in a $activeChild.hStyle.
<<default>>
$His hair is $activeChild.hStyle.
<</switch>>
Custom hair description: <<textbox "$activeChild.hStyle" $activeChild.hStyle "Add custom descriptors">>

    //For best results, use a short, uncapitalized and unpunctuated description; for example: 'back in a ponytail'//
*/

$His hair is $activeChild.hColor in color.
Custom hair color: <<textbox "$activeChild.hColor" $activeChild.hColor "Add custom descriptors">>

    //For best results, use a short, uncapitalized and unpunctuated description; for example: 'black with purple highlights'//

<<if $activeChild.eyeColor != $activeChild.origEye>>
	$He is wearing $activeChild.eyeColor lenses.
<<else>>
	$He has $activeChild.eyeColor eyes.
<</if>>
Custom eye color: <<textbox "$activeChild.eyeColor" $activeChild.eyeColor "Add custom descriptors">>

    //For best results, use a short, uncapitalized and unpunctuated description; for example: 'blue'//

/*

Change $his origin story: <<textbox "$activeChild.origin" $activeChild.origin "Add custom descriptors">>

    //For best results, use complete, capitalized and punctuated sentences; for example: 'She followed you home from the pet store.'//
*/
/*

Change $his custom description: <<textbox "$activeChild.custom.desc" $activeChild.custom.desc "Add custom descriptors">>

    //For best results, use complete, capitalized and punctuated sentences; for example: 'She has a beauty mark above her left nipple.'//

Change $his custom label: <<textbox "$activeChild.custom.label" $activeChild.custom.label "Add custom descriptors">>

    //For best results, use a short phrase; for example: 'Breeder.'//
*/
/*

Assign $him a custom image: <input id="customImageValue" type="text">
<<link "Reset" "Add custom descriptors">><<set $activeChild.custom.image = null>><</link>>

    //File must be in// <tt><select id="customImageFormatSelector" style="border: none;"><option value="png">PNG</option><option value="jpg">JPG</option><option value="gif">GIF</option><option value="webm">WEBM</option></select></tt> //format. Place file in the \resources folder. Enter the filename without the extension. For example, for a file with the path// <tt>\bin\resources\headgirl.png</tt>, //enter //<tt>headgirl</tt>.
<>
<<if $seeImages == 1 && $imageChoice == 1>>

	<<if ndef $activeChild.custom.hairVector>><<set $activeChild.custom.hairVector = 0>><</if>>
	Assign $him a custom hair SVG image:
	<<if $activeChild.custom.hairVector != 0>>
		<<textbox "$activeChild.custom.hairVector" $activeChild.custom.hairVector "Add custom descriptors">>
	<<else>>
		<<textbox "$activeChild.custom.hairVector" "" "Add custom descriptors">>
	<</if>>
	<<link "Reset" "Add custom descriptors">><<set $activeChild.custom.hairVector = 0>><</link>>
<</if>>
*/


code:
:: Export Child [nobr]

<<set $nextButton = "Continue", $nextLink = "Child Interact">>

//Copy the following block of code for importing//

<<if (ndef $activeChild.currentRules) || ($activeChild.currentRules.length < 1)>>
	<<set _currentRules = "[]">>
<<else>>
	<<set _currentRules = "$activeChild.currentRules">>
<</if>>

/*

 __Direct JSON export method__:

 */

	<<set _jsonText = toJson($activeChild)>>
	_jsonText


code:
:: Import Child [nobr]

<<set $nextButton = "Continue", $nextLink = "Child Interact">>

//Paste the code into the text box and click Apply//

<<set $tempChild = "">>
<<textbox "$tempChild" $tempChild>>
<<link "Apply">>
	<<if (def $tempChild) && ($tempChild !== "")>>
		<<set $tempChild = eval('({' + $tempChild + '})')>>
		<<set $tempChild.ID = $nIDNumber>>
		<<set $nIDNumber += 1>>
		<<run newChild($tempChild)>>
		<<replace #import>>
			''Child imported successfully!''

		<</replace>>
		<<unset $tempChild>>
	<<else>>
		<<replace #import>>
			''Child not imported.''

		<</replace>>
	<</if>>
<</link>>

<<link "Continue">>
	<<goto "Child Interact">>
<</link>>


code:
:: Infant Interact [nobr]

<<if $cheatMode>>
	//[[Cheat Edit Child Alternative|MOD_Edit Child Cheat New][$cheater = 1]]//
<</if>>

<<set _i = App.Facilities.Nursery.childIndexForID($activeChild.ID)>>

<<set $nextButton = "Confirm changes", $nextLink = "AC Dump", $returnTo = "Nursery", _SL = $slaves.length, _CL = $cribs.length, $cribs[_i] = $activeChild>>
<<setLocalPronouns $activeChild>>
/* TODO: the encyclopedia will need to be updated for children as well */
<<set $encyclopedia = "Nursery">>

@@.cyan;[←,Q] @@

	<<link "Prev" "Previous Child In Line">><</link>>

    ''__@@.pink;$activeChild.slaveName@@__''

	<<link "Next" "Next Child In Line">><</link>>

@@.cyan; [E,→]@@

<<if $seeDetails>>
	<<set $saleDescription = 0>>

		<<= App.Facilities.Nursery.LongInfantDescription($activeChild)>>

	[[Options][$nextLink = passage()]] |
	[[Hide descriptions|Infant Interact][$seeDetails = 0]] |
	[[Customize|Customize Infant]] |

	<<link "Update">>
		<<replace "#LCD">>
		<<= App.Facilities.Nursery.LongInfantDescription($activeChild)>>
		<</replace>>
	<</link>>

<<else>>
	//[[Show descriptions|Infant Interact][$seeDetails = 1]]//
<</if>>

Target destination: $activeChild.targetLocation.
<<link "Slavery">>
	<<set $activeChild.targetLocation = "slavery">>
	<<replace "#targetLocation">>$activeChild.targetLocation<</replace>>
<</link>> |
<<link "Freedom">>
	<<set $activeChild.targetLocation = "freedom">>
	<<replace "#targetLocation">>$activeChild.targetLocation<</replace>>
<</link>>


code:
:: Matron Select [nobr]

<<set $nextButton = "Back", $nextLink = "Nursery", $showEncyclopedia = 1, $encyclopedia = "Matron">>
<<if ($Matron != 0)>>
	<<set $Matron = getSlave($Matron.ID)>>
	<<setLocalPronouns $Matron>>
	''__@@.pink;<<= SlaveFullName($Matron)>>@@__'' is serving as your Matron.

$He will manage the nursery.
<<else>>
	You have not selected a Matron.
<</if>>

''Appoint a Matron from your devoted slaves:''

[[None|Nursery][removeJob($Matron, "be the Matron")]]

<<print App.UI.SlaveList.facilityManagerSelection(App.Entity.facilities.nursery, "Nursery")>>


code:
:: Next Child In Line

<<silently>>

<<set $i = $cribs.findIndex(function(c) { return c.ID === $activeChild.ID; })>>
<<set $cribs[$i] = $activeChild>> /* save changes before switching */
<<if $i == $cribs.length - 1>>
	<<set $activeChild = $cribs[0]>>
	<<if $activeChild.actualAge < 3>>
		<<goto "Infant Interact">>
	<<else>>
		<<goto "Child Interact">>
	<</if>>
<<else>>
	<<set $activeChild = $cribs[$i+1]>>
	<<if $activeChild.actualAge < 3>>
		<<goto "Infant Interact">>
	<<else>>
		<<goto "Child Interact">>
	<</if>>
<</if>>

<</silently>>