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) */

	<<SlavePronouns $slaves[$i]>>
	<<SlaveTitle $slaves[$i]>>
	<<set _oself = $object + "self">>
	<<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 + ". $pronounCap 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 $object 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 $pronoun decides to get treatment at $clinicName.">>
			<<assignJob $slaves[$i] "get treatment in the clinic">>
		<<else>>
			<<set $slaves[$i].choosesOwnAssignmentText += " is unhealthy, so $pronoun decides to rest.">>
			<<removeJob $slaves[$i] $slaves[$i].assignment>>
		<</if>>

	<<elseif ($slaves[$i].intelligenceImplant != 1)>>
		<<if ($universalRulesAssignsSelfFacility == 1) && ($schoolroom > $schoolroomSlaves)>>
			<<set $slaves[$i].choosesOwnAssignmentText += " is uneducated, so $pronoun sits _oself down in $schoolroomName.">>
			<<assignJob $slaves[$i] "learn in the schoolroom">>
		<<else>>
			<<set $slaves[$i].choosesOwnAssignmentText += " is uneducated, so $pronoun sits _oself 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 $pronoun 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 $pronoun 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 $pronoun decides to work as a servant since it's the least sexually demanding job available.">>
			<<assignJob $slaves[$i] "be a servant">>
		<</if>>

	<<elseif ($slaves[$i].relationship == -1)>>
		<<set $slaves[$i].choosesOwnAssignmentText += " relies on promiscuity to fulfill $possessive emotional needs,">>
		<<if ($cash > 10000)>>
			<<set $slaves[$i].choosesOwnAssignmentText += " and doesn't mind being a whore, so $pronoun prostitutes _oself">>
			<<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 $pronoun 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 $pronoun decides to make you money by prostituting _oself">>
			<<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 $pronoun 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 $pronoun thinks of little but sex with you,">>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $masterSuiteSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun heads straight to $masterSuiteName.">>
				<<assignJob $slaves[$i] "serve in the master suite">>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun cheerfully designates _oself one of your fucktoys.">>
				<<assignJob $slaves[$i] "please you">>
			<</if>>
		<<elseif canSee($slaves[$i]) && canWalk($slaves[$i])>>
			<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun 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 $possessive own,">>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $masterSuiteSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun heads straight to $masterSuiteName to await your caress.">>
				<<assignJob $slaves[$i] "serve in the master suite">>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun cheerfully designates _oself 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 $pronoun thinks of little but sex with you,">>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $masterSuiteSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun heads straight to $masterSuiteName.">>
					<<assignJob $slaves[$i] "serve in the master suite">>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun cheerfully designates _oself one of your fucktoys.">>
					<<assignJob $slaves[$i] "please you">>
				<</if>>
			<<elseif canSee($slaves[$i]) && canWalk($slaves[$i])>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun 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 $possessive own">>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $masterSuiteSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun heads straight to $masterSuiteName to await your caress.">>
					<<assignJob $slaves[$i] "serve in the master suite">>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun cheerfully designates _oself 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 $pronoun thinks of all the ways $pronoun can take advantage of this,">>
			<<if ($universalRulesAssignsSelfFacility == 1) && ($spa > $spaSlaves)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun heads straight to $spaName to relax.">>
				<<assignJob $slaves[$i] "rest in the spa">>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun cheerfully desides to lounge about the penthouse.">>
				<<assignJob $slaves[$i] "rest">>
			<</if>>
		<<elseif $slaves[$i].devotion < -20>>
			<<set $slaves[$i].choosesOwnAssignmentText += " and $pronoun is scared of you, so $pronoun chooses to work as a servant so that $pronoun may serve you without "serving" you.">>
			<<assignJob $slaves[$i] "be a servant">>
		<<else>>
			<<if ($slaves[$i].energy > 60)>>
				<<set $slaves[$i].choosesOwnAssignmentText += " and $pronoun thinks of little but sex,">>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($masterSuite > $masterSuiteSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun heads straight to $masterSuiteName.">>
					<<assignJob $slaves[$i] "serve in the master suite">>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun cheerfully designates _oself one of your fucktoys.">>
					<<assignJob $slaves[$i] "please you">>
				<</if>>
			<<elseif canSee($slaves[$i]) && canWalk($slaves[$i])>>
				<<set $slaves[$i].choosesOwnAssignmentText += " so $pronoun 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 $possessive own, so $pronoun designates _oself 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 $pronoun belongs at the bottom of the penthouse hierarchy, so $pronoun goes to live in $servantsQuartersName.">>
				<<assignJob $slaves[$i] "work as a servant">>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " thinks $pronoun belongs at the bottom of the penthouse hierarchy, so $pronoun decides $pronoun 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 $pronoun decides to work in $clubName.">>
				<<assignJob $slaves[$i] "serve in the club">>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " is self-confident, so $pronoun 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 $pronoun hurries down to $brothelName.">>
				<<assignJob $slaves[$i] "work in the brothel">>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " enjoys abuse, so $pronoun 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 $pronoun 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 $pronoun 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 $pronoun 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 $possessive pregnant.">>
					<<assignJob $slaves[$i] "serve in the master suite">>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to be your fucktoy, hoping that you'll get $possessive 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 $possessive 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 $possessive 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 $pronoun 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 $possessive 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 $possessive 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 $possessive 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 $pronoun 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 $object begin showing.">>
					<<assignJob $slaves[$i] "please you">>
				<</if>>
			<<else>>
				<<if ($universalRulesAssignsSelfFacility == 1) && ($brothel > $brothelSlaves)>>
					<<set $slaves[$i].choosesOwnAssignmentText += " can't indulge $possessive fetish by getting pregnant _oself, so $pronoun just heads down to $brothelName.">>
					<<assignJob $slaves[$i] "work in the brothel">>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " can't indulge $possessive fetish by getting pregnant _oself, so $pronoun 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 $possessive nipples.">>
					<<assignJob $slaves[$i] "work in the dairy">>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to get milked, since $pronoun 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 $pronoun can show off $possessive bare breasts.">>
					<<assignJob $slaves[$i] "serve in the club">>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to work as a public servant so $pronoun can show off $possessive 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 $pronoun 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 $pronoun 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 $pronoun 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 $pronoun 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 $pronoun sells $possessive body in the holy brothel.">>
				<<assignJob $slaves[$i] "work in the brothel">>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " is a pure and faithful slave, so $pronoun sells $possessive 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 $pronoun immediately joins your harem.">>
				<<assignJob $slaves[$i] "serve in the master suite">>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " is a devoted slave, so $pronoun 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 $pronoun decides $pronoun can best serve the state by raising money for the treasury, by selling $possessive body in $brothelName.">>
				<<assignJob $slaves[$i] "work in the brothel">>
			<<else>>
				<<set $slaves[$i].choosesOwnAssignmentText += " is a devoted slave, so $pronoun decides $pronoun can best serve the state by raising money for the treasury, by selling $possessive 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 $pronoun decides $pronoun 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 $pronoun decides $pronoun 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 _oself 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 $pronoun 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 $pronoun 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 $pronoun thinks _oself a better whore than a public slut.">>
					<<assignJob $slaves[$i] "work in the brothel">>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to whore, since $pronoun thinks _oself 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 $pronoun thinks _oself 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 $pronoun thinks _oself 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 $possessive sisters and work in $brothelName.">>
					<<assignJob $slaves[$i] "work in the brothel">>
				<<else>>
					<<set $slaves[$i].choosesOwnAssignmentText += " decides to prostitute _oself 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 $pronoun 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 */


code:
:: SA devotion [nobr]

<<if $slaves[$i].fetish == "mindbroken">>
	@@.red;Her mind is fundamentally broken, so her experiences have no lasting effect on her 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 her 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. She @@.hotpink;tries her best to adapt to her 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, she @@.hotpink;likes you more.@@
		<<set $slaves[$i].devotion += 5>>
		<<set $slaves[$i].trust += 5>>
	<<elseif $rivalryDuration > 20 and $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;she hates you for it.@@ Since you won't give her what she wants, she @@.gold;refuses to trust you.@@ Since you are putting such a personal touch into her care, she can't find it in her to rebel as strongly.
			<<set $slaves[$i].devotion -= 5>>
			<<set $slaves[$i].trust -= 5>>
		<<else>>
			You took everything from $slaves[$i].slaveName and @@.mediumorchid;she hates you for it.@@ Since you won't give her what she wants, she @@.gold;refuses to trust you at all.@@
			<<set $slaves[$i].devotion -= 25>>
			<<set $slaves[$i].trust -= 25>>
		<</if>>
	<<elseif $rivalryDuration > 10 and $slaves[$i].devotion < 5>>
		<<if Array.isArray($personalAttention) && $personalAttention.findIndex(function(s) { return s.ID == $slaves[$i].ID; }) != -1>>
			She is @@.gold;horrified by you.@@ Your rival taught her a great deal about slave life in your arcology and indulged her deepest fantasies. $slaves[$i].slaveName considers being your pet @@.mediumorchid;a fate worse than death.@@ Since you are putting such a personal touch into her care, maybe you aren't the monster she thought you were. She can't find it in her to hate and fear you as much.
			<<set $slaves[$i].devotion -= 3>>
			<<set $slaves[$i].trust -= 3>>
		<<else>>
			She is @@.gold;horrified by you.@@ Your rival taught her a great deal about slave life in your arcology and indulged her 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>>
	<<if $slaves[$i].devotion > 60>>
		<<if $PC.pregMood == 2>>
			She is devoted to you and does her best to satisfy your demanding, hormone driven libido, no matter what you want from her. Her efforts to give herself you to @@.hotpink;further her submission@@ to you.
			<<set $slaves[$i].devotion += 2>>
		<<elseif $PC.pregMood == 1>>
			She is devoted to you and tries her best to accommodate your needs and desires. Your hormonal mothering @@.mediumaquamarine;leaves her slightly more trusting@@ of you.
			<<set $slaves[$i].trust += 2>>
		<<else>>
			She is devoted to you and tries her best to accommodate your needs and desires.
		<</if>>
	<<else>>
		<<if $PC.pregMood == 2>>
			She is @@.gold;horrified@@ of your aggressive sexual advances, forcing her @@.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>>
			She happily @@.mediumorchid;takes advantage@@ of your hormone induced kindness, though your care @@.mediumaquamarine;builds her trust in you.@@
			<<set $slaves[$i].devotion -= 4>>
			<<set $slaves[$i].trust += 4>>
		<<else>>
			She takes note of your gravid form and @@.mediumorchid;begins testing just how much she can get away with@@ while she can.
			<<set $slaves[$i].devotion -= 3>>
		<</if>>
	<</if>>
<<elseif $PC.preg >= 16 && $PC.career == "escort">>
	<<if $slaves[$i].devotion > 60>>
		<<if $PC.pregMood == 2>>
			She is devoted to you and does her best to satisfy your demanding, hormonal driven libido, no matter what you want from her. Her efforts to give herself you to @@.hotpink;further her submission@@ to you.
			<<set $slaves[$i].devotion += 2>>
		<<elseif $PC.pregMood == 1>>
			She is devoted to you and tries her best to accommodate your needs and desires. Your hormonal mothering @@.mediumaquamarine;leaves her slightly more trusting@@ of you.
			<<set $slaves[$i].trust += 2>>
		<<else>>
			She is devoted to you and tries her best to accommodate your needs and desires.
		<</if>>
	<<else>>
		<<if $PC.pregMood == 2>>
			She is @@.gold;horrified@@ of your aggressive sexual advances, forcing her @@.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>>
			She happily @@.mediumorchid;takes advantage@@ of your hormone induced kindness, though your care @@.mediumaquamarine;builds her trust in you.@@
			<<set $slaves[$i].devotion -= 4>>
			<<set $slaves[$i].trust += 4>>
		<<else>>
			She takes note of your gravid form and @@.mediumorchid;begins testing just how much she can get away with@@ while she 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>>
	She got you pregnant<<if $slaves[$i].PCKnockedUp > 1>> more than once<</if>> and she knows it. This is a @@.mediumorchid;huge boost@@ to her ego and gives her a slight edge on you.
	<<set $slaves[$i].devotion -= _pregCountFactor>>
	<<if $slaves[$i].PCChildrenFathered > 0>>
		Even better; you gave birth to her child<<if $slaves[$i].PCChildrenFathered > 1>>ren<</if>>. To her, she is the dominant force and you are just a bitch to be bred. She could create a scandal if she started running her mouth, something she lords over you every chance she gets under the assumption that @@.mediumaquamarine;you'll try to appease her to keep her 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 her severely, and her @@.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 her @@.mediumorchid;regard for you is reduced@@ by this lack of respect.
		<<set $slaves[$i].devotion -= 2>>
	<</if>>
<</if>>

<<if $slaves[$i].intelligence != 0>>
<<if $slaves[$i].intelligence >= 3>>
	<<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 her personal attention you are able to compensate for her genius.
	<<else>>
		<<if $slaves[$i].trust < -20>>
			$slaves[$i].slaveName's @@.deepskyblue;brilliant mind@@ strongly resists slavery, but she fears you deeply enough that she consciously forces herself to obey out of self-preservation.
		<<else>>
			$slaves[$i].slaveName's @@.deepskyblue;brilliant mind@@ strongly @@.mediumorchid;resists@@ slavery and encourages her to @@.gold;fear you.@@
			<<set $slaves[$i].devotion -= 2>>
			<<set $slaves[$i].trust -= 2>>
		<</if>>
	<</if>>
<<elseif $slaves[$i].intelligence >= 2>>
	<<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 her personal attention you are able to compensate for her intelligence.
	<<else>>
		<<if $slaves[$i].trust < -20>>
			$slaves[$i].slaveName's @@.deepskyblue;highly acute mind@@ naturally resists slavery, but she fears you deeply enough that she consciously forces herself to obey out of self-preservation.
		<<else>>
			$slaves[$i].slaveName's @@.deepskyblue;highly acute mind@@ naturally @@.mediumorchid;resists@@ slavery and encourages her to @@.gold;fear you.@@
			<<set $slaves[$i].devotion -= 2>>
			<<set $slaves[$i].trust -= 2>>
		<</if>>
	<</if>>
<<elseif $slaves[$i].intelligence >= 1>>
	<<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 her personal attention you are able to compensate for her cleverness.
	<<else>>
		<<if $slaves[$i].trust < -20>>
			$slaves[$i].slaveName's @@.deepskyblue;intelligent mind@@ naturally resists slavery, but she fears you deeply enough that she consciously forces herself 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 <= -3>>
	$slaves[$i].slaveName's @@.orangered;moronic mind@@ naturally @@.hotpink;accepts@@ slavery, and she's imbecile enough to instinctively @@.mediumaquamarine;trust you@@ to know what's best for her.
	<<set $slaves[$i].devotion += 2, $slaves[$i].trust += 2>>
<<elseif $slaves[$i].intelligence <= -2>>
	$slaves[$i].slaveName's @@.orangered;idiotic mind@@ naturally @@.hotpink;accepts@@ slavery, and she'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 <= -1>>
	$slaves[$i].slaveName's @@.orangered;unintelligent mind@@ naturally @@.hotpink;accepts@@ slavery.
	<<set $slaves[$i].devotion += 1>>
<</if>>
<</if>>

<</if>>

<<if ($arcologies[0].FSPaternalistLaw == 1)>>
	The totally paternalistic society of your arcology encourages her to @@.mediumaquamarine;trust you.@@
	<<set $slaves[$i].trust += 1>>
<<elseif ($arcologies[0].FSPaternalist >= random(1,120))>>
	The paternalistic culture of your arcology encourages her 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 her to @@.mediumaquamarine;trust you.@@
	<<set $slaves[$i].trust += 1>>
<<elseif ($arcologies[0].FSChattelReligionist >= random(1,120))>>
	Your arcology's omnipresent religion encourages her 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 her with @@.gold;fear@@ for herself and her 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 her with @@.gold;worry@@ that you'll harm her or her 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 her.
		<<set $slaves[$i].devotion += $nicaeaPower>>
	<</if>>
<</if>>

/* INDENTURE MENTAL EFFECTS */

<<if ($slaves[$i].indenture > -1)>>
	<<if $slaves[$i].indenture <= 52>>
	She knows that it's less than a year until her indenture ends.
	<<if $slaves[$i].devotion > 95>>
		Since she loves you, she has mixed feelings about the prospect.
	<<elseif $slaves[$i].devotion >= -20>>
		The prospect of freedom @@.hotpink;encourages her to submit to your orders@@ and @@.mediumaquamarine;encourages her to be optimistic.@@
		<<set $slaves[$i].devotion += 2>>
		<<set $slaves[$i].trust += 2>>
	<<else>>
		The prospect of freedom encourages her to @@.mediumaquamarine;tolerate anything.@@
		<<set $slaves[$i].trust += 2>>
	<</if>>
	<<else>>
	The fact that she is an indentured servant, not a permanent slave, is never truly far from her mind.
	<<if $slaves[$i].devotion > 95>>
		Since she loves you, she has mixed feelings about eventual freedom.
	<<elseif $slaves[$i].devotion >= -20>>
		The prospect of eventual freedom @@.hotpink;cheers her up@@ and @@.mediumaquamarine;makes her 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 her.
		<<set $slaves[$i].trust += 1>>
	<</if>>
	<</if>>
	<<if $slaves[$i].devotion <= 20>>
	<<if $slaves[$i].indentureRestrictions >= 2>>
		She's also @@.mediumaquamarine;able to rely on the protection@@ of her indenture.
		<<set $slaves[$i].trust += 1>>
	<<elseif $slaves[$i].indentureRestrictions > 1>>
		She's also @@.mediumaquamarine;able to trust the restrictions@@ that her indenture places on her 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>>
	She knows that it's less than a year until her retirement from sexual slavery into citizenship.
	<<if $slaves[$i].devotion > 95>>
		Since she loves you, she has mixed feelings about the prospect, but she prefers to think of it as your way of looking after her. It's her favorite subject, and her 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.@@
			<<set $repGain += $FSSingleSlaveRep*2>>
		<</if>>
	<<elseif $slaves[$i].devotion >= -20>>
		The prospect of manumission @@.hotpink;encourages her to submit to slavery@@ and @@.mediumaquamarine;encourages her to be optimistic.@@
		<<set $slaves[$i].devotion += 2>>
		<<set $slaves[$i].trust += 2>>
	<<else>>
		The prospect of manumission encourages her to @@.mediumaquamarine;tolerate anything.@@
		<<set $slaves[$i].trust += 2>>
	<</if>>
	<<else>>
	Her retirement from sexual slavery into citizenship is on the horizon.
	<<if $slaves[$i].devotion > 95>>
		Since she loves you, she has mixed feelings about the prospect, but she prefers to think of it as your way of looking after her. This
		<<if $arcologies[0].FSPaternalist != "unset">>
			advances paternalistic ideals and @@.green;improves your reputation.@@
			<<FSChange "Paternalist" 2>>
		<<else>>
			@@.green;improves your reputation.@@
			<<set $repGain += $FSSingleSlaveRep>>
		<</if>>
	<<elseif $slaves[$i].devotion >= -20>>
		The prospect of manumission @@.hotpink;cheers her up@@ and @@.mediumaquamarine;makes her 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 her.
		<<set $slaves[$i].trust += 1>>
	<</if>>
	<</if>>
<<elseif ($BioreactorRetirement == 1)>>
	<<if $slaves[$i].actualAge >= $retirementAge-1>>
	She knows that it's less than a year until her permanent inclusion in the arcology's milk production systems.
	<<if $slaves[$i].devotion > 95>>
		Since she loves you, she desperately tries not to think about it, though she occasionally bursts into tears without provocation.
	<<elseif $slaves[$i].devotion > 20>>
		To put it mildly, @@.gold;she is terrified.@@
		<<set $slaves[$i].trust -= 3>>
	<<else>>
		She is filled with @@.gold;terror@@ and @@.mediumorchid;horror.@@
		<<set $slaves[$i].devotion -= 3>>
		<<set $slaves[$i].trust -= 3>>
	<</if>>
	<<else>>
	She knows that her permanent inclusion in the arcology's milk production systems is not far off.
	<<if $slaves[$i].devotion > 95>>
		Since she loves you, she tries not to think about it, though she occasionally seems preoccupied.
	<<elseif $slaves[$i].devotion > 20>>
		The prospect @@.gold;scares her.@@
		<<set $slaves[$i].trust -= 2>>
	<<else>>
		The prospect @@.gold;scares@@ and @@.mediumorchid;disgusts her.@@
		<<set $slaves[$i].devotion -= 2>>
		<<set $slaves[$i].trust -= 2>>
	<</if>>
	<</if>>
<<elseif ($ArcadeRetirement == 1)>>
	<<if $slaves[$i].actualAge >= $retirementAge-1>>
	She knows that it's less than a year until she is to be permanently encased in a bodysuit with holes for nothing but dick.
	<<if $slaves[$i].devotion > 95>>
		Since she loves you, she desperately tries not to think about it, though she occasionally bursts into tears without provocation.
	<<elseif $slaves[$i].devotion > 20>>
		To put it mildly, @@.gold;she is terrified.@@
		<<set $slaves[$i].trust -= 3>>
	<<else>>
		She is filled with @@.gold;terror@@ and @@.mediumorchid;horror.@@
		<<set $slaves[$i].devotion -= 3>>
		<<set $slaves[$i].trust -= 3>>
	<</if>>
	<<else>>
	She knows that her ultimate fate as a Fuckdoll is not far off.
	<<if $slaves[$i].devotion > 95>>
		Since she loves you, she tries not to think about it, though she occasionally seems preoccupied.
	<<elseif $slaves[$i].devotion > 20>>
		The prospect @@.gold;scares her.@@
		<<set $slaves[$i].trust -= 2>>
	<<else>>
		The prospect @@.gold;scares@@ and @@.mediumorchid;disgusts her.@@
		<<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>>
	She knows that it's less than a year until her retirement from sexual slavery into citizenship.
	<<if $slaves[$i].devotion > 95>>
		Since she loves you, she has mixed feelings about the prospect, but she prefers to think of it as your way of looking after her. It's her favorite subject, and her 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.@@
			<<set $repGain += $FSSingleSlaveRep*2>>
		<</if>>
	<<elseif $slaves[$i].devotion >= -20>>
		The prospect of manumission @@.hotpink;encourages her to submit to slavery@@ and @@.mediumaquamarine;encourages her to be optimistic.@@
		<<set $slaves[$i].devotion += 2>>
		<<set $slaves[$i].trust += 2>>
	<<else>>
		The prospect of manumission encourages her to @@.mediumaquamarine;tolerate anything.@@
		<<set $slaves[$i].trust += 2>>
	<</if>>
	<<else>>
	Her retirement from sexual slavery into citizenship is on the horizon.
	<<if $slaves[$i].devotion > 95>>
		Since she loves you, she has mixed feelings about the prospect, but she prefers to think of it as your way of looking after her. This
		<<if $arcologies[0].FSPaternalist != "unset">>
			advances paternalistic ideals and @@.green;improves your reputation.@@
			<<FSChange "Paternalist" 2>>
		<<else>>
			@@.green;improves your reputation.@@
			<<set $repGain += $FSSingleSlaveRep>>
		<</if>>
	<<elseif $slaves[$i].devotion >= -20>>
		The prospect of manumission @@.hotpink;cheers her up@@ and @@.mediumaquamarine;makes her 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 her.
		<<set $slaves[$i].trust += 1>>
	<</if>>
	<</if>>
<<elseif ($BioreactorRetirement == 1)>>
	<<if $slaves[$i].physicalAge >= $retirementAge-1>>
	She knows that it's less than a year until her permanent inclusion in the arcology's milk production systems.
	<<if $slaves[$i].devotion > 95>>
		Since she loves you, she desperately tries not to think about it, though she occasionally bursts into tears without provocation.
	<<elseif $slaves[$i].devotion > 20>>
		To put it mildly, @@.gold;she is terrified.@@
		<<set $slaves[$i].trust -= 3>>
	<<else>>
		She is filled with @@.gold;terror@@ and @@.mediumorchid;horror.@@
		<<set $slaves[$i].devotion -= 3>>
		<<set $slaves[$i].trust -= 3>>
	<</if>>
	<<else>>
	She knows that her permanent inclusion in the arcology's milk production systems is not far off.
	<<if $slaves[$i].devotion > 95>>
		Since she loves you, she tries not to think about it, though she occasionally seems preoccupied.
	<<elseif $slaves[$i].devotion > 20>>
		The prospect @@.gold;scares her.@@
		<<set $slaves[$i].trust -= 2>>
	<<else>>
		The prospect @@.gold;scares@@ and @@.mediumorchid;disgusts her.@@
		<<set $slaves[$i].devotion -= 2>>
		<<set $slaves[$i].trust -= 2>>
	<</if>>
	<</if>>
<<elseif ($ArcadeRetirement == 1)>>
	<<if $slaves[$i].physicalAge >= $retirementAge-1>>
	She knows that it's less than a year until she is to be permanently encased in a bodysuit with holes for nothing but dick.
	<<if $slaves[$i].devotion > 95>>
		Since she loves you, she desperately tries not to think about it, though she occasionally bursts into tears without provocation.
	<<elseif $slaves[$i].devotion > 20>>
		To put it mildly, @@.gold;she is terrified.@@
		<<set $slaves[$i].trust -= 3>>
	<<else>>
		She is filled with @@.gold;terror@@ and @@.mediumorchid;horror.@@
		<<set $slaves[$i].devotion -= 3>>
		<<set $slaves[$i].trust -= 3>>
	<</if>>
	<<else>>
	She knows that her ultimate fate as a Fuckdoll is not far off.
	<<if $slaves[$i].devotion > 95>>
		Since she loves you, she tries not to think about it, though she occasionally seems preoccupied.
	<<elseif $slaves[$i].devotion > 20>>
		The prospect @@.gold;scares her.@@
		<<set $slaves[$i].trust -= 2>>
	<<else>>
		The prospect @@.gold;scares@@ and @@.mediumorchid;disgusts her.@@
		<<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>>
		She's @@.hotpink;more obedient@@ and @@.mediumaquamarine;more tolerant,@@
		<<set $slaves[$i].devotion += 1>>
		<<set $slaves[$i].trust += 1>>
	<<else>>
		She does her best to @@.mediumaquamarine;stay strong,@@
		<<set $slaves[$i].trust += 1>>
	<</if>>
	since she knows that her 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>>
		She's @@.hotpink;more obedient@@ and @@.mediumaquamarine;more tolerant,@@
		<<set $slaves[$i].devotion += 1>>
		<<set $slaves[$i].trust += 1>>
	<<else>>
		She does her best to @@.mediumaquamarine;stay strong,@@
		<<set $slaves[$i].trust += 1>>
	<</if>>
	since she knows she will be free if her udders can gush just a bit more cream.
	<</if>>
<</if>>
<<if $BirthsMilestoneRetirement == 1>>
	<<if $slaves[$i].births >= $retirementBirths*0.6>>
	<<if $slaves[$i].devotion >= -20>>
		She's @@.hotpink;more obedient@@ and @@.mediumaquamarine;more tolerant,@@
		<<set $slaves[$i].devotion += 1>>
		<<set $slaves[$i].trust += 1>>
	<<else>>
		She does her best to @@.mediumaquamarine;stay strong,@@
		<<set $slaves[$i].trust += 1>>
	<</if>>
	since she knows she 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>>
		She's @@.hotpink;more obedient@@ and @@.mediumaquamarine;more tolerant,@@
		<<set $slaves[$i].devotion += 1>>
		<<set $slaves[$i].trust += 1>>
	<<else>>
		She does her best to @@.mediumaquamarine;stay strong,@@
		<<set $slaves[$i].trust += 1>>
	<</if>>
	since she knows just a bit more murder in the pit will win her freedom.
	<</if>>
<</if>>
<</if>>
<</if>>

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

<<if $slaves[$i].assignmentVisible == 1>>
<<if $personalAttention == "sex">>
<<if $freeSexualEnergy > 0>>
	<<if $freeSexualEnergy == 3>>
		She 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 her love for you<<else>>forces her to get used to sex slavery<</if>>.@@
	<<elseif $freeSexualEnergy == 2>>
		She 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 her closeness to you<<else>>gets her used to being your sex slave<</if>>.@@
	<<else>>
		She receives occasional sexual attention from you, since you barely have enough dedicated fucktoys to sate your libido, @@.hotpink;<<if $slaves[$i].devotion > 50>>making her feel closer to you<<else>>keeping her aware she'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 isPlayerFertile($PC) && ($slaves[$i].ballType == "human") && ($slaves[$i].vasectomy != 1)>>
			<<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 she's ambivalent and fearful, the @@.hotpink;collective devotion@@ @@.mediumaquamarine;and trust@@ of your slaves affect her slightly.
	<<elseif _collectiveTrustEffect == 0>>
		Since she's ambivalent about you, the @@.hotpink;collective devotion@@ your slaves feel for you affects her slightly.
	<<else>>
		Since she's ambivalent about you, the @@.hotpink;collective devotion@@ your slaves feel for you affects her slightly, but their @@.gold;general fear@@ affects her too.
	<</if>>
<<elseif _collectiveDevotionEffect == 0>>
	<<if _collectiveTrustEffect == 1>>
		Since she's fearful of you, the @@.mediumaquamarine;collective trust@@ your slaves place in you affects her slightly.
	<<elseif _collectiveTrustEffect == -1>>
		Since she doesn't trust you, the @@.gold;collective fear@@ your slaves feel for you affects her slightly.
	<</if>>
<<else>>
	<<if _collectiveTrustEffect == 1>>
		The @@.mediumorchid;collective anger@@ your slaves feel reinforces her own feelings, but their @@.mediumaquamarine;collective trust@@ also affects her slightly.
	<<elseif _collectiveTrustEffect == 0>>
		The @@.mediumorchid;collective anger@@ your slaves feel reinforces her own feelings.
	<<else>>
		The @@.mediumorchid;collective anger@@ @@.gold;and fear@@ your slaves feel reinforce her own feelings.
	<</if>>
<</if>>
<</if>>

<<if $slaves[$i].assignmentVisible == 1>>
<<if ($arcade != 0) || (($dairy != 0) && ($dairyRestraintsSetting >= 2))>>
	<<if $slaves[$i].devotion <= 95>>
		She knows about <<if $arcade != 0>>$arcadeName<<if ($dairy != 0) && ($dairyRestraintsSetting >= 2)>> and $dairyName<</if>><<else>>$dairyName<</if>>, and @@.gold;fears@@ that you might send her there.
		<<set $slaves[$i].trust -= 1>>
	<<else>>
		She knows some of your other slaves meet terrible, industrial fates, but she loves you so much that she 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 she finds herself @@.mediumaquamarine;fearing you a little less.@@
		<<set $slaves[$i].trust += 1>>
	<<elseif $slaves[$i].trust <= 50>>
		$slaves[$i].slaveName loves you, so she finds herself @@.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 she finds herself @@.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 her disobedience.@@
		<<set $slaves[$i].trust += 5>>
	<<else>>
		$slaves[$i].slaveName hates you, so she finds herself @@.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 she finds it easy to @@.mediumorchid;express her hatred of you.@@
		<<set $slaves[$i].devotion -= 10>>
	<<elseif $slaves[$i].devotion <= 20>>
		$slaves[$i].slaveName trusts you implicitly, so she finds herself @@.hotpink;hating you a little less.@@
		<<set $slaves[$i].devotion += 1>>
	<<elseif $slaves[$i].devotion <= 50>>
		$slaves[$i].slaveName trusts you implicitly, so she finds herself @@.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 her to @@.mediumorchid;defy you.@@
		<<set $slaves[$i].devotion -= 5>>
	<<elseif $slaves[$i].devotion <= 20>>
		$slaves[$i].slaveName trusts you, so she finds herself @@.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 she 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 she 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 her owner.
	<</if>>
<</if>>

<<if ($slaves[$i].sexualQuirk == "unflinching")>>
	<<if ($slaves[$i].devotion <= 95)>>
	<<if ($slaves[$i].devotion < $slaves[$i].oldDevotion)>>
	Her unflinching nature leads her to forget some of the unpleasant things she's experienced this week, @@.hotpink;reducing their impact on her 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 her mind for total subservience to her owner; she can not resist her progress.
<<elseif $slaves[$i].tankBaby == 2>>
	The incubation facility conditioned her mind for total reverence of her owner; she can not resist her progress.
<<elseif $slaves[$i].devotion >= -20>>
	<<if $slaves[$i].devotion >= ($slaves[$i].oldDevotion+5)>>
		<<if $slaves[$i].tankBaby == 1>>
			The incubation facility conditioned her mind for total subservience to her owner; she can not resist her progress.
		<<elseif $arcologies[0].FSChattelReligionist >= random(1,100)>>
			The natural resilience of her mind is overcome by the omnipresent combination of faith and servitude in $arcologies[0].name, and she does not resist her progress down the path towards total subservience.
		<<elseif Array.isArray($personalAttention) && $personalAttention.findIndex(function(s) { return s.ID == $slaves[$i].ID; }) != -1>>
			She gained so much regard for you this week that her natural reaction is to rebound a little, but since you're giving her personal attention, your charismatic presence prevents this.
		<<elseif $slaves[$i].devotion < 95>>
			So many things served to drive her into subservience this week that her 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 her mind for total subservience to her owner; she can not resist her progress.
	<<elseif $slaves[$i].behavioralFlaw == "arrogant">>
		Though she made progress this week, @@.mediumorchid;it is limited by her arrogance.@@
		<<set $slaves[$i].devotion = ($slaves[$i].oldDevotion+5)>>
	<<elseif ($slaves[$i].behavioralFlaw == "bitchy") && canTalk($slaves[$i])>>
		Though she made progress this week, @@.mediumorchid;it is limited by the independence she regains by making snide comments.@@
		<<set $slaves[$i].devotion = ($slaves[$i].oldDevotion+5)>>
	<<elseif $slaves[$i].behavioralFlaw == "devout">>
		Though she made progress this week, @@.mediumorchid;it is limited by the independence she regains through reliance on her faith.@@
		<<set $slaves[$i].devotion = ($slaves[$i].oldDevotion+5)>>
	<<elseif $slaves[$i].behavioralFlaw == "liberated">>
		Though she made progress this week, @@.mediumorchid;it is limited by the independence she retains due to her 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 she has are overcome by her conditioning in the incubation facilty; she can not resist trusting her owner.
		<<elseif $arcologies[0].FSChattelReligionist >= random(1,100)>>
			Any natural doubts she harbors are overcome by her belief in Chattel Religionism, and she does not resist her progress down the path towards total trust in you.
		<<elseif Array.isArray($personalAttention) && $personalAttention.findIndex(function(s) { return s.ID == $slaves[$i].ID; }) != -1>>
			She gained so much trust in you this week that her natural reaction is to doubt herself, but since you're giving her personal attention, she decides to trust her understanding of your will.
		<<elseif $slaves[$i].trust < 95>>
			She gained so much trust in you this week that she @@.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 she has are overcome by her conditioning in the incubation facility; she can not resist trusting her owner.
	<<elseif ($slaves[$i].behavioralFlaw == "odd") && ($slaves[$i].collar != "shock punishment")>>
		Though she made progress this week, @@.gold;it is limited by her preoccupation with her 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)>>
	Her perfect devotion and trust @@.green;improve your reputation.@@
	<<set $repGain += 10*($slaves[$i].devotion-100)>>
	<<set $slaves[$i].devotion = 100>>
	<<set $repGain += 10*($slaves[$i].trust-100)>>
	<<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>>
			Her extreme devotion @@.green;improved your reputation.@@
			<<set $repGain += 10*($slaves[$i].devotion-100)>>
		<</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].energy <= 50>>
			<<set $energyPlus += Math.trunc($slaves[$i].trust-100)>>
		<<else>>
			Her extreme trust @@.green;improved your reputation.@@
			<<set $repGain += 10*($slaves[$i].trust-100)>>
		<</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)>>
	Her confidence in her sexuality @@.green;improved her low sex drive.@@
	<<set $slaves[$i].energy += $energyPlus>>
<</if>>

<<if ($slaves[$i].devotion > 95)>>
	$slaves[$i].slaveName's @@.magenta;worshipfulness is beyond improvement,@@ and her
<<elseif ($slaves[$i].devotion > 50) && ($slaves[$i].devotion > $slaves[$i].oldDevotion)>>
	$slaves[$i].slaveName's @@.hotpink;devotion increased@@ and her
<<elseif ($slaves[$i].devotion > 50) && ($slaves[$i].devotion == $slaves[$i].oldDevotion)>>
	$slaves[$i].slaveName's @@.yellow;devotion did not change@@ and her
<<elseif ($slaves[$i].devotion > 50)>>
	$slaves[$i].slaveName's @@.mediumorchid;devotion dropped@@ and her
<<elseif ($slaves[$i].devotion >= -20) && ($slaves[$i].devotion > $slaves[$i].oldDevotion)>>
	$slaves[$i].slaveName's @@.hotpink;regard for you increased@@ and her
<<elseif ($slaves[$i].devotion >= -20) && ($slaves[$i].devotion == $slaves[$i].oldDevotion)>>
	$slaves[$i].slaveName's @@.yellow;regard for you did not change@@ and her
<<elseif ($slaves[$i].devotion >= -20)>>
	$slaves[$i].slaveName's @@.mediumorchid;regard for you dropped@@ and her
<<elseif ($slaves[$i].devotion > $slaves[$i].oldDevotion)>>
	$slaves[$i].slaveName's @@.hotpink;resistance dropped@@ and her
<<elseif ($slaves[$i].devotion == $slaves[$i].oldDevotion)>>
	$slaves[$i].slaveName's @@.yellow;resistance did not change@@ and her
<<else>>
	$slaves[$i].slaveName's @@.mediumorchid;resistance increased@@ and her
<</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;She has gone from accepting her position to being devoted to you!@@
	<<set $slaves[$i].devotion += 1>>
<<elseif ($slaves[$i].devotion > 20) && ($slaves[$i].oldDevotion <= 20)>>
	@@.green;She has gone from being ambivalent toward you to accepting your ownership of her!@@
	<<set $slaves[$i].devotion += 1>>
<<elseif ($slaves[$i].devotion >= -20) && ($slaves[$i].oldDevotion < -20)>>
	@@.green;She 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;She 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;She 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;She 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;She 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;She 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;She 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;She 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;She 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;She 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;She 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 */

It is confined in a suit that limits its perception of the outside world to tonal commands from the suit itself and things that are inserted into its mouth<<if $activeSlave.vagina > -1>>, vagina,<</if>> and anus.
<<if $slaves[$i].sexualFlaw == "self hating">>
	Its self hatred @@.gold;cannot eliminate the growing fear@@ engendered by its remaining spark of self-preservation.
	<<set $slaves[$i].trust -= 5>>
<<elseif $slaves[$i].trust > 50>>
	It still hopes you'll let it out of its suit so it 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 it's about to be used<<else>>desperately hope it'll be used soon<</if>>, it 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">>
	It knows to its core that it deserves this, @@.mediumorchid;slowing but not stopping its descent into depression.@@
	<<set $slaves[$i].devotion += 5>>
<<elseif $slaves[$i].devotion > 50>>
	It spirals through @@.mediumorchid;obsessive depression,@@ wondering what it did to deserve this fate.
<<else>>
	In the silence and darkness between the times it's used, it has little to do but @@.mediumorchid;hate you.@@
<</if>>
<<set $slaves[$i].devotion -= 10>>

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

license: mit