code:
:: SA be your Head Girl [nobr]

<<set $HGTimeInGrade += 1>>

<<if $HGSuite == 1>>
	<<set $slaves[$i].livingRules = "luxurious">>
<</if>>

<<if $arcologies[0].FSEgyptianRevivalistLaw == 0>>
	helps manage your other slaves. $He helps them when they try and fail, and punishes them when they fail to try.
<<else>>
	serves as your Consort. Though $he is still your slave, $his status is scarcely below that of a citizen. $He @@.green;contributes to your reputation@@ just like a Concubine, and $he is @@.hotpink;conscious@@ of the @@.mediumaquamarine;trust@@ you place in $him.
	<<set $slaves[$i].devotion += 1, $slaves[$i].trust += 1>>
	<<silently>>
	<<include "SA please you">>
	<</silently>>
	<<if $slaves[$i].relationship > 4>>
		<<if $familyTesting == 1>>
			<<if $slaves[$i].relationshipTarget == $Concubine.ID>>
				<<if areRelated($Concubine, $slaves[$i]) > 0>>
					<<if $Concubine.mother == $slaves[$i].ID || $Concubine.father == $slaves[$i].ID>>
						Your Concubine is your Consort's daughter-wife. Truly, $arcologies[0].name looks up to you @@.green;as children to a father.@@
						<<run repX(250, "headGirl", $slaves[$i])>>
					<<elseif $slaves[$i].mother == $Concubine.ID>>
						Your Concubine is your Consort's mother-wife. Truly, $arcologies[0].name looks up to you @@.green;as children to a father.@@
						<<run repX(250, "headGirl", $slaves[$i])>>
					<<elseif $slaves[$i].father == $Concubine.ID>>
						Your Concubine is your Consort's father-wife. Truly, $arcologies[0].name looks up to you @@.green;as children to a father.@@
						<<run repX(250, "headGirl", $slaves[$i])>>
					<<else>>
						<<switch areSisters($slaves[$i], $Concubine)>>
						<<case 1>>
							Your Concubine is your Consort's twin-wife. Truly, $arcologies[0].name looks up to you @@.green;as children to a father.@@
							<<run repX(250, "headGirl", $slaves[$i])>>
						<<case 2>>
							Your Concubine is your Consort's sister-wife. Truly, $arcologies[0].name looks up to you @@.green;as children to a father.@@
							<<run repX(250, "headGirl", $slaves[$i])>>
						<<case 3>>
							Your Concubine is your Consort's half-sister-wife. Truly, $arcologies[0].name looks up to you @@.green;as children to a father.@@
							<<run repX(250, "headGirl", $slaves[$i])>>
						<<default>>
							//Shit went wrong! Post this in a bug report!// This is @@.red;NOT as it should be.@@
							<<run repX(100, "headGirl", $slaves[$i])>>
						<</switch>>
					<</if>>
				<<else>>
					Your Consort and your Concubine are wives to each other and to Pharaoh. This is @@.green;as it should be.@@
					<<run repX(100, "headGirl", $slaves[$i])>>
				<</if>>
			<<else>>
				<<if totalRelatives($slaves[$i]) > 0>>
					<<set _sbyhg = $slaveIndices[$slaves[$i].relationshipTarget]>>
					<<if def _sbyhg>>
						<<if $slaves[_sbyhg].mother == $slaves[$i].ID || $slaves[_sbyhg].father == $slaves[$i].ID>>
							Your Consort has a daughter-wife. This is @@.green;as it should be.@@
							<<run repX(100, "headGirl", $slaves[$i])>>
						<<elseif $slaves[$i].mother == $slaves[_sbyhg].ID>>
							Your Consort has a mother-wife. This is @@.green;as it should be.@@
							<<run repX(100, "headGirl", $slaves[$i])>>
						<<elseif $slaves[$i].father == $slaves[_sbyhg].ID>>
							Your Consort has a father-wife. This is @@.green;as it should be.@@
							<<run repX(100, "headGirl", $slaves[$i])>>
						<<else>>
							<<switch areSisters($slaves[$i], $slaves[_sbyhg])>>
							<<case 1>>
								Your Consort has a twin-wife. This is @@.green;as it should be.@@
								<<run repX(100, "headGirl", $slaves[$i])>>
							<<case 2>>
								Your Consort has a sister-wife. This is @@.green;as it should be.@@
								<<run repX(100, "headGirl", $slaves[$i])>>
							<<case 3>>
								Your Consort has a half-sister-wife. This is @@.green;as it should be.@@
								<<run repX(100, "headGirl", $slaves[$i])>>
							<</switch>>
						<</if>>
					<</if>>
				<</if>>
			<</if>>
		<<else>>
			<<if $slaves[$i].relationshipTarget == $Concubine.ID>>
				<<if $slaves[$i].relationTarget == $Concubine.ID>>
				Your Concubine is your Consort's $slaves[$i].relation-wife. Truly, $arcologies[0].name looks up to you @@.green;as children to a father.@@
				<<run repX(250, "headGirl", $slaves[$i])>>
				<<else>>
				Your Consort and your Concubine are wives to each other and to Pharaoh. This is @@.green;as it should be.@@
				<<run repX(100, "headGirl", $slaves[$i])>>
				<</if>>
			<<elseif $slaves[$i].relationshipTarget == $slaves[$i].relationTarget>>
				Your Consort has a $slaves[$i].relation-wife. This is @@.green;as it should be.@@
				<<run repX(100, "headGirl", $slaves[$i])>>
			<</if>>
		<</if>> /* closes extended family mode */
	<</if>>
<</if>>

<<if ($slaves[$i].livingRules == "luxurious") && ($HGSuite == 1)>>
	Being continually trusted with this position @@.hotpink;increases her devotion to you,@@ and encourages her to @@.mediumaquamarine;trust you in turn;@@ she's also @@.hotpink;grateful@@ for her nice suite, which makes her one of the best provided for slaves in the Free Cities.
	<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
<<elseif ($slaves[$i].livingRules == "luxurious")>>
	Being continually trusted with this position @@.hotpink;increases her devotion to you@@ and encourages her to @@.mediumaquamarine;trust you in turn.@@
	<<set $slaves[$i].devotion += 4, $slaves[$i].trust += 4>>
<<elseif ($HGSuite == 1)>>
	She's @@.hotpink;grateful@@ for her nice suite, which makes her one of the best provided for slaves in the Free Cities. Being continually trusted with this position encourages her to @@.mediumaquamarine;trust you in turn.@@
	<<set $slaves[$i].devotion += 2, $slaves[$i].trust += 4>>
<<else>>
	Being continually trusted with this position @@.hotpink;slightly increases her devotion to you,@@ though she harbors some doubts because she isn't allowed a room of her own to set her apart from the other slaves.
	<<set $slaves[$i].devotion += 1>>
<</if>>

<<if ($personalAttention == "HG")>>
	You're cooperating with her this week, working with $assistantName to free up some of her time so she can target more slaves in need of individual attention.
	<<if ($slaves[$i].trust > 95)>>
	She is so trusting of you that she can act as your own right hand, allowing her to oversee your slaves with remarkable efficiency.
	<<else>>
	This arrangement @@.mediumaquamarine;builds trust@@ between you.
	<<set $slaves[$i].trust += 2>>
	<</if>>
<</if>>

<<if ($HGFormality == 0)>>
	<<if ($slaves[$i].trust > 95)>>
	Every so often, when you're alone, she calls you <<= properTitle()>>. She treats your permission to do this as a sacred thing, and @@.hotpink;loves you for it.@@
	<<set $slaves[$i].devotion += 1>>
	<<else>>
	Your permission to be informal in private @@.mediumorchid;confuses her@@ a little, since she isn't perfectly confident enough to be comfortable with the idea.
	<<set $slaves[$i].devotion -= 1>>
	<</if>>
<</if>>

<<if $slaves[$i].fetishKnown == 1>>
	<<if $slaves[$i].fetish == "dom">>
		<<if ($slaves[$i].fetishKnown == 1)>>
		<<if ($slaves[$i].fetishStrength <= 95)>>
			Having all the slaves look up to and obey her advances her @@.lightcoral;dominant tendencies.@@
			<<set $slaves[$i].fetishStrength += 4>>
		<</if>>
		<</if>>
	<<elseif $slaves[$i].fetishStrength < 20>>
		Having all the slaves look up to and obey her affects her sexuality, turning her into a @@.lightcoral;bit of a dominatrix.@@
		<<set $slaves[$i].fetish = "dom", $slaves[$i].fetishStrength = 20, $slaves[$i].fetishKnown = 1>>
	<<elseif $slaves[$i].fetishStrength <= random(20,60)>>
		The sheer variety of sexual situations she sees and participates in @@.pink;broaden her sexual interests@@ and incline her to take a dominant sexual role.
		<<set $slaves[$i].fetishStrength -= 4>>
	<</if>>
<<else>>
	<<if random(1,3) == 1>>
		Having all the slaves look up to and obey her affects her sexuality, turning her into a @@.lightcoral;bit of a dominatrix.@@
		<<set $slaves[$i].fetish = "dom", $slaves[$i].fetishStrength = 20, $slaves[$i].fetishKnown = 1>>
	<</if>>
<</if>>

<<if ($slaves[$i].dick > 0) && ($universalRulesImpregnation == "HG") && canPenetrate($slaves[$i])>>
	She finds her duty to impregnate slaves at will sexually satisfying.
	<<set $slaves[$i].need = 0>>
<<else>>
	<<if $slaves.length > 5>>
		Seldom a day goes by without her finding an outlet among your slaves for her sexual desires.
		<<set $slaves[$i].need = 0>>
	<</if>>
<</if>>

<<if $slaves[$i].prestige == 0>>
<<if $HGTimeInGrade+(($slaves[$i].intelligence+$slaves[$i].intelligenceImplant)/10)+($slaves[$i].devotion/10)+($slaves[$i].trust/10) > 50>>
	$slaves[$i].slaveName has rendered such long and competent service as your Head Girl that many of your citizens have come to rely on her word as an extension of yours, trusting that if she does something, it's because you trust her to. @@.green;She has become prestigious on her own merits, a remarkable achievement for a slave!@@
	<<set $slaves[$i].prestige += 1>>
	<<set $slaves[$i].prestigeDesc = "Many citizens respect her long and able service as your Head Girl.">>
<</if>>
<</if>>

<<if !setup.HGCareers.includes($slaves[$i].career) && $slaves[$i].skillWA < $masteredXP>>
	<<set $slaves[$i].skillHG += random(1,Math.ceil(($slaves[$i].intelligence+$slaves[$i].intelligenceImplant)/15) + 8)>>
<</if>>


code:
:: SA chooses own job [nobr]

<<if ($slaves[$i].choosesOwnAssignment == 0) || ($slaves[$i].fuckdoll > 0) || ($slaves[$i].fetish == "mindbroken")>>
	/* nothing to do */

<<elseif ($slaves[$i].choosesOwnAssignment == 2)>> /* second pass happens visibly during weekly report for the location where this slave decided to go (or stay) */
	/* display text but don't change assignment (already done) */

	<<set $desc = SlaveTitle($slaves[$i])>>
	<<print $slaves[$i].choosesOwnAssignmentText>>
	<<set $slaves[$i].choosesOwnAssignmentText = "", $slaves[$i].choosesOwnAssignment = 1>> /* continue cycle for next week */

<<else>> /* first pass happens silently before all reports: give stats bonus, construct decision string for display during second pass, actually change assignment */

	<<set $slaves[$i].devotion++, $slaves[$i].trust++, $slaves[$i].choosesOwnAssignmentText = "was assigned to " + $slaves[$i].assignment + ". $He watches your other slaves to decide what to do, @@.hotpink;happy@@ to be permitted a choice and a little more @@.mediumaquamarine;confident@@ than if you had just given $him orders. The $desc">>

	<<if ($slaves[$i].devotion <= 20) && ($slaves[$i].trust >= -20)>>
		<<set $slaves[$i].choosesOwnAssignmentText += " decides to rest, taking advantage of your permission to @@.mediumorchid;remain indolent@@.">>
		<<= removeJob($slaves[$i], $slaves[$i].assignment)>>
		<<set $slaves[$i].devotion -= 5>>

	<<elseif ($slaves[$i].health < 20)>>
		<<if ($universalRulesAssignsSelfFacility == 1) && ($clinic > $clinicSlaves)>>
			<<set $slaves[$i].choosesOwnAssignmentText += " is unhealthy, so $he decides to get treatment at $clinicName.">>
			<<= assignJob($slaves[$i], "get treatment in the clinic")>>
		<<else>>
			<<set $slaves[$i].choosesOwnAssignmentText += " is unhealthy, so $he decides to rest.">>
			<<= removeJob($slaves[$i], $slaves[$i].assignment)>>
		<</if>>

	<<elseif ($slaves[$i].boobsMilk > 0)>>
		<<set $slaves[$i].choosesOwnAssignmentText += " rushes to get milked since $his breasts have become painfully engorged.">>
		<<= assignJob($slaves[$i], "get milked")>>

	<<elseif ($slaves[$i].intelligenceImplant < 15)>>
		<<if ($universalRulesAssignsSelfFacility == 1) && ($schoolroom > $schoolroomSlaves)>>
			<<set $slaves[$i].choosesOwnAssignmentText += " is uneducated, so $he sits $himself down in $schoolroomName.">>
			<<= assignJob($slaves[$i], "learn in the schoolroom")>>
		<<else>>
			<<set $slaves[$i].choosesOwnAssignmentText += " is uneducated, so $he sits $himself down to learn.">>
			<<= assignJob($slaves[$i], "take classes")>>
		<</if>>

	<<elseif ($Attendant != 0) && ($universalRulesAssignsSelfFacility == 1) && (($slaves[$i].devotion < 45) || ($slaves[$i].trust < 45) || ($slaves[$i].sexualFlaw != "none") || ($slaves[$i].behavioralFlaw != "none"))>>
		<<set $slaves[$i].choosesOwnAssignmentText += " could use some counseling, so $he decides to visit $spaName.">>
		<<= assignJob($slaves[$i], "rest in the spa")>>

	<<elseif ($slaves[$i].devotion <= 50) && canWalk($slaves[$i]) && canSee($slaves[$i])>>
		<<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > $servantsQuartersSlaves)>>
			<<set $slaves[$i].choosesOwnAssignmentText += " is obedient but not devoted, so $he decides to work from $servantsQuartersName since it's the least sexually demanding job available.">>
			<<= assignJob($slaves[$i], "work as a servant")>>
		<<else>>
			<<set $slaves[$i].choosesOwnAssignmentText += " is obedient but not devoted, so $he decides to work as a servant since it's the least sexually demanding job available.">>
			<<= assignJob($slaves[$i], "be a servant")>>
		<</if>>

	<<elseif $universalRulesAssignsSelfFacility == 1 && $slaves[$i].devotion > 50 && canWalk($slaves[$i]) && canSee($slaves[$i]) && $slaves[$i].sexualQuirk == "caring" && $nurseryNannies > $nurserySlaves>>
		<<set $slaves[$i].choosesOwnAssignmentText += " enjoys taking care of children, so $he decides to work in $nurseryName.">>
		<<= assignJob($slaves[$i], "work as a nanny")>>

	<<elseif ($slaves[$i].relationship == -1)>>
		<<set $slaves[$i].choosesOwnAssignmentText += " relies on promiscuity to fulfill $his emotional needs,">>
		<<if ($cash < 10000)>>
			<<set $slaves[$i].choosesOwnAssignmentText += " and doesn't mind being a whore, so $he prostitutes $himself">>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " in $brothelName.">>
				<<= assignJob($slaves[$i], "work in the brothel")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " on the streets.">>
				<<= assignJob($slaves[$i], "whore")>>
			<</if>>
		<<else>>
			<<set $slaves[$i].choosesOwnAssignmentText += " so $he eagerly decides to slut around">>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($club > $clubSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " in $clubName.">>
				<<= assignJob($slaves[$i], "serve in the club")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " on the streets.">>
				<<= assignJob($slaves[$i], "serve the public")>>
			<</if>>
		<</if>>

	<<elseif ($slaves[$i].relationship == -2)>>
		<<set $slaves[$i].choosesOwnAssignmentText += " is emotionally bonded to you,">>
		<<if ($slaves[$i].behavioralQuirk == "insecure")>>
			<<set $slaves[$i].choosesOwnAssignmentText += " but insecure, so $he decides to make you money by prostituting $himself">>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " in $brothelName.">>
				<<= assignJob($slaves[$i], "work in the brothel")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " on the streets.">>
				<<= assignJob($slaves[$i], "whore")>>
			<</if>>
		<<elseif ($slaves[$i].behavioralQuirk == "advocate")>>
			<<set $slaves[$i].choosesOwnAssignmentText += " and an advocate for slavery, so $he decides to burnish your reputation by slutting it up">>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($club > $clubSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " in $clubName.">>
				<<= assignJob($slaves[$i], "serve in the club")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " on the streets.">>
				<<= assignJob($slaves[$i], "serve the public")>>
			<</if>>
		<<elseif ($slaves[$i].energy > 60)>>
			<<set $slaves[$i].choosesOwnAssignmentText += " and $he thinks of little but sex with you,">>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $masterSuiteSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $he heads straight to $masterSuiteName.">>
				<<= assignJob($slaves[$i], "serve in the master suite")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $he cheerfully designates $himself one of your fucktoys.">>
				<<= assignJob($slaves[$i], "please you")>>
			<</if>>
		<<elseif canSee($slaves[$i]) && canWalk($slaves[$i])>>
			<<set $slaves[$i].choosesOwnAssignmentText += " so $he decides to work">>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > $servantsQuartersSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " from $servantsQuartersName">>
				<<= assignJob($slaves[$i], "work as a servant")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " as a servant">>
				<<= assignJob($slaves[$i], "be a servant")>>
			<</if>>
			<<set $slaves[$i].choosesOwnAssignmentText += " to make your penthouse as clean and homelike as possible.">>
		<<else>>
			<<set $slaves[$i].choosesOwnAssignmentText += " but unable to do much on $his own,">>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $masterSuiteSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $he heads straight to $masterSuiteName to await your caress.">>
				<<= assignJob($slaves[$i], "serve in the master suite")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $he cheerfully designates $himself one of your fucktoys to be close to you.">>
				<<= assignJob($slaves[$i], "please you")>>
			<</if>>
		<</if>>

	<<elseif ($slaves[$i].relationship == -3)>>
		<<if $slaves[$i].devotion+$slaves[$i].trust >= 175>>
			<<set $slaves[$i].choosesOwnAssignmentText += " is happily married to you,">>
		<<elseif $slaves[$i].devotion < -20 && $slaves[$i].trust > 20>>
			<<set $slaves[$i].choosesOwnAssignmentText += " is reluctantly married to you,">>
		<<elseif $slaves[$i].devotion < -20>>
			<<set $slaves[$i].choosesOwnAssignmentText += " is forcibly married to you,">>
		<<else>>
			<<set $slaves[$i].choosesOwnAssignmentText += " is married to you,">>
		<</if>>
		<<if $slaves[$i].devotion > 50>>
			<<if ($slaves[$i].energy > 60)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " and $he thinks of little but sex with you,">>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $masterSuiteSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " so $he heads straight to $masterSuiteName.">>
					<<= assignJob($slaves[$i], "serve in the master suite")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " so $he cheerfully designates $himself one of your fucktoys.">>
					<<= assignJob($slaves[$i], "please you")>>
				<</if>>
			<<elseif canSee($slaves[$i]) && canWalk($slaves[$i])>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $he decides to work">>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > $servantsQuartersSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " from $servantsQuartersName">>
					<<= assignJob($slaves[$i], "work as a servant")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " as a servant">>
					<<= assignJob($slaves[$i], "be a servant")>>
				<</if>>
				<<set $slaves[$i].choosesOwnAssignmentText += " to make your penthouse as clean and homelike as possible.">>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " but unable to do much on $his own">>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $masterSuiteSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " so $he heads straight to $masterSuiteName to await your caress.">>
					<<= assignJob($slaves[$i], "serve in the master suite")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " so $he cheerfully designates $himself one of your fucktoys to be close to you.">>
					<<= assignJob($slaves[$i], "please you")>>
				<</if>>
			<</if>>
		<<elseif $slaves[$i].devotion < -20 && $slaves[$i].trust > 20>>
			<<set $slaves[$i].choosesOwnAssignmentText += " and $he thinks of all the ways $he can take advantage of this,">>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($spa > $spaSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $he heads straight to $spaName to relax.">>
				<<= assignJob($slaves[$i], "rest in the spa")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $he cheerfully decides to lounge about the penthouse.">>
				<<= assignJob($slaves[$i], "rest")>>
			<</if>>
		<<elseif $slaves[$i].devotion < -20>>
			<<set $slaves[$i].choosesOwnAssignmentText += " and $he is scared of you, so $he chooses to work as a servant so that $he may serve you without "serving" you.">>
			<<= assignJob($slaves[$i], "be a servant")>>
		<<else>>
			<<if ($slaves[$i].energy > 60)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " and $he thinks of little but sex,">>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $masterSuiteSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " so $he heads straight to $masterSuiteName.">>
					<<= assignJob($slaves[$i], "serve in the master suite")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " so $he cheerfully designates $himself one of your fucktoys.">>
					<<= assignJob($slaves[$i], "please you")>>
				<</if>>
			<<elseif canSee($slaves[$i]) && canWalk($slaves[$i])>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $he decides to work">>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > $servantsQuartersSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " from $servantsQuartersName">>
					<<= assignJob($slaves[$i], "work as a servant")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " as a servant">>
					<<= assignJob($slaves[$i], "be a servant")>>
				<</if>>
				<<set $slaves[$i].choosesOwnAssignmentText += " to make your penthouse as clean and homelike as possible.">>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " but unable to do much on $his own, so $he designates $himself one of your fucktoys to get more intimate with you.">>
				<<= assignJob($slaves[$i], "please you")>>
			<</if>>
		<</if>>

	<<elseif ($slaves[$i].fetishKnown == 1)>>
		<<if ($slaves[$i].fetish == "submissive") && canWalk($slaves[$i]) && canSee($slaves[$i])>>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($servantsQuarters > $servantsQuartersSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " thinks $he belongs at the bottom of the penthouse hierarchy, so $he goes to live in $servantsQuartersName.">>
				<<= assignJob($slaves[$i], "work as a servant")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " thinks $he belongs at the bottom of the penthouse hierarchy, so $he decides $he should be a servant.">>
				<<= assignJob($slaves[$i], "be a servant")>>
			<</if>>
		<<elseif ($slaves[$i].fetish == "dom") || ($slaves[$i].fetish == "sadist")>>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($club > $clubSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " is self-confident, so $he decides to work in $clubName.">>
				<<= assignJob($slaves[$i], "serve in the club")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " is self-confident, so $he decides to work as a public servant.">>
				<<= assignJob($slaves[$i], "serve the public")>>
			<</if>>
		<<elseif ($slaves[$i].fetish == "masochist")>>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " enjoys abuse, so $he hurries down to $brothelName.">>
				<<= assignJob($slaves[$i], "work in the brothel")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " enjoys abuse, so $he decides to become a whore.">>
				<<= assignJob($slaves[$i], "whore")>>
			<</if>>
		<<elseif ($slaves[$i].fetish == "cumslut")>>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " hurries down to $brothelName to suck cocks.">>
				<<= assignJob($slaves[$i], "work in the brothel")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " decides to become a whore, mostly to suck cock.">>
				<<= assignJob($slaves[$i], "whore")>>
			<</if>>
		<<elseif ($slaves[$i].fetish == "humiliation")>>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $brothelName, since it's even more embarrassing to be a whore than a club slut.">>
				<<= assignJob($slaves[$i], "work in the brothel")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " decides to whore, since it's even more embarrassing to be a whore than to be a public servant.">>
				<<= assignJob($slaves[$i], "whore")>>
			<</if>>
		<<elseif ($slaves[$i].fetish == "buttslut")>>
			<<if ($slaves[$i].balls > 0)>>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($dairyRestraintsSetting < 2) && ($dairy > $dairySlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " chooses confinement in $dairyName, since all $he will be expected to do is produce cum by orgasming to buttsex.">>
					<<= assignJob($slaves[$i], "work in the dairy")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to get milked, since all $he will be expected to do is produce cum by orgasming to buttsex.">>
					<<= assignJob($slaves[$i], "get milked")>>
				<</if>>
			<<else>>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $brothelName, since whores get buttfucked more than anyone else.">>
					<<= assignJob($slaves[$i], "work in the brothel")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to whore, since whores get buttfucked more than anyone else.">>
					<<= assignJob($slaves[$i], "whore")>>
				<</if>>
			<</if>>
		<<elseif ($slaves[$i].fetish == "pregnancy")>>
			<<if ($slaves[$i].lactation > 0)>>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($dairyRestraintsSetting < 2) && ($dairy > $dairySlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " heads down to $dairyName to be around other lactating girls.">>
					<<= assignJob($slaves[$i], "work in the dairy")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to get milked, since $he is already lactating.">>
					<<= assignJob($slaves[$i], "get milked")>>
				<</if>>
			<<elseif ($PC.dick == 1) && isFertile($slaves[$i])>>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $masterSuiteSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to serve you in $masterSuiteName, hoping that you'll get $him pregnant.">>
					<<= assignJob($slaves[$i], "serve in the master suite")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to be your fucktoy, hoping that you'll get $him pregnant.">>
					<<= assignJob($slaves[$i], "please you")>>
				<</if>>
			<<elseif ($universalRulesAssignsSelfFacility == 1) && ($dairyPregSetting > 0) && ($dairy > $dairySlaves) && isFertile($slaves[$i])>>
				<<if $dairyPregSetting > 1>>
					<<set $slaves[$i].choosesOwnAssignmentText += " eagerly rushes to $dairyName in the hopes that $his fertile womb will be packed full of children.">>
					<<= assignJob($slaves[$i], "work in the dairy")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " rushes to $dairyName in the hopes that $his fertile womb will be rented out.">>
					<<= assignJob($slaves[$i], "work in the dairy")>>
				<</if>>
			<<elseif ($slaves[$i].bellyPreg >= 1500)>>
				<<if $arcologies[0].FSRepopulationFocus > 20>>
					<<if ($cash < 10000)>>
						<<if $brothel > $brothelSlaves && $universalRulesAssignsSelfFacility == 1>>
							<<set $slaves[$i].choosesOwnAssignmentText += " heads to $brothelName since $he wants to set an example for any unimpregnated girls.">>
							<<= assignJob($slaves[$i], "work in the brothel")>>
						<<else>>
							<<set $slaves[$i].choosesOwnAssignmentText += " heads to the streets to lavish in the attention given to pregnant prostitutes.">>
							<<= assignJob($slaves[$i], "whore")>>
						<</if>>
					<<else>>
						<<if $club > $clubSlaves && $universalRulesAssignsSelfFacility == 1>>
							<<set $slaves[$i].choosesOwnAssignmentText += " heads to $clubName to show off $his growing middle and lavish in the public's attention.">>
							<<= assignJob($slaves[$i], "serve in the club")>>
						<<else>>
							<<set $slaves[$i].choosesOwnAssignmentText += " heads to the streets to contribute to the number of visibly pregnant woman around.">>
							<<= assignJob($slaves[$i], "serve the public")>>
						<</if>>
					<</if>>
				<<elseif $masterSuite > $masterSuiteSlaves && $universalRulesAssignsSelfFacility == 1>>
					<<set $slaves[$i].choosesOwnAssignmentText += " heads straight to $masterSuiteName to share the intimacy of $his pregnant body with you.">>
					<<= assignJob($slaves[$i], "serve in the master suite")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to be your fucktoy to share the intimacy of $his pregnant body with you.">>
					<<= assignJob($slaves[$i], "please you")>>
				<</if>>
			<<elseif ($slaves[$i].pregKnown == 1)>>
				<<if $masterSuite > $masterSuiteSlaves && $universalRulesAssignsSelfFacility == 1>>
					<<set $slaves[$i].choosesOwnAssignmentText += " heads straight to $masterSuiteName so you may watch for the day that $he finally starts to show.">>
					<<= assignJob($slaves[$i], "serve in the master suite")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to be your fucktoy so you may enjoy watching $him begin showing.">>
					<<= assignJob($slaves[$i], "please you")>>
				<</if>>
			<<else>>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " can't indulge $his fetish by getting pregnant $himself, so $he just heads down to $brothelName.">>
					<<= assignJob($slaves[$i], "work in the brothel")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " can't indulge $his fetish by getting pregnant $himself, so $he glumly decides to be a whore.">>
					<<= assignJob($slaves[$i], "whore")>>
				<</if>>
			<</if>>
		<<elseif ($slaves[$i].fetish == "boobs")>>
			<<if ($slaves[$i].lactation > 0)>>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($dairyRestraintsSetting < 2) && ($dairy > $dairySlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " heads down to $dairyName for all the attention that'll be lavished on $his nipples.">>
					<<= assignJob($slaves[$i], "work in the dairy")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to get milked, since $he loves getting off to it.">>
					<<= assignJob($slaves[$i], "get milked")>>
				<</if>>
			<<else>>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($club > $clubSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $clubName so $he can show off $his bare breasts.">>
					<<= assignJob($slaves[$i], "serve in the club")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to work as a public servant so $he can show off $his bare breasts.">>
					<<= assignJob($slaves[$i], "serve the public")>>
				<</if>>
			<</if>>
		<<elseif ($slaves[$i].attrXX > 85)>>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($club > $clubSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $clubName so $he can hit on hot girls.">>
				<<= assignJob($slaves[$i], "serve in the club")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " decides to work as a public servant so $he can hit on hot girls.">>
				<<= assignJob($slaves[$i], "serve the public")>>
			<</if>>
		<<elseif ($slaves[$i].attrXY > 85)>>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($club > $clubSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $clubName so $he can hit on cute boys.">>
				<<= assignJob($slaves[$i], "serve in the club")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " decides to work as a public servant so $he can hit on cute boys.">>
				<<= assignJob($slaves[$i], "serve the public")>>
			<</if>>
		<<elseif ($slaves[$i].energy > 95)>>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " decides to help those of your girls who mind taking dick all day by working in $brothelName.">>
				<<= assignJob($slaves[$i], "work in the brothel")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " decides to help those of your girls who mind taking dick all day by working as a whore.">>
				<<= assignJob($slaves[$i], "whore")>>
			<</if>>

		<<elseif ($arcologies[0].FSChattelReligionist > 0)>>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " is a pure and faithful slave, so $he sells $his body in the holy brothel.">>
				<<= assignJob($slaves[$i], "work in the brothel")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " is a pure and faithful slave, so $he sells $his body as a holy prostitute.">>
				<<= assignJob($slaves[$i], "whore")>>
			<</if>>
		<<elseif ($arcologies[0].FSEgyptianRevivalist > 0)>>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $masterSuiteSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " is a devoted slave, so $he immediately joins your harem.">>
				<<= assignJob($slaves[$i], "serve in the master suite")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " is a devoted slave, so $he immediately joins your harem.">>
				<<= assignJob($slaves[$i], "please you")>>
			<</if>>
		<<elseif ($arcologies[0].FSRomanRevivalist > 0)>>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " is a devoted slave, so $he decides $he can best serve the state by raising money for the treasury, by selling $his body in $brothelName.">>
				<<= assignJob($slaves[$i], "work in the brothel")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " is a devoted slave, so $he decides $he can best serve the state by raising money for the treasury, by selling $his body as a prostitute.">>
				<<= assignJob($slaves[$i], "whore")>>
			<</if>>
		<<elseif ($arcologies[0].FSAztecRevivalist > 0)>>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " is a devoted slave, so $he decides $he can best serve the empire by serving at the fertility temple.">>
				<<= assignJob($slaves[$i], "work in the brothel")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " is a devoted slave, so $he decides $he can best serve the empire by offering herself to the public.">>
				<<= assignJob($slaves[$i], "serve the public")>>
			<</if>>
		<<elseif ($arcologies[0].FSPaternalist > 0)>>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $brothelName, a respectable position for a slave in this enlightened arcology.">>
				<<= assignJob($slaves[$i], "work in the brothel")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " decides to be a whore, a respectable position for a slave in this enlightened arcology.">>
				<<= assignJob($slaves[$i], "whore")>>
			<</if>>
		<<elseif ($arcologies[0].FSPastoralist > 0)>>
			<<if ($slaves[$i].lactation > 0)>>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($dairyRestraintsSetting < 2) && ($dairy > $dairySlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " hurries to join your herd of dairy cows.">>
					<<= assignJob($slaves[$i], "work in the dairy")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " hurries to join your herd of cows.">>
					<<= assignJob($slaves[$i], "get milked")>>
				<</if>>
			<<else>>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $brothelName to help raise money to get more girls lactating properly.">>
					<<= assignJob($slaves[$i], "work in the brothel")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to prostitute $himself to help raise money to get more girls lactating properly.">>
					<<= assignJob($slaves[$i], "whore")>>
				<</if>>
			<</if>>
		<<elseif ($arcologies[0].FSHedonisticDecadence > 0)>>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($spa > $spaSlaves) && (($slaves[$i].trust < 60) || ($slaves[$i].devotion <= 60))>>
				<<set $slaves[$i].choosesOwnAssignmentText += " could use a break, so $he heads to take a dip in the spa.">>
				<<= assignJob($slaves[$i], "rest in the spa")>>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " could use a meal and a nap, so $he grabs a cup of food and heads to bed.">>
				<<= assignJob($slaves[$i], "rest")>>
			<</if>>
		<<else>>
			<<if ($slaves[$i].whoreSkill > $slaves[$i].entertainSkill)>>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to work in $brothelName, since $he thinks $himself a better whore than a public slut.">>
					<<= assignJob($slaves[$i], "work in the brothel")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to whore, since $he thinks $himself a better whore than a public slut.">>
					<<= assignJob($slaves[$i], "whore")>>
				<</if>>
			<<elseif ($slaves[$i].entertainSkill > $slaves[$i].whoreSkill)>>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($club > $clubSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to be a club $girl, since $he thinks $himself a better public slut than a whore.">>
					<<= assignJob($slaves[$i], "serve in the club")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to serve the public, since $he thinks $himself a better public slut than a whore.">>
					<<= assignJob($slaves[$i], "serve the public")>>
				<</if>>
			<<else>>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to join $his sisters and work in $brothelName.">>
					<<= assignJob($slaves[$i], "work in the brothel")>>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to prostitute $himself to help you upgrade $arcologies[0].name and improve everyone's life.">>
					<<= assignJob($slaves[$i], "whore")>>
				<</if>>
			<</if>>
		<</if>>
	<<else>>
		<<if ($universalRulesAssignsSelfFacility == 1) && ($club > $clubSlaves)>>
			<<set $slaves[$i].choosesOwnAssignmentText += " decides to be a club $girl, since partying is better than sitting around and failing to think of a job to do.">>
			<<= assignJob($slaves[$i], "serve in the club")>>
		<<elseif canWalk($slaves[$i]) && canSee($slaves[$i])>>
			<<set $slaves[$i].choosesOwnAssignmentText += " decides to tidy up the penthouse a little while $he thinks.">>
			<<= assignJob($slaves[$i], "be a servant")>>
		<<else>>
			<<set $slaves[$i].choosesOwnAssignmentText += " stays in bed, unable to come up with anything.">>
			<<= removeJob($slaves[$i], $slaves[$i].assignment)>>
		<</if>>
	<</if>>

	<<set $slaves[$i].choosesOwnAssignment = 2>> /* ready for second pass */

<</if>> /* closes choosesOwnAssignment */

repo_name: AnonDev/fc


code:
:: SA devotion [nobr]

<<if $slaves[$i].fetish == "mindbroken">>
	@@.red;$His mind is fundamentally broken, so $his experiences have no lasting effect on $his emotional state.@@
<<else>>
<<if $slaves[$i].fuckdoll == 0>>

<<set $energyPlus = 0>>

<<if $slaves[$i].origin == "You were acquainted with her before you were an arcology owner; your rival tried to use $him to manipulate you, but you rescued her.">>
	<<if ($rivalryDuration <= 10 || $rivalryFS == "Racial Supremacism" || $rivalryFS == "Paternalism")>>
		You @@.mediumaquamarine;saved $slaves[$i].slaveName from a living nightmare@@ under your rival's rule. $He @@.hotpink;tries $his best to adapt to $his savior's wishes.@@
		<<set $slaves[$i].devotion += 10>>
		<<set $slaves[$i].trust += 10>>
	<<elseif $hostageGiveIn == 1>>
		Since you are @@.mediumaquamarine;indulging@@ $slaves[$i].slaveName's desires, $he @@.hotpink;likes you more.@@
		<<set $slaves[$i].devotion += 5>>
		<<set $slaves[$i].trust += 5>>
	<<elseif $rivalryDuration > 20 && $slaves[$i].devotion < 5>>
		<<if Array.isArray($personalAttention) && $personalAttention.findIndex(function(s) { return s.ID == $slaves[$i].ID; }) != -1>>
			You took everything from $slaves[$i].slaveName and @@.mediumorchid;$he hates you for it.@@ Since you won't give $him what $he wants, $he @@.gold;refuses to trust you.@@ Since you are putting such a personal touch into $his care, $he can't find it in $him to rebel as strongly.
			<<set $slaves[$i].devotion -= 5>>
			<<set $slaves[$i].trust -= 5>>
		<<else>>
			You took everything from $slaves[$i].slaveName and @@.mediumorchid;$he hates you for it.@@ Since you won't give $him what $he wants, $he @@.gold;refuses to trust you at all.@@
			<<set $slaves[$i].devotion -= 25>>
			<<set $slaves[$i].trust -= 25>>
		<</if>>
	<<elseif $rivalryDuration > 10 && $slaves[$i].devotion < 5>>
		<<if Array.isArray($personalAttention) && $personalAttention.findIndex(function(s) { return s.ID == $slaves[$i].ID; }) != -1>>
			$He is @@.gold;horrified by you.@@ Your rival taught $him a great deal about slave life in your arcology and indulged $his deepest fantasies. $slaves[$i].slaveName considers being your pet @@.mediumorchid;a fate worse than death.@@ Since you are putting such a personal touch into $his care, maybe you aren't the monster $he thought you were. $He can't find it in $him to hate and fear you as much.
			<<set $slaves[$i].devotion -= 3>>
			<<set $slaves[$i].trust -= 3>>
		<<else>>
			$He is @@.gold;horrified by you.@@ Your rival taught $him a great deal about slave life in your arcology and indulged $his deepest fantasies. $slaves[$i].slaveName considers being your pet @@.mediumorchid;a fate worse than death.@@
			<<set $slaves[$i].devotion -= 15>>
			<<set $slaves[$i].trust -= 15>>
		<</if>>
	<</if>>
<</if>>

<<if $PC.preg >= 20 || ($PC.preg >= 16 && $PC.career == "escort")>>
	<<if $slaves[$i].devotion > 60>>
		<<if $PC.pregMood == 2>>
			$He is devoted to you and does $his best to satisfy your demanding, hormone driven libido, no matter what you want from $him. $His efforts to give $himself you to @@.hotpink;further $his submission@@ to you.
			<<set $slaves[$i].devotion += 2>>
		<<elseif $PC.pregMood == 1>>
			$He is devoted to you and tries $his best to accommodate your needs and desires. Your hormonal mothering @@.mediumaquamarine;leaves $him slightly more trusting@@ of you.
			<<set $slaves[$i].trust += 2>>
		<<else>>
			$He is devoted to you and tries $his best to accommodate your needs and desires.
		<</if>>
	<<else>>
		<<if $PC.pregMood == 2>>
			$He is @@.gold;horrified@@ of your aggressive sexual advances, forcing $him to @@.hotpink;bend to your will@@ or face punishment at the hands of a hormonal pregnant woman.
			<<set $slaves[$i].devotion += 4>>
			<<set $slaves[$i].trust -= 4>>
		<<elseif $PC.pregMood == 1>>
			$He happily @@.mediumorchid;takes advantage@@ of your hormone induced kindness, though your care @@.mediumaquamarine;builds $his trust in you.@@
			<<set $slaves[$i].devotion -= 4>>
			<<set $slaves[$i].trust += 4>>
		<<else>>
			$He takes note of your gravid form and @@.mediumorchid;begins testing just how much $he can get away with@@ while $he can.
			<<set $slaves[$i].devotion -= 3>>
		<</if>>
	<</if>>
<</if>>
<<if $slaves[$i].dick > 0 && canAchieveErection($slaves[$i]) && $PC.preg >= 18>>
	<<if $PC.pregMood == 2>>
		<<set $slaves[$i].penetrativeCount += 7>>
	<<else>>
		<<set $slaves[$i].penetrativeCount += 3>>
	<</if>>
<</if>>

<<if $slaves[$i].PCKnockedUp > 0 && $slaves[$i].fetish != "mindbroken" && $slaves[$i].fuckdoll == 0 && $slaves[$i].devotion < -20>>
	<<set _pregCountFactor = $slaves[$i].PCKnockedUp*5>>
	$He got you pregnant<<if $slaves[$i].PCKnockedUp > 1>> more than once<</if>> and $he knows it. This is a @@.mediumorchid;huge boost@@ to $his ego and gives $him a slight edge on you.
	<<set $slaves[$i].devotion -= _pregCountFactor>>
	<<if $slaves[$i].PCChildrenFathered > 0>>
		Even better; you gave birth to $his child<<if $slaves[$i].PCChildrenFathered > 1>>ren<</if>>. To $him, $he is the dominant force and you are just a bitch to be bred. $He could create a scandal if $he started running $his mouth, something $he lords over you every chance $he gets under the assumption that @@.mediumaquamarine;you'll try to appease $him to keep $him quiet.@@
		<<set $slaves[$i].devotion -= 5+_pregCountFactor, $slaves[$i].trust += 5+_pregCountFactor>>
	<</if>>
<</if>>

<<if $slaves[$i].devotion <= 95>>

<<if $slaves[$i].devotion <= 20 && $slaves[$i].devotion >= -50>>
	<<if $slaves[$i].trust > 20>>
		$slaves[$i].slaveName does not like you and believes that you will not punish $him severely, and $his @@.mediumorchid;regard for you is severely reduced@@ by this lack of respect.
		<<set $slaves[$i].devotion -= 4>>
	<<elseif $slaves[$i].trust >= -20>>
		$slaves[$i].slaveName neither likes nor fears you, and $his @@.mediumorchid;regard for you is reduced@@ by this lack of respect.
		<<set $slaves[$i].devotion -= 2>>
	<</if>>
<</if>>

<<if $slaves[$i].intelligence+$slaves[$i].intelligenceImplant > 95>>
	<<if Array.isArray($personalAttention) && $personalAttention.findIndex(function(s) { return s.ID == $slaves[$i].ID; }) != -1>>
		$slaves[$i].slaveName's @@.deepskyblue;brilliant mind@@ strongly resists slavery, but since you are giving $him personal attention you are able to compensate for $his genius.
	<<else>>
		<<if $slaves[$i].trust < -20>>
			$slaves[$i].slaveName's @@.deepskyblue;brilliant mind@@ strongly resists slavery, but $he fears you deeply enough that $he consciously forces $himself to obey out of self-preservation.
		<<else>>
			$slaves[$i].slaveName's @@.deepskyblue;brilliant mind@@ strongly @@.mediumorchid;resists@@ slavery and encourages $him to @@.gold;fear you.@@
			<<set $slaves[$i].devotion -= 2>>
			<<set $slaves[$i].trust -= 2>>
		<</if>>
	<</if>>
<<elseif $slaves[$i].intelligence+$slaves[$i].intelligenceImplant > 50>>
	<<if Array.isArray($personalAttention) && $personalAttention.findIndex(function(s) { return s.ID == $slaves[$i].ID; }) != -1>>
		$slaves[$i].slaveName's @@.deepskyblue;highly acute mind@@ naturally resists slavery, but since you are giving $him personal attention you are able to compensate for $his intelligence.
	<<else>>
		<<if $slaves[$i].trust < -20>>
			$slaves[$i].slaveName's @@.deepskyblue;highly acute mind@@ naturally resists slavery, but $he fears you deeply enough that $he consciously forces $himself to obey out of self-preservation.
		<<else>>
			$slaves[$i].slaveName's @@.deepskyblue;highly acute mind@@ naturally @@.mediumorchid;resists@@ slavery and encourages $him to @@.gold;fear you.@@
			<<set $slaves[$i].devotion -= 2>>
			<<set $slaves[$i].trust -= 2>>
		<</if>>
	<</if>>
<<elseif $slaves[$i].intelligence+$slaves[$i].intelligenceImplant > 15>>
	<<if Array.isArray($personalAttention) && $personalAttention.findIndex(function(s) { return s.ID == $slaves[$i].ID; }) != -1>>
		$slaves[$i].slaveName's @@.deepskyblue;intelligent mind@@ naturally resists slavery, but since you are giving $him personal attention you are able to compensate for $his cleverness.
	<<else>>
		<<if $slaves[$i].trust < -20>>
			$slaves[$i].slaveName's @@.deepskyblue;intelligent mind@@ naturally resists slavery, but $he fears you deeply enough that $he consciously forces $himself to obey out of self-preservation.
		<<else>>
			$slaves[$i].slaveName's @@.deepskyblue;intelligent mind@@ naturally @@.mediumorchid;resists@@ slavery.
			<<set $slaves[$i].devotion -= 2>>
		<</if>>
	<</if>>
<<elseif $slaves[$i].intelligence+$slaves[$i].intelligenceImplant < -95>>
	$slaves[$i].slaveName's @@.orangered;moronic mind@@ naturally @@.hotpink;accepts@@ slavery, and $he's imbecile enough to instinctively @@.mediumaquamarine;trust you@@ to know what's best for $him.
	<<set $slaves[$i].devotion += 2, $slaves[$i].trust += 2>>
<<elseif $slaves[$i].intelligence+$slaves[$i].intelligenceImplant < -50>>
	$slaves[$i].slaveName's @@.orangered;idiotic mind@@ naturally @@.hotpink;accepts@@ slavery, and $he's stupid enough to instinctively @@.mediumaquamarine;trust you@@ to know what's best.
	<<set $slaves[$i].devotion += 1, $slaves[$i].trust += 1>>
<<elseif $slaves[$i].intelligence+$slaves[$i].intelligenceImplant < -15>>
	$slaves[$i].slaveName's @@.orangered;unintelligent mind@@ naturally @@.hotpink;accepts@@ slavery.
	<<set $slaves[$i].devotion += 1>>
<</if>>

<</if>>

<<if ($arcologies[0].FSPaternalistLaw == 1)>>
	The totally paternalistic society of your arcology encourages $him to @@.mediumaquamarine;trust you.@@
	<<set $slaves[$i].trust += 1>>
<<elseif ($arcologies[0].FSPaternalist >= random(1,120))>>
	The paternalistic culture of your arcology encourages $him to @@.mediumaquamarine;trust you.@@
	<<set $slaves[$i].trust += 1>>
<</if>>
<<if ($arcologies[0].FSChattelReligionistLaw == 1)>>
	Your status as the prophet of your theocratic arcology encourages $him to @@.mediumaquamarine;trust you.@@
	<<set $slaves[$i].trust += 1>>
<<elseif ($arcologies[0].FSChattelReligionist >= random(1,120))>>
	Your arcology's omnipresent religion encourages $him to @@.mediumaquamarine;trust you.@@
	<<set $slaves[$i].trust += 1>>
<</if>>
<<if ($arcologies[0].FSRestart != "unset")>>
	<<if $slaves[$i].bellyPreg >= 1500 && $slaves[$i].devotion <= 20>>
		Being visibly pregnant in a society that loathes slave breeding fills $him with @@.gold;fear@@ for $himself and $his unborn child.
		<<set $slaves[$i].trust -= 10>>
	<<elseif $slaves[$i].pregKnown == 1 && $slaves[$i].devotion <= 20>>
		Being pregnant in a society that loathes slave breeding fills $him with @@.gold;worry@@ that you'll harm $him or $his unborn child.
		<<set $slaves[$i].trust -= 5>>
	<</if>>
<</if>>
<<if $arcologies[0].FSChattelReligionistCreed == 1>>
	<<if $nicaeaFocus == "slaves">>
		The creed of $nicaeaName @@.hotpink;focuses on slaves@@ and is repeated constantly all around $him.
		<<set $slaves[$i].devotion += $nicaeaPower>>
	<</if>>
<</if>>

/* Body lost effects */

<<if $slaves[$i].bodySwap > 0 && $slaves[$i].origBodyOwnerID > 0>>
	<<if ndef $slaveIndices[$slaves[$i].origBodyOwnerID]>>
		<<set $slaves[$i].origBodyOwnerID = 0>>
		<<if $slaves[$i].fetish != "mindbroken" && $slaves[$i].fuckdoll == 0>>
			<<if $slaves[$i].devotion > 20>>
				$slaves[$i].slaveName is somewhat saddened to see $his body leave forever.
			<<elseif $slaves[$i].devotion >= -50>>
				$slaves[$i].slaveName is @@.mediumorchid;disturbed@@ to find $his body is gone for good, damaging $his @@.gold;ability to trust you.@@
				<<set $slaves[$i].devotion -= 30, $slaves[$i].trust -= 30>>
			<<else>>
				$slaves[$i].slaveName is @@.mediumorchid;deeply upset@@ that $he'll never see $his body again. With so little left, $he finds it easy to take vengeance by @@.orangered;completely rejecting your ownership of $him.@@
				<<set $slaves[$i].devotion -= 50, $slaves[$i].trust = 100>>
			<</if>>
		<</if>>
	<</if>>
<</if>>

/* INDENTURE MENTAL EFFECTS */

<<if ($slaves[$i].indenture > -1)>>
	<<if $slaves[$i].indenture <= 52>>
	$He knows that it's less than a year until $his indenture ends.
	<<if $slaves[$i].devotion > 95>>
		Since $he loves you, $he has mixed feelings about the prospect.
	<<elseif $slaves[$i].devotion >= -20>>
		The prospect of freedom @@.hotpink;encourages $him to submit to your orders@@ and @@.mediumaquamarine;encourages $him to be optimistic.@@
		<<set $slaves[$i].devotion += 2>>
		<<set $slaves[$i].trust += 2>>
	<<else>>
		The prospect of freedom encourages $him to @@.mediumaquamarine;tolerate anything.@@
		<<set $slaves[$i].trust += 2>>
	<</if>>
	<<else>>
	The fact that $he is an indentured servant, not a permanent slave, is never truly far from $his mind.
	<<if $slaves[$i].devotion > 95>>
		Since $he loves you, $he has mixed feelings about eventual freedom.
	<<elseif $slaves[$i].devotion >= -20>>
		The prospect of eventual freedom @@.hotpink;cheers $him up@@ and @@.mediumaquamarine;makes $him optimistic.@@
		<<set $slaves[$i].devotion += 1>>
		<<set $slaves[$i].trust += 1>>
	<<else>>
		The prospect of eventual freedom works to make the indignities of slavery @@.mediumaquamarine;weigh lightly@@ on $him.
		<<set $slaves[$i].trust += 1>>
	<</if>>
	<</if>>
	<<if $slaves[$i].devotion <= 20>>
	<<if $slaves[$i].indentureRestrictions >= 2>>
		$He's also @@.mediumaquamarine;able to rely on the protection@@ of $his indenture.
		<<set $slaves[$i].trust += 1>>
	<<elseif $slaves[$i].indentureRestrictions > 1>>
		$He's also @@.mediumaquamarine;able to trust the restrictions@@ that $his indenture places on $his treatment.
		<<set $slaves[$i].trust += 1>>
	<</if>>
	<</if>>

<<elseif $seeAge == 1>> /* RETIREMENT */

<<if $slaves[$i].actualAge >= $retirementAge-5 && $PhysicalRetirementAgePolicy != 1>>
<<if ($CitizenRetirement == 1)>>
	<<if $slaves[$i].actualAge >= $retirementAge-1>>
	$He knows that it's less than a year until $his retirement from sexual slavery into citizenship.
	<<if $slaves[$i].devotion > 95>>
		Since $he loves you, $he has mixed feelings about the prospect, but $he prefers to think of it as your way of looking after $him. It's $his favorite subject, and $his strong feelings about it
		<<if $arcologies[0].FSPaternalist != "unset">>
			advances paternalistic ideals and @@.green;improves your reputation.@@
			<<= FSChange("Paternalist", 2)>>
		<<else>>
			@@.green;improves your reputation.@@
			<<run repX($FSSingleSlaveRep*2, "retirement")>>
		<</if>>
	<<elseif $slaves[$i].devotion >= -20>>
		The prospect of manumission @@.hotpink;encourages $him to submit to slavery@@ and @@.mediumaquamarine;encourages $him to be optimistic.@@
		<<set $slaves[$i].devotion += 2>>
		<<set $slaves[$i].trust += 2>>
	<<else>>
		The prospect of manumission encourages $him to @@.mediumaquamarine;tolerate anything.@@
		<<set $slaves[$i].trust += 2>>
	<</if>>
	<<else>>
	$His retirement from sexual slavery into citizenship is on the horizon.
	<<if $slaves[$i].devotion > 95>>
		Since $he loves you, $he has mixed feelings about the prospect, but $he prefers to think of it as your way of looking after $him. This
		<<if $arcologies[0].FSPaternalist != "unset">>
			advances paternalistic ideals and @@.green;improves your reputation.@@
			<<= FSChange("Paternalist", 2)>>
		<<else>>
			@@.green;improves your reputation.@@
			<<run repX($FSSingleSlaveRep, "retirement")>>
		<</if>>
	<<elseif $slaves[$i].devotion >= -20>>
		The prospect of manumission @@.hotpink;cheers $him up@@ and @@.mediumaquamarine;makes $him optimistic.@@
		<<set $slaves[$i].devotion += 1>>
		<<set $slaves[$i].trust += 1>>
	<<else>>
		The prospect of manumission works to make the indignities of slavery @@.mediumaquamarine;weigh lightly@@ on $him.
		<<set $slaves[$i].trust += 1>>
	<</if>>
	<</if>>
<<elseif ($BioreactorRetirement == 1)>>
	<<if $slaves[$i].actualAge >= $retirementAge-1>>
	$He knows that it's less than a year until $his permanent inclusion in the arcology's milk production systems.
	<<if $slaves[$i].devotion > 95>>
		Since $he loves you, $he desperately tries not to think about it, though $he occasionally bursts into tears without provocation.
	<<elseif $slaves[$i].devotion > 20>>
		To put it mildly, @@.gold;$he is terrified.@@
		<<set $slaves[$i].trust -= 3>>
	<<else>>
		$He is filled with @@.gold;terror@@ and @@.mediumorchid;horror.@@
		<<set $slaves[$i].devotion -= 3>>
		<<set $slaves[$i].trust -= 3>>
	<</if>>
	<<else>>
	$He knows that $his permanent inclusion in the arcology's milk production systems is not far off.
	<<if $slaves[$i].devotion > 95>>
		Since $he loves you, $he tries not to think about it, though $he occasionally seems preoccupied.
	<<elseif $slaves[$i].devotion > 20>>
		The prospect @@.gold;scares $him.@@
		<<set $slaves[$i].trust -= 2>>
	<<else>>
		The prospect @@.gold;scares@@ and @@.mediumorchid;disgusts $him.@@
		<<set $slaves[$i].devotion -= 2>>
		<<set $slaves[$i].trust -= 2>>
	<</if>>
	<</if>>
<<elseif ($ArcadeRetirement == 1)>>
	<<if $slaves[$i].actualAge >= $retirementAge-1>>
	$He knows that it's less than a year until $he is to be permanently encased in a bodysuit with holes for nothing but dick.
	<<if $slaves[$i].devotion > 95>>
		Since $he loves you, $he desperately tries not to think about it, though $he occasionally bursts into tears without provocation.
	<<elseif $slaves[$i].devotion > 20>>
		To put it mildly, @@.gold;$he is terrified.@@
		<<set $slaves[$i].trust -= 3>>
	<<else>>
		$He is filled with @@.gold;terror@@ and @@.mediumorchid;horror.@@
		<<set $slaves[$i].devotion -= 3>>
		<<set $slaves[$i].trust -= 3>>
	<</if>>
	<<else>>
	$He knows that $his ultimate fate as a Fuckdoll is not far off.
	<<if $slaves[$i].devotion > 95>>
		Since $he loves you, $he tries not to think about it, though $he occasionally seems preoccupied.
	<<elseif $slaves[$i].devotion > 20>>
		The prospect @@.gold;scares $him.@@
		<<set $slaves[$i].trust -= 2>>
	<<else>>
		The prospect @@.gold;scares@@ and @@.mediumorchid;disgusts $him.@@
		<<set $slaves[$i].devotion -= 2>>
		<<set $slaves[$i].trust -= 2>>
	<</if>>
	<</if>>
<</if>>
<<elseif $slaves[$i].physicalAge >= $retirementAge-5 && $PhysicalRetirementAgePolicy == 1>>
<<if ($CitizenRetirement == 1)>>
	<<if $slaves[$i].physicalAge >= $retirementAge-1>>
	$He knows that it's less than a year until $his retirement from sexual slavery into citizenship.
	<<if $slaves[$i].devotion > 95>>
		Since $he loves you, $he has mixed feelings about the prospect, but $he prefers to think of it as your way of looking after $him. It's $his favorite subject, and $his strong feelings about it
		<<if $arcologies[0].FSPaternalist != "unset">>
			advances paternalistic ideals and @@.green;improves your reputation.@@
			<<= FSChange("Paternalist", 2)>>
		<<else>>
			@@.green;improves your reputation.@@
			<<run repX($FSSingleSlaveRep*2, "retirement", $slaves[$i])>>
		<</if>>
	<<elseif $slaves[$i].devotion >= -20>>
		The prospect of manumission @@.hotpink;encourages $him to submit to slavery@@ and @@.mediumaquamarine;encourages $him to be optimistic.@@
		<<set $slaves[$i].devotion += 2>>
		<<set $slaves[$i].trust += 2>>
	<<else>>
		The prospect of manumission encourages $him to @@.mediumaquamarine;tolerate anything.@@
		<<set $slaves[$i].trust += 2>>
	<</if>>
	<<else>>
	$His retirement from sexual slavery into citizenship is on the horizon.
	<<if $slaves[$i].devotion > 95>>
		Since $he loves you, $he has mixed feelings about the prospect, but $he prefers to think of it as your way of looking after $him. This
		<<if $arcologies[0].FSPaternalist != "unset">>
			advances paternalistic ideals and @@.green;improves your reputation.@@
			<<= FSChange("Paternalist", 2)>>
		<<else>>
			@@.green;improves your reputation.@@
			<<run repX($FSSingleSlaveRep, "retirement", $slaves[$i])>>
		<</if>>
	<<elseif $slaves[$i].devotion >= -20>>
		The prospect of manumission @@.hotpink;cheers $him up@@ and @@.mediumaquamarine;makes $him optimistic.@@
		<<set $slaves[$i].devotion += 1>>
		<<set $slaves[$i].trust += 1>>
	<<else>>
		The prospect of manumission works to make the indignities of slavery @@.mediumaquamarine;weigh lightly@@ on $him.
		<<set $slaves[$i].trust += 1>>
	<</if>>
	<</if>>
<<elseif ($BioreactorRetirement == 1)>>
	<<if $slaves[$i].physicalAge >= $retirementAge-1>>
	$He knows that it's less than a year until $his permanent inclusion in the arcology's milk production systems.
	<<if $slaves[$i].devotion > 95>>
		Since $he loves you, $he desperately tries not to think about it, though $he occasionally bursts into tears without provocation.
	<<elseif $slaves[$i].devotion > 20>>
		To put it mildly, @@.gold;$he is terrified.@@
		<<set $slaves[$i].trust -= 3>>
	<<else>>
		$He is filled with @@.gold;terror@@ and @@.mediumorchid;horror.@@
		<<set $slaves[$i].devotion -= 3>>
		<<set $slaves[$i].trust -= 3>>
	<</if>>
	<<else>>
	$He knows that $his permanent inclusion in the arcology's milk production systems is not far off.
	<<if $slaves[$i].devotion > 95>>
		Since $he loves you, $he tries not to think about it, though $he occasionally seems preoccupied.
	<<elseif $slaves[$i].devotion > 20>>
		The prospect @@.gold;scares $him.@@
		<<set $slaves[$i].trust -= 2>>
	<<else>>
		The prospect @@.gold;scares@@ and @@.mediumorchid;disgusts $him.@@
		<<set $slaves[$i].devotion -= 2>>
		<<set $slaves[$i].trust -= 2>>
	<</if>>
	<</if>>
<<elseif ($ArcadeRetirement == 1)>>
	<<if $slaves[$i].physicalAge >= $retirementAge-1>>
	$He knows that it's less than a year until $he is to be permanently encased in a bodysuit with holes for nothing but dick.
	<<if $slaves[$i].devotion > 95>>
		Since $he loves you, $he desperately tries not to think about it, though $he occasionally bursts into tears without provocation.
	<<elseif $slaves[$i].devotion > 20>>
		To put it mildly, @@.gold;$he is terrified.@@
		<<set $slaves[$i].trust -= 3>>
	<<else>>
		$He is filled with @@.gold;terror@@ and @@.mediumorchid;horror.@@
		<<set $slaves[$i].devotion -= 3>>
		<<set $slaves[$i].trust -= 3>>
	<</if>>
	<<else>>
	$He knows that $his ultimate fate as a Fuckdoll is not far off.
	<<if $slaves[$i].devotion > 95>>
		Since $he loves you, $he tries not to think about it, though $he occasionally seems preoccupied.
	<<elseif $slaves[$i].devotion > 20>>
		The prospect @@.gold;scares $him.@@
		<<set $slaves[$i].trust -= 2>>
	<<else>>
		The prospect @@.gold;scares@@ and @@.mediumorchid;disgusts $him.@@
		<<set $slaves[$i].devotion -= 2>>
		<<set $slaves[$i].trust -= 2>>
	<</if>>
	<</if>>
<</if>>
<</if>>

<<if ($CitizenRetirement == 1)>>
<<if ($slaves[$i].devotion <= 95) || ($slaves[$i].trust <= 95)>>
<<if $SexMilestoneRetirement == 1>>
	<<if $slaves[$i].oralCount + $slaves[$i].analCount + $slaves[$i].vaginalCount + $slaves[$i].penetrativeCount + $slaves[$i].mammaryCount >= $retirementSex*0.8>>
	<<if $slaves[$i].devotion >= -20>>
		$He's @@.hotpink;more obedient@@ and @@.mediumaquamarine;more tolerant,@@
		<<set $slaves[$i].devotion += 1>>
		<<set $slaves[$i].trust += 1>>
	<<else>>
		$He does $his best to @@.mediumaquamarine;stay strong,@@
		<<set $slaves[$i].trust += 1>>
	<</if>>
	since $he knows that $his freedom is only a few thousand dicks away.
	<</if>>
<</if>>
<<if $MilkMilestoneRetirement == 1>>
	<<if $slaves[$i].milk >= $retirementMilk*0.8>>
	<<if $slaves[$i].devotion >= -20>>
		$He's @@.hotpink;more obedient@@ and @@.mediumaquamarine;more tolerant,@@
		<<set $slaves[$i].devotion += 1>>
		<<set $slaves[$i].trust += 1>>
	<<else>>
		$He does $his best to @@.mediumaquamarine;stay strong,@@
		<<set $slaves[$i].trust += 1>>
	<</if>>
	since $he knows $he will be free if $his udders can gush just a bit more cream.
	<</if>>
<</if>>
<<if $CumMilestoneRetirement == 1>>
	<<if $slaves[$i].cum >= $retirementCum*0.8>>
	<<if $slaves[$i].devotion >= -20>>
		$He's @@.hotpink;more obedient@@ and @@.mediumaquamarine;more tolerant,@@
		<<set $slaves[$i].devotion += 1>>
		<<set $slaves[$i].trust += 1>>
	<<else>>
		$He does $his best to @@.mediumaquamarine;stay strong,@@
		<<set $slaves[$i].trust += 1>>
	<</if>>
	since $he knows $he will be free if $his prick can spurt just a bit more jizz.
	<</if>>
<</if>>
<<if $BirthsMilestoneRetirement == 1>>
	<<if $slaves[$i].births >= $retirementBirths*0.6>>
	<<if $slaves[$i].devotion >= -20>>
		$He's @@.hotpink;more obedient@@ and @@.mediumaquamarine;more tolerant,@@
		<<set $slaves[$i].devotion += 1>>
		<<set $slaves[$i].trust += 1>>
	<<else>>
		$He does $his best to @@.mediumaquamarine;stay strong,@@
		<<set $slaves[$i].trust += 1>>
	<</if>>
	since $he knows $he only has to successfully breed a little more to be free.
	<</if>>
<</if>>
<<if $KillsMilestoneRetirement == 1>>
	<<if $slaves[$i].pitKills >= $retirementKills*0.6>>
	<<if $slaves[$i].devotion >= -20>>
		$He's @@.hotpink;more obedient@@ and @@.mediumaquamarine;more tolerant,@@
		<<set $slaves[$i].devotion += 1>>
		<<set $slaves[$i].trust += 1>>
	<<else>>
		$He does $his best to @@.mediumaquamarine;stay strong,@@
		<<set $slaves[$i].trust += 1>>
	<</if>>
	since $he knows just a bit more murder in the pit will win $his freedom.
	<</if>>
<</if>>
<</if>>
<</if>>

<</if>> /* CLOSES RETIREMENT */

<<if $slaves[$i].assignmentVisible == 1>>
<<if $personalAttention == "sex">>
<<if $freeSexualEnergy > 0>>
	<<if $freeSexualEnergy == 3>>
		$He gets a lot of sexual attention from you, since you don't have nearly enough dedicated fucktoys to sate your libido, and this @@.hotpink;<<if $slaves[$i].devotion > 50>>intensifies $his love for you<<else>>forces $him to get used to sex slavery<</if>>.@@
	<<elseif $freeSexualEnergy == 2>>
		$He receives some sexual attention from you, since you don't have enough dedicated fucktoys to sate your libido, and this @@.hotpink;<<if $slaves[$i].devotion > 50>>builds $his closeness to you<<else>>gets $him used to being your sex slave<</if>>.@@
	<<else>>
		$He receives occasional sexual attention from you, since you barely have enough dedicated fucktoys to sate your libido, @@.hotpink;<<if $slaves[$i].devotion > 50>>making $him feel closer to you<<else>>keeping $him aware $he's your sex slave<</if>>.@@
	<</if>>
	<<set $slaves[$i].devotion += $freeSexualEnergy>>
	<<set $slaves[$i].oralCount += $freeSexualEnergy>>
	<<set $oralTotal += $freeSexualEnergy>>
	<<if canDoVaginal($slaves[$i]) && $slaves[$i].vagina > 0>>
		<<set $slaves[$i].vaginalCount += $freeSexualEnergy>>
		<<set $vaginalTotal += $freeSexualEnergy>>
	<</if>>
	<<if canDoAnal($slaves[$i]) && $slaves[$i].anus > 0>>
		<<set $slaves[$i].analCount += $freeSexualEnergy>>
		<<set $analTotal += $freeSexualEnergy>>
	<</if>>
	<<if $slaves[$i].boobs > 500 && $PC.dick > 0>>
		<<set $slaves[$i].mammaryCount += $freeSexualEnergy>>
		<<set $mammaryTotal += $freeSexualEnergy>>
	<</if>>
	<<if ($slaves[$i].toyHole == "dick") && canPenetrate($slaves[$i])>>
		<<set $slaves[$i].penetrativeCount += $freeSexualEnergy>>
		<<set $penetrativeTotal += $freeSexualEnergy>>
		<<if canImpreg($PC, $slaves[$i])>>
			<<= knockMeUp($PC, $freeSexualEnergy, 0, $slaves[$i].ID, 1)>>
		<</if>>
		<<if $sexualOpeness == 0>>
			<<set $PC.degeneracy++>>
		<</if>>
	<</if>>
<</if>>
<</if>>
<</if>>

/* COLLECTIVE SPIRIT IMPACTS */

<<if ($slaves.length > 3)>>
<<set _collectiveTrustEffect = 0>>
<<set _collectiveDevotionEffect = 0>>
<<if $enduringDevotion > 50>>
	<<if $slaves[$i].devotion >= -20>>
	<<if $slaves[$i].devotion <= 20>>
		<<set _collectiveDevotionEffect = 1, $slaves[$i].devotion += 1>>
		<<if $slaves[$i].assignmentVisible == 1>><<set $slaves[$i].devotion += 1>><</if>>
	<</if>>
	<</if>>
<<elseif $enduringDevotion <= 0>>
	<<if $slaves[$i].devotion <= 20>>
		<<set _collectiveDevotionEffect = -1, $slaves[$i].devotion -= 1>>
		<<if $slaves[$i].assignmentVisible == 1>><<set $slaves[$i].devotion -= 1>><</if>>
	<</if>>
<</if>>
<<if $enduringTrust > 50>>
	<<if $slaves[$i].trust >= -20>>
	<<if $slaves[$i].trust <= 20>>
		<<set _collectiveTrustEffect = 1, $slaves[$i].trust += 1>>
		<<if $slaves[$i].assignmentVisible == 1>><<set $slaves[$i].trust += 1>><</if>>
	<</if>>
	<</if>>
<<elseif $enduringTrust <= 0>>
	<<if $slaves[$i].trust <= 20>>
		<<set _collectiveTrustEffect = -1, $slaves[$i].trust -= 1>>
		<<if $slaves[$i].assignmentVisible == 1>><<set $slaves[$i].trust -= 1>><</if>>
	<</if>>
<</if>>
<<if _collectiveDevotionEffect == 1>>
	<<if _collectiveTrustEffect == 1>>
		Since $he's ambivalent and fearful, the @@.hotpink;collective devotion@@ @@.mediumaquamarine;and trust@@ of your slaves affect $him slightly.
	<<elseif _collectiveTrustEffect == 0>>
		Since $he's ambivalent about you, the @@.hotpink;collective devotion@@ your slaves feel for you affects $him slightly.
	<<else>>
		Since $he's ambivalent about you, the @@.hotpink;collective devotion@@ your slaves feel for you affects $him slightly, but their @@.gold;general fear@@ affects $him too.
	<</if>>
<<elseif _collectiveDevotionEffect == 0>>
	<<if _collectiveTrustEffect == 1>>
		Since $he's fearful of you, the @@.mediumaquamarine;collective trust@@ your slaves place in you affects $him slightly.
	<<elseif _collectiveTrustEffect == -1>>
		Since $he doesn't trust you, the @@.gold;collective fear@@ your slaves feel for you affects $him slightly.
	<</if>>
<<else>>
	<<if _collectiveTrustEffect == 1>>
		The @@.mediumorchid;collective anger@@ your slaves feel reinforces $his own feelings, but their @@.mediumaquamarine;collective trust@@ also affects $him slightly.
	<<elseif _collectiveTrustEffect == 0>>
		The @@.mediumorchid;collective anger@@ your slaves feel reinforces $his own feelings.
	<<else>>
		The @@.mediumorchid;collective anger@@ @@.gold;and fear@@ your slaves feel reinforce $his own feelings.
	<</if>>
<</if>>
<</if>>

<<if $slaves[$i].assignmentVisible == 1>>
<<if ($arcade != 0) || (($dairy != 0) && ($dairyRestraintsSetting >= 2))>>
	<<if $slaves[$i].devotion <= 95>>
		$He knows about <<if $arcade != 0>>$arcadeName<<if ($dairy != 0) && ($dairyRestraintsSetting >= 2)>> and $dairyName<</if>><<else>>$dairyName<</if>>, and @@.gold;fears@@ that you might send $him there.
		<<set $slaves[$i].trust -= 1>>
	<<else>>
		$He knows some of your other slaves meet terrible, industrial fates, but $he loves you so much that $he tries not to think about it.
	<</if>>
<</if>>
<</if>>

/* STAT CROSSOVERS */

<<if $slaves[$i].trust >= -20>>
<<if $slaves[$i].devotion > 95>>
	<<if $slaves[$i].trust <= 20>>
		$slaves[$i].slaveName loves you, so $he finds $himself @@.mediumaquamarine;fearing you a little less.@@
		<<set $slaves[$i].trust += 1>>
	<<elseif $slaves[$i].trust <= 50>>
		$slaves[$i].slaveName loves you, so $he finds $himself @@.mediumaquamarine;trusting you a little more.@@
		<<set $slaves[$i].trust += 1>>
	<</if>>
<<elseif $slaves[$i].devotion > 60>>
	<<if $slaves[$i].trust <= 20>>
		$slaves[$i].slaveName is devoted to you, so $he finds $himself @@.mediumaquamarine;fearing you a little less.@@
		<<set $slaves[$i].trust += 1>>
	<</if>>
<<elseif $slaves[$i].devotion < -50>>
	<<if $slaves[$i].trust > 20>>
		$slaves[$i].slaveName hates you, but also doesn't fear you, @@.orangered;bolstering $his disobedience.@@
		<<set $slaves[$i].trust += 5>>
	<<else>>
		$slaves[$i].slaveName hates you, so $he finds $himself @@.gold;trusting you a little less.@@
		<<set $slaves[$i].trust -= 2>>
	<</if>>
<</if>>
<</if>>
<<if $slaves[$i].trust > 95>>
	<<if $slaves[$i].devotion < -20>>
		$slaves[$i].slaveName feels no threat from you, so $he finds it easy to @@.mediumorchid;express $his hatred of you.@@
		<<set $slaves[$i].devotion -= 10>>
	<<elseif $slaves[$i].devotion <= 20>>
		$slaves[$i].slaveName trusts you implicitly, so $he finds $himself @@.hotpink;hating you a little less.@@
		<<set $slaves[$i].devotion += 1>>
	<<elseif $slaves[$i].devotion <= 50>>
		$slaves[$i].slaveName trusts you implicitly, so $he finds $himself @@.hotpink;liking you a little more.@@
		<<set $slaves[$i].devotion += 1>>
	<</if>>
<<elseif $slaves[$i].trust > 50>>
	<<if $slaves[$i].devotion < -20>>
		$slaves[$i].slaveName finds you non-threatening, so it's easy for $him to @@.mediumorchid;defy you.@@
		<<set $slaves[$i].devotion -= 5>>
	<<elseif $slaves[$i].devotion <= 20>>
		$slaves[$i].slaveName trusts you, so $he finds $himself @@.hotpink;hating you a little less.@@
		<<set $slaves[$i].devotion += 1>>
	<</if>>
<<elseif $slaves[$i].trust < -50>>
	<<if $slaves[$i].devotion >= -20>>
	<<if $slaves[$i].devotion <= 50>>
		$slaves[$i].slaveName is so terrified of you that $he tries desperately to avoid punishment, @@.hotpink;which is sometimes indistinguishable from devotion.@@
		<<set $slaves[$i].devotion += 2>>
	<</if>>
	<</if>>
<<elseif $slaves[$i].trust < -20>>
	<<if $slaves[$i].devotion > 20>>
	<<if $slaves[$i].devotion <= 50>>
		$slaves[$i].slaveName is scared of you, but not truly terrified, so $he feels safe in @@.mediumorchid;hating the worst parts of being your sex slave.@@
		<<set $slaves[$i].devotion -= 2>>
	<</if>>
	<</if>>
<</if>>

<<if ($slaves[$i].tankBaby > 0)>>
	<<if ($slaves[$i].devotion <= 95)>>
		The tank's imprinting systems left a @@.hotpink;deep, subconscious <<if $activeSlave.tankBaby == 2>>need<<else>>desire<</if>>@@ to serve $his owner.
	<</if>>
<</if>>

<<if ($slaves[$i].sexualQuirk == "unflinching")>>
	<<if ($slaves[$i].devotion <= 95)>>
	<<if ($slaves[$i].devotion < $slaves[$i].oldDevotion)>>
	$His unflinching nature leads $him to forget some of the unpleasant things $he's experienced this week, @@.hotpink;reducing their impact on $his feelings about you.@@
	<<set $slaves[$i].devotion += ($slaves[$i].oldDevotion - $slaves[$i].devotion)/2>>
	<</if>>
	<</if>>
<</if>>

/* CAPS ON DEVOTION GAIN */

<<if $slaves[$i].tankBaby == 1>>
	The incubation facility conditioned $his mind for total subservience to $his owner; $he cannot resist $his progress.
<<elseif $slaves[$i].tankBaby == 2>>
	The incubation facility conditioned $his mind for total reverence of $his owner; $he cannot resist $his progress.
<<elseif $slaves[$i].devotion >= -20>>
	<<if $slaves[$i].devotion >= ($slaves[$i].oldDevotion+5)>>
		<<if $slaves[$i].tankBaby == 1>>
			The incubation facility conditioned $his mind for total subservience to $his owner; $he cannot resist $his progress.
		<<elseif $arcologies[0].FSChattelReligionist >= random(1,100)>>
			The natural resilience of $his mind is overcome by the omnipresent combination of faith and servitude in $arcologies[0].name, and $he does not resist $his progress down the path towards total subservience.
		<<elseif Array.isArray($personalAttention) && $personalAttention.findIndex(function(s) { return s.ID == $slaves[$i].ID; }) != -1>>
			$He gained so much regard for you this week that $his natural reaction is to rebound a little, but since you're giving $him personal attention, your charismatic presence prevents this.
		<<elseif $slaves[$i].devotion < 95>>
			So many things served to drive $him into subservience this week that $his mind @@.mediumorchid;rebounds a little.@@
			<<set $slaves[$i].devotion = ($slaves[$i].oldDevotion+5)>>
		<</if>>
	<</if>>
<<else>>
	<<if $slaves[$i].devotion >= ($slaves[$i].oldDevotion+5)>>
	<<if $slaves[$i].tankBaby == 1>>
		The incubation facility conditioned $his mind for total subservience to $his owner; $he cannot resist $his progress.
	<<elseif $slaves[$i].behavioralFlaw == "arrogant">>
		Though $he made progress this week, @@.mediumorchid;it is limited by $his arrogance.@@
		<<set $slaves[$i].devotion = ($slaves[$i].oldDevotion+5)>>
	<<elseif ($slaves[$i].behavioralFlaw == "bitchy") && canTalk($slaves[$i])>>
		Though $he made progress this week, @@.mediumorchid;it is limited by the independence $he regains by making snide comments.@@
		<<set $slaves[$i].devotion = ($slaves[$i].oldDevotion+5)>>
	<<elseif $slaves[$i].behavioralFlaw == "devout">>
		Though $he made progress this week, @@.mediumorchid;it is limited by the independence $he regains through reliance on $his faith.@@
		<<set $slaves[$i].devotion = ($slaves[$i].oldDevotion+5)>>
	<<elseif $slaves[$i].behavioralFlaw == "liberated">>
		Though $he made progress this week, @@.mediumorchid;it is limited by the independence $he retains due to $his moral convictions that this is wrong.@@
		<<set $slaves[$i].devotion = ($slaves[$i].oldDevotion+5)>>
	<</if>>
	<</if>>
<</if>>

/* CAPS ON TRUST GAIN */

<<if $slaves[$i].trust >= -20>>
	<<if $slaves[$i].trust >= ($slaves[$i].oldTrust+5)>>
		<<if $slaves[$i].tankBaby == 1>>
			Any natural doubts $he has are overcome by $his conditioning in the incubation facility; $he cannot resist trusting $his owner.
		<<elseif $arcologies[0].FSChattelReligionist >= random(1,100)>>
			Any natural doubts $he harbors are overcome by $his belief in Chattel Religionism, and $he does not resist $his progress down the path towards total trust in you.
		<<elseif Array.isArray($personalAttention) && $personalAttention.findIndex(function(s) { return s.ID == $slaves[$i].ID; }) != -1>>
			$He gained so much trust in you this week that $his natural reaction is to doubt $himself, but since you're giving $him personal attention, $he decides to trust $his understanding of your will.
		<<elseif $slaves[$i].trust < 95>>
			$He gained so much trust in you this week that $he @@.gold;draws back a little@@ out of self-doubt.
			<<set $slaves[$i].trust = ($slaves[$i].oldTrust+5)>>
		<</if>>
	<</if>>
<<else>>
	<<if $slaves[$i].trust >= ($slaves[$i].oldTrust+5)>>
	<<if $slaves[$i].tankBaby == 1>>
		Any natural doubts $he has are overcome by $his conditioning in the incubation facility; $he cannot resist trusting $his owner.
	<<elseif ($slaves[$i].behavioralFlaw == "odd") && ($slaves[$i].collar != "shock punishment")>>
		Though $he made progress this week, @@.gold;it is limited by $his preoccupation with $his own oddities.@@
		<<set $slaves[$i].trust = ($slaves[$i].oldTrust+5)>>
	<</if>>
	<</if>>
<</if>>

<<if ($slaves[$i].devotion > 100) && ($slaves[$i].trust > 100) && ($slaves[$i].energy > 50)>>
	$His perfect devotion and trust @@.green;improve your reputation.@@
	<<run repX(10*($slaves[$i].devotion-100), "slavesViewOfPC", $slaves[$i])>>
	<<set $slaves[$i].devotion = 100>>
	<<run repX(10*($slaves[$i].trust-100), "slavesViewOfPC", $slaves[$i])>>
	<<set $slaves[$i].trust = 100>>
<<else>>
	<<if ($slaves[$i].devotion > 100)>>
		<<if ($slaves[$i].trust < 100) && ($slaves[$i].trust > 20)>>
			<<set $slaves[$i].trust += Math.trunc(($slaves[$i].devotion-100)*5)/10>>
		<<elseif $slaves[$i].energy <= 50>>
			<<set $energyPlus += Math.trunc($slaves[$i].devotion-100)>>
		<<else>>
			$His extreme devotion @@.green;improved your reputation.@@
			<<run repX(10*($slaves[$i].devotion-100), "slavesViewOfPC", $slaves[$i])>>
		<</if>>
		<<set $slaves[$i].devotion = 100>>
	<<elseif $slaves[$i].devotion > 95>>
		<<set $slaves[$i].devotion = 100>>
	<<elseif ($slaves[$i].devotion < -95)>>
		<<set $slaves[$i].devotion = -100>>
	<</if>>
	<<if ($slaves[$i].trust > 100)>>
		<<if $slaves[$i].devotion < 100 && $slaves[$i].devotion > 20>>
			<<set $slaves[$i].devotion += Math.trunc($slaves[$i].trust-100)>>
		<<elseif $slaves[$i].devotion < -50>>
			$His blatant disregard for your rule @@.red;damages your reputation.@@
			<<run repX(30*($slaves[$i].trust-100), "slavesViewOfPC", $slaves[$i])>>
		<<elseif $slaves[$i].energy <= 50>>
			<<set $energyPlus += Math.trunc($slaves[$i].trust-100)>>
		<<else>>
			$His extreme trust @@.green;improved your reputation.@@
			<<run repX(10*($slaves[$i].trust-100), "slavesViewOfPC", $slaves[$i])>>
		<</if>>
		<<set $slaves[$i].trust = 100>>
	<<elseif $slaves[$i].trust > 95>>
		<<set $slaves[$i].trust = 100>>
	<<elseif ($slaves[$i].trust < -95)>>
		<<set $slaves[$i].trust = -100>>
	<</if>>
<</if>>
<<if ($energyPlus > 0)>>
	$His confidence in $his sexuality @@.green;improved $his low sex drive.@@
	<<set $slaves[$i].energy += $energyPlus>>
<</if>>

<<if ($slaves[$i].devotion > 95)>>
	$slaves[$i].slaveName's @@.magenta;worshipfulness is beyond improvement,@@ and $his
<<elseif ($slaves[$i].devotion > 50) && ($slaves[$i].devotion > $slaves[$i].oldDevotion)>>
	$slaves[$i].slaveName's @@.hotpink;devotion increased@@ and $his
<<elseif ($slaves[$i].devotion > 50) && ($slaves[$i].devotion == $slaves[$i].oldDevotion)>>
	$slaves[$i].slaveName's @@.yellow;devotion did not change@@ and $his
<<elseif ($slaves[$i].devotion > 50)>>
	$slaves[$i].slaveName's @@.mediumorchid;devotion dropped@@ and $his
<<elseif ($slaves[$i].devotion >= -20) && ($slaves[$i].devotion > $slaves[$i].oldDevotion)>>
	$slaves[$i].slaveName's @@.hotpink;regard for you increased@@ and $his
<<elseif ($slaves[$i].devotion >= -20) && ($slaves[$i].devotion == $slaves[$i].oldDevotion)>>
	$slaves[$i].slaveName's @@.yellow;regard for you did not change@@ and $his
<<elseif ($slaves[$i].devotion >= -20)>>
	$slaves[$i].slaveName's @@.mediumorchid;regard for you dropped@@ and $his
<<elseif ($slaves[$i].devotion > $slaves[$i].oldDevotion)>>
	$slaves[$i].slaveName's @@.hotpink;resistance dropped@@ and $his
<<elseif ($slaves[$i].devotion == $slaves[$i].oldDevotion)>>
	$slaves[$i].slaveName's @@.yellow;resistance did not change@@ and $his
<<else>>
	$slaves[$i].slaveName's @@.mediumorchid;resistance increased@@ and $his
<</if>>

<<if $slaves[$i].devotion < -20>>
	<<if ($slaves[$i].trust > 95)>>
		@@.darkred;fear of you is non existent.@@
	<<elseif ($slaves[$i].trust > 20) && ($slaves[$i].trust > $slaves[$i].oldTrust)>>
		@@.orangered;fear of you@@ dropped this week.
	<<elseif ($slaves[$i].trust > 20) && ($slaves[$i].trust == $slaves[$i].oldTrust)>>
		@@.yellow;fear did not change@@ this week.
	<<elseif ($slaves[$i].trust > 20)>>
		@@.green;fear increased@@ this week.
	<<elseif ($slaves[$i].trust > $slaves[$i].oldTrust)>>
		@@.mediumaquamarine;fear dropped@@ this week.
	<<elseif ($slaves[$i].trust == $slaves[$i].oldTrust)>>
		@@.yellow;fear did not change@@ this week.
	<<else>>
		@@.gold;fear increased@@ this week.
	<</if>>
<<else>>
	<<if ($slaves[$i].trust > 95)>>
		@@.seagreen;trust in you is total.@@
	<<elseif ($slaves[$i].trust > 20) && ($slaves[$i].trust > $slaves[$i].oldTrust)>>
		@@.mediumaquamarine;trust improved@@ this week.
	<<elseif ($slaves[$i].trust > 20) && ($slaves[$i].trust == $slaves[$i].oldTrust)>>
		@@.yellow;trust did not change@@ this week.
	<<elseif ($slaves[$i].trust > 20)>>
		@@.gold;trust dropped@@ this week.
	<<elseif ($slaves[$i].trust > $slaves[$i].oldTrust)>>
		@@.mediumaquamarine;fear dropped@@ this week.
	<<elseif ($slaves[$i].trust == $slaves[$i].oldTrust)>>
		@@.yellow;fear did not change@@ this week.
	<<else>>
		@@.gold;fear increased@@ this week.
	<</if>>
<</if>>

<<if ($slaves[$i].devotion > 50) && ($slaves[$i].oldDevotion <= 50)>>
	@@.green;$He has gone from accepting $his position to being devoted to you!@@
	<<set $slaves[$i].devotion += 1>>
<<elseif ($slaves[$i].devotion > 20) && ($slaves[$i].oldDevotion <= 20)>>
	@@.green;$He has gone from being ambivalent toward you to accepting your ownership of $him!@@
	<<set $slaves[$i].devotion += 1>>
<<elseif ($slaves[$i].devotion >= -20) && ($slaves[$i].oldDevotion < -20)>>
	@@.green;$He has gone from disliking you to being ambivalent about you!@@
	<<set $slaves[$i].devotion += 1>>
<<elseif ($slaves[$i].devotion >= -50) && ($slaves[$i].oldDevotion < -50)>>
	@@.green;$He has gone from hating you to merely disliking you!@@
	<<set $slaves[$i].devotion += 1>>
<</if>>

<<if $slaves[$i].devotion < -20>>
	<<if ($slaves[$i].trust > 50) && ($slaves[$i].oldtrust <= 50)>>
		@@.red;$He has gone from being careful around you to showing open defiance!@@
		<<set $slaves[$i].trust++>>
	<<elseif ($slaves[$i].trust > 20) && ($slaves[$i].oldtrust <= 20)>>
		@@.yellow;$He has gone from fearing you to merely being careful around you!@@
		<<set $slaves[$i].trust++>>
	<<elseif ($slaves[$i].trust >= -20) && ($slaves[$i].oldtrust < -20)>>
		@@.yellow;$He has gone from being afraid of you to being merely fearful!@@
		<<set $slaves[$i].trust++>>
	<<elseif ($slaves[$i].trust >= -50) && ($slaves[$i].oldtrust < -50)>>
		@@.yellow;$He has gone from being terrified to being merely afraid of you!@@
		<<set $slaves[$i].trust++>>
	<</if>>
<<else>>
	<<if ($slaves[$i].trust > 50) && ($slaves[$i].oldtrust <= 50)>>
		@@.green;$He has gone from being careful around you to trusting you!@@
		<<set $slaves[$i].trust += 1>>
	<<elseif ($slaves[$i].trust > 20) && ($slaves[$i].oldtrust <= 20)>>
		@@.green;$He has gone from fearing you to merely being careful around you!@@
		<<set $slaves[$i].trust += 1>>
	<<elseif ($slaves[$i].trust >= -20) && ($slaves[$i].oldtrust < -20)>>
		@@.green;$He has gone from being afraid of you to being merely fearful!@@
		<<set $slaves[$i].trust += 1>>
	<<elseif ($slaves[$i].trust >= -50) && ($slaves[$i].oldtrust < -50)>>
		@@.green;$He has gone from being terrified to being merely afraid of you!@@
		<<set $slaves[$i].trust += 1>>
	<</if>>
<</if>>

<<if ($slaves[$i].trust < -20) && ($slaves[$i].oldtrust >= -20)>>
	<<if ($slaves[$i].devotion <= 20)>>
	@@.green;$He has gone from merely fearing you to actively being afraid of you!@@
	<<set $slaves[$i].trust -= 2>>
	<</if>>
<</if>>

/* done stealthily to make the slave's progression seem natural */
<<if ($slaves[$i].rudeTitle == 1) && ($slaves[$i].devotion >= -50)>>
	<<set $slaves[$i].customTitle = "", $slaves[$i].customTitleLisp = "", $slaves[$i].rudeTitle = 0>>
<</if>>

<<else>> /* IS FUCKDOLL */

$He is confined in a suit that limits $his perception of the outside world to tonal commands from the suit itself and things that are inserted into $his mouth<<if $activeSlave.vagina > -1>>, vagina,<</if>> and anus.
<<if $slaves[$i].sexualFlaw == "self hating">>
	$His self hatred @@.gold;cannot eliminate the growing fear@@ engendered by $his remaining spark of self-preservation.
	<<set $slaves[$i].trust -= 5>>
<<elseif $slaves[$i].trust > 50>>
	$He still hopes you'll let $him out of $his suit so $he can be your good slave again, but @@.gold;fear and doubt creep in@@ by the minute. And there are a lot of them.
<<else>>
	With little to do but <<if $activeSlave.fuckdoll <= 60>>wonder if $he's about to be used<<else>>desperately hope $he'll be used soon<</if>>, $he dwells on the @@.gold;horrible fear@@ that this dark existence will be perpetual.
<</if>>
<<set $slaves[$i].trust -= 10>>
<<if $slaves[$i].sexualFlaw == "self hating">>
	$He knows to $his core that $he deserves this, @@.mediumorchid;slowing but not stopping $his descent into depression.@@
	<<set $slaves[$i].devotion += 5>>
<<elseif $slaves[$i].devotion > 50>>
	$He spirals through @@.mediumorchid;obsessive depression,@@ wondering what $he did to deserve this fate.
<<else>>
	In the silence and darkness between the times $he's used, $he has little to do but @@.mediumorchid;hate you.@@
<</if>>
<<set $slaves[$i].devotion -= 10>>

<</if>> /* CLOSES FUCKDOLL CHECK */
<</if>> /* CLOSES MINDBROKEN CHECK */