code:
:: Brothel Assignment Scene [nobr]

<<set $nextButton = "Continue", $nextLink = $returnTo>>
<<run Enunciate($activeSlave)>>
<<setLocalPronouns $activeSlave>>

You could direct $assistantName to relay your orders to $activeSlave.slaveName, but you've decided to avoid relying too much on machine assistance. So, $he is merely directed to report to your office. The
<<if $activeSlave.devotion > 95>>
	worshipful $girl <<if $activeSlave.amp != 1>>hurries in as soon as $he possibly can<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, happy $his beloved <<= WrittenMaster($activeSlave)>> is taking an interest in $him.
<<elseif $activeSlave.devotion > 50>>
	devoted $girl <<if $activeSlave.amp != 1>>hurries in promptly<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, eager to do whatever you demand of $him.
<<elseif $activeSlave.devotion > 20>>
	$girl, broken to your will, <<if $activeSlave.amp != 1>>comes in promptly<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, clearly ready to follow orders.
<<elseif ($activeSlave.trust < -20) && ($activeSlave.devotion > -10)>>
	fearful slave <<if $activeSlave.amp != 1>>comes in promptly<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, afraid of what will happen to $him if $he doesn't.
<<elseif ($activeSlave.trust < -50)>>
	terrified slave <<if $activeSlave.amp != 1>>comes in hurriedly<<else>>comes in as soon as $he can get another slave to carry $him in<</if>>, almost paralyzed by terror of what will happen to $him if $he doesn't.
<<else>>
	rebellious slave <<if $activeSlave.amp != 1>>comes in slowly, having decided that $he can always decide to resist once $he hears what you want<<else>>comes in as soon as you order another slave to carry $him in, since $he can't exactly resist this without limbs<</if>>.
<</if>>
You tell $him $he's to report to <<if $Madam != 0>>$Madam.slaveName immediately, to serve in $brothelName<<else>>$brothelName immediately, to serve there<</if>> until further notice.

<<if $activeSlave.devotion > 50>>

	<<if ($activeSlave.fetishKnown == 1) && ($activeSlave.fetishStrength > 60) && ($activeSlave.fetish != "none")>>
		$He looks excited.
		<<if canTalk($activeSlave)>>
			"<<Master>>, I hoped you would <<s>>end me down there <<s>>ometime!
			<<switch $activeSlave.fetish>>
			<<case "submissive">>
				I mean, I'll have to do whatever the cu<<s>>tomer<<s>> pay for, right?" $His eyes go a little unfocused. "And, they'll hold me down..." $He trails off.
			<<case "masochist">>
				I mean, it'<<s>> hard being a brothel whore, right? And when I get tired or <<s>>ore, I'll <<s>>till be <<s>>old. Even when it hurt<<s>> me to fuck any more." $His eyes glow with an unhealthy light.
			<<case "cumslut">>
				I mean," $he licks $his lips unconsciously,
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					"I hear there are <<s>>ome ni<<c>>e ladie<<s>> that go there for lunchtime cunnilingu<<s>>."
				<<else>>
					"the blowjob<<s>>. Ju<<s>>t, the blowjob<<s>>. That'<<s>> all."
				<</if>>
			<<case "humiliation">>
				There'<<s>> a window that fa<<c>>e<<s>> the hallway there, right? <<if $Madam != 0>>Do you think $Madam.slaveName would let me<<else>>Could I<</if>> get fucked there? Where everyone could <<s>>ee me being fucked for money?"
			<<case "buttslut">>
				I mean," and $he shifts $his weight, $his mind obviously on $his backdoor,
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					"there have to be ladie<<s>> who want to buttfuck a whore, right? At lea<<s>>t, I really hope there are."
				<<else>>
					"the other girl<<s>> tell me that whore<<s>> there get fucked up the a<<ss>> all day and all night. <<S>>ounds like fun to me."
				<</if>>
			<<case "boobs">>
				I mean," and $he sticks out $his chest a little,
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					"I hear from the other girl<<s>> there'<<s>> thi<<s>> ni<<c>>e lady who goe<<s>> there every morning and pay<<s>> to have a whore <<s>>uck her nipple<<s>> for, like, an hour. I," $he licks $his lips, "could do that."
				<<else>>
					"the other girl<<s>> tell me that whore<<s>> there get tittyfucked all the time. <<s>>ound<<s>> like fun to me."
				<</if>>
			<<case "pregnancy">>
				I mean," $he says meditatively,
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					"I hear from the other girl<<s>> there'<<s>> thi<<s>> pregnant lady who goe<<s>> there every night and pay<<s>> to have a whore cuddle her. Ju<<s>>t cuddle, all night. That would be kind of hard, ju<<s>>t cuddling, but I could do it."
				<<elseif $activeSlave.vagina == -1>>
					"<<s>>ince it'<<s>> all bareback, I'm going to have a fuckton of cum in me. I wonder how much cum it take<<s>> to get a butthole pregnant? I'm gonna try, anyway."
				<<elseif isFertile($activeSlave)>>
					"<<s>>ince it'<<s>> all bareback, I'm going to have a fuckton of cum in me. I wonder how much cum it would take to get my poor womb pregnant?"
				<<elseif $activeSlave.pregKnown == 1>>
					"I'm going to be a pregnant whore. That'<<s>> pretty fucking <<s>>e<<x>>y."
				<<elseif $activeSlave.preg > 0>>
					"<<s>>ince it'<<s>> all bareback, I'm going to have a fuckton of cum in me. I wonder how much cum it would take to get my poor womb pregnant?"
				<<elseif $activeSlave.ovaries == 1 && $activeSlave.pubertyXX == 0>>
					"I can't wait till I can get pregnant. That'd be pretty fucking <<s>>e<<x>>y."
				<<else>>
					"I hear from the other girl<<s>> there'<<s>> thi<<s>> pregnant lady who goe<<s>> there every night and pay<<s>> to have a whore cuddle her. Ju<<s>>t cuddle, all night. That would be kind of hard, ju<<s>>t cuddling, but I could do it."
				<</if>>
			<<case "dom">>
				I heard from the other girl<<s>> that <<s>>ome <<c>>iti<<z>>en<<s>> bring their girl<<s>> there. Ju<<s>>t to make them take it from a whore."
			<<case "sadist">>
				I heard from the other girl<<s>> that <<s>>ome <<c>>iti<<z>>en<<s>> bring their girl<<s>> there. Becau<<s>>e nobody know<<s>> how to hurt a bitch like a whore doe<<s>>." $He shivers.
			<</switch>>
		<<else>>
			<<switch $activeSlave.fetish>>
			<<case "submissive">>
				$He gestures that $he'll be at the mercy of $his customers. $His eyes go a little unfocused as $he clearly begins to fantasize.
			<<case "masochist">>
				$He gestures that $he'll probably get roughed up by some of $his customers and that there will be no breaks for $his sore holes. $His eyes glow with an unhealthy light as $he clearly begins to fantasize.
			<<case "cumslut">>
				$He licks $his lips unconsciously and motions
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					tounging a clit.
				<<else>>
					sucking cock.
				<</if>>
			<<case "humiliation">>
				$He gestures if $he could be fucked in public there.
			<<case "buttslut">>
				$He shifts $his weight, $his mind obviously on $his backdoor, and gestures
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					if any girls would want to buttfuck $him.
				<<else>>
					that $he knows whores take it up the ass there and can't wait to join them.
				<</if>>
			<<case "boobs">>
				$He sticks out $his chest a little and gestures
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					that $he's heard a women comes by each day just to have her nipples sucked. $He licks $his lips, clearly savoring the thought.
				<<else>>
					that $he knows tittyfucking is popular there and can't wait to give $his pair up for sale.
				<</if>>
			<<case "pregnancy">>
				$He gestures
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					that $he's heard that a pregnant women has been coming every night to pay for a whore to cuddle her. $He asks if $he could be that $girl.
				<<elseif $activeSlave.vagina == -1>>
					how much $he wishes $he could get pregnant from all the cum loads $he's going to get shot up $his rear.
				<<elseif isFertile($activeSlave)>>
					that $he knows all the sex is bareback. By the look in $his eyes, you can tell $he is wondering how long it will take for some guys seed to take root in $him.
				<<elseif $activeSlave.pregKnown == 1>>
					how sexy $he thinks pregnant whores are.
				<<elseif $activeSlave.preg > 0>>
					that $he knows all the sex is bareback. By the look in $his eyes, you can tell $he is wondering how long it will take for some guys seed to take root in $him.
				<<elseif $activeSlave.ovaries == 1 && $activeSlave.pubertyXX == 0>>
					how excited $he is for the day $he starts $his menstrual cycle. Will $he even see $his first period, or will every egg $he makes get fertilized?
				<<else>>
					that $he's heard a pregnant women has been coming every night to pay for a whore to cuddle her. $He hopes that one day $he'll be chosen.
				<</if>>
			<<case "dom">>
				$He gestures that $he knows citizens sometimes bring their toys there just to let them get pushed around by a whore. $He'd like that to be true. A lot.
			<<case "sadist">>
				$He gestures that $he knows citizens sometimes bring their toys there for punishment. $He shivers with anticipation.
			<</switch>>
		<</if>>
	<<else>>
		$He looks
		<<if canTalk($activeSlave)>>
			determined. "<<Master>>, I will do my be<<s>>t to be a good whore, and get lot<<s>> of <<c>>iti<<z>>en<<s>> to pay good money for my body."
		<<else>>
			determined and gestures that $he'll do $his best to get lots of citizens to pay to use $him.
		<</if>>
	<</if>>

<<elseif ($activeSlave.devotion > 20) || (($activeSlave.devotion >= -20) && ($activeSlave.trust < -20) && ($activeSlave.trust >= -50))>>
	<<if canTalk($activeSlave)>>
		<<if ($activeSlave.fetishKnown == 1) && ($activeSlave.fetishStrength > 60) && ($activeSlave.fetish != "none")>>
			$He looks cautiously excited. "<<Master>>,
			<<switch $activeSlave.fetish>>
			<<case "submissive">>
				I'll have to do whatever the cu<<s>>tomer<<s>> pay for, right?" $His eyes go a little unfocused. "And, they'll hold me down..." $He trails off.
			<<case "masochist">>
				it'<<s>> hard being a brothel whore, right? And when I get tired or <<s>>ore, I'll <<s>>till be <<s>>old. Even when it hurt<<s>> me to fuck any more." $His eyes glow with an unhealthy light.
			<<case "cumslut">>
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					"I hear there are <<s>>ome ni<<c>>e ladie<<s>> that go there for lunchtime cunnilingu<<s>>."
				<<else>>
					"the blowjob<<s>>. Ju<<s>>t, the blowjob<<s>>. That'<<s>> all."
				<</if>>
			<<case "humiliation">>
				there'<<s>> a window that fa<<c>>e<<s>> the hallway there, right? <<if $Madam != 0>>Do you think $Madam.slaveName would let me<<else>>Could I<</if>> get fucked there? Where everyone could <<s>>ee me being fucked for money?"
			<<case "buttslut">>

				uh," and $he shifts $his weight, $his mind obviously on $his backdoor,
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					"there have to be ladie<<s>> who want to buttfuck a whore, right? At lea<<s>>t, I really hope there are."
				<<else>>
					"the other girl<<s>> tell me that whore<<s>> there get fucked up the a<<ss>> all day and all night. <<s>>ounds like fun to me."
				<</if>>
			<<case "boobs">>
				$He sticks out $his chest a little and gestures
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					that $he's heard a women comes by each day just to have her nipples sucked. $He licks $his lips, clearly savoring the thought.
				<<else>>
					that $he knows tittyfucking is popular there and can't wait to give $his pair up for sale.
				<</if>>
			<<case "pregnancy">>
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					I hear from the other girl<<s>> there'<<s>> thi<<s>> pregnant lady who goe<<s>> there every night and pay<<s>> to have a whore cuddle her. Ju<<s>>t cuddle, all night. That would be kind of hard, ju<<s>>t cuddling, but I could do it."
				<<elseif $activeSlave.vagina == -1>>
					<<s>>ince it'<<s>> all bareback, I'm going to have a fuckton of cum in me. I wonder how much cum it take<<s>> to get a butthole pregnant? I'm gonna try, anyway."
				<<elseif isFertile($activeSlave)>>
					<<s>>ince it'<<s>> all bareback, I'm going to have a fuckton of cum in me. I wonder how much cum it would take to get my poor womb pregnant?"
				<<elseif $activeSlave.pregKnown == 1>>
					"I'm going to be a pregnant whore. That'<<s>> pretty fucking <<s>>e<<x>>y."
				<<elseif $activeSlave.preg > 0>>
					"<<s>>ince it'<<s>> all bareback, I'm going to have a fuckton of cum in me. I wonder how much cum it would take to get my poor womb pregnant?"
				<<elseif $activeSlave.ovaries == 1 && $activeSlave.pubertyXX == 0>>
					"I can't wait till I can get pregnant. That'd be pretty fucking <<s>>e<<x>>y."
				<<else>>
					"I hear from the other girl<<s>> there'<<s>> thi<<s>> pregnant lady who goe<<s>> there every night and pay<<s>> to have a whore cuddle her. Ju<<s>>t cuddle, all night. That would be kind of hard, ju<<s>>t cuddling, but I could do it."
				<</if>>
			<<case "dom">>
				I heard from the other girl<<s>> that <<s>>ome <<c>>iti<<z>>en<<s>> bring their girl<<s>> there. Ju<<s>>t to make them take it from a whore."
			<<case "sadist">>
				I heard from the other girl<<s>> that <<s>>ome <<c>>iti<<z>>en<<s>> bring their girl<<s>> there. Becau<<s>>e nobody know<<s>> how to hurt a bitch like a whore doe<<s>>." $He shivers.
			<</switch>>
		<<elseif $activeSlave.sexualFlaw != "none">>
			"Ye<<s>>, <<Master>>," $he says obediently. $He hesitates, looking concerned.
			<<switch $activeSlave.sexualFlaw>>
			<<case "hates oral">>
				"I - I'm going to h-have to <<s>>uck a lot of dick there, aren't I." $He swallows nervously. $His lower lip quivers, and $he does $his best not to cry in front of you.
			<<case "hates anal">>
				"C-cu<<s>>tomer<<s>> are really going to ream me up the butt hole, aren't they." $He <<if $activeSlave.amp == 1>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without limbs.<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hands.<</if>> $His lower lip quivers, and $he does $his best not to cry in front of you.
			<<case "hates penetration">>
				"C-cu<<s>>tomer<<s>> are really going to fuck me <<s>>ore, aren't they." $He <<if $activeSlave.amp == 1>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without limbs.<<elseif $activeSlave.vagina > 0>>unconsciously lets $his hands fall to $his crotch, but catches $himself and doesn't quite shield $his pussy.<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hands.<</if>> $His lower lip quivers, and $he does $his best not to cry in front of you.
			<<case "repressed">>
				"Being a whore i<<s>> a <<s>>in," $he <<say>>s quietly, half to $himself. "I'm going t-to b-be <<s>>o dirty. I'm going to h-hell." $He starts to cry quietly. "<<S>>-<<s>>orry, <<Master>>. I'll do my be<<s>>t."
			<<case "idealistic">>
				"I'm going to be <<s>>old for <<s>>e<<x>>," $he <<say>>s quietly, half to $himself. "Men are going to pay, and then they're g-going to <<s>>tick their dick<<s>> in me, and then they're going to leave." $He starts to cry quietly. "<<S>>-<<s>>orry, <<Master>>. I'll do my be<<s>>t."
			<<case "shamefast">>
				"I'm going to be meat in a brothel," $he <<say>>s quietly, half to $himself. "I'm going to <<s>>tand there naked with the other girl<<s>>, and men will pick me and then u<<s>>e my body. Over and over." $He starts to cry quietly. "<<S>>-<<s>>orry, <<Master>>. I'll do my be<<s>>t."
			<<case "apathetic">>
				"I gue<<ss>> I'll lie there," $he sighs quietly, half to $himself. "A man will pay and then he'll come in to my room where I'm lying on the bed, and he'll <<s>>tick his cock in me and cum and leave. And then the next man will come in." $He starts to cry quietly. "<<S>>-<<s>>orry, <<Master>>. I'll do my be<<s>>t."
			<<case "crude">>
				"Okay," $he <<say>>s, thinking. "My poor cornhole i<<s>> going to be <<s>>uch a <<s>>eminal <<s>>ewer." $He looks doubtful. "<<Sh>>ould I not have <<s>>aid that, <<Master>>?"
			<<case "judgemental">>
				"Gro<<ss>>," $he <<say>>s curtly. "Well, no more hand<<s>>ome boy<<s>> for me, then. Fat pathetic guy<<s>> who patroni<<z>>e whore<<s>>, all the way down. Fuck."
			<</switch>>
		<<else>>
			$He tries to be brave. "<<Master>>, I will do my be<<s>>t to be a good whore." Then, half to $himself, $he adds in a small voice, "I can do thi<<s>>."
		<</if>>
	<<else>>
		<<if ($activeSlave.fetishKnown == 1) && ($activeSlave.fetishStrength > 60) && ($activeSlave.fetish != "none")>>
			$He looks cautiously excited.
			<<switch $activeSlave.fetish>>
			<<case "submissive">>
				$His eyes go a little unfocused before $he snaps back to attention and gestures that $he'll have to do whatever they want. $His attention wavers once more.
			<<case "masochist">>
				$He gestures if brothel whores get breaks when they get sore. Before you can tell $him no, $his eyes glow with an unhealthy light and $he expresses that $he'd like it more if it hurt.
			<<case "cumslut">>
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					$He gestures that $he heard a rumor that some ladies swing by during lunchtime for a quick eating out.
				<<else>>
					As drool starts to leak from $his mouth, it's pretty obvious $he can't wait to start sucking.
				<</if>>
			<<case "humiliation">>
				$He asks if there is a window that $he could be stationed in for all to see.
			<<case "buttslut">>
				$He shifts $his weight, $his mind obviously on $his backdoor, and gestures
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					if any girls would want to buttfuck $him.
				<<else>>
					that $he knows whores take it up the ass there and can't wait to join them.
				<</if>>
			<<case "boobs">>
				er," and $he sticks out $his chest a little,
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					"I hear from the other girl<<s>> there'<<s>> thi<<s>> ni<<c>>e lady who goe<<s>> there every morning and pay<<s>> to have a whore <<s>>uck her nipple<<s>> for, like, an hour. I," $he licks $his lips, "could do that."
				<<else>>
					"the other girl<<s>> tell me that whore<<s>> there get tittyfucked all the time. <<s>>ound<<s>> like fun to me."
				<</if>>
			<<case "pregnancy">>
				$He gestures
				<<if $activeSlave.attrXX > $activeSlave.attrXY>>
					that $he's heard that a pregnant women has been coming every night to pay for a whore to cuddle her. $He asks if $he could be that $girl.
				<<elseif $activeSlave.vagina == -1>>
					how much $he wishes $he could get pregnant from all the cum loads $he's going to get shot up $his rear.
				<<elseif isFertile($activeSlave)>>
					that $he knows all the sex is bareback. By the look in $his eyes, you can tell $he is wondering how long it will take for some guys seed to take root in $him.
				<<elseif $activeSlave.pregKnown == 1>>
					how sexy $he thinks pregnant whores are.
				<<elseif $activeSlave.preg > 0>>
					that $he knows all the sex is bareback. By the look in $his eyes, you can tell $he is wondering how long it will take for some guys seed to take root in $him.
				<<elseif $activeSlave.ovaries == 1 && $activeSlave.pubertyXX == 0>>
					how excited $he is for the day $he starts $his menstrual cycle. Will $he even see $his first period, or will every egg $he makes get fertilized?
				<<else>>
					that $he's heard a pregnant women has been coming every night to pay for a whore to cuddle her. $He hopes that one day $he'll be chosen.
				<</if>>
			<<case "dom">>
				$He gestures that $he knows citizens sometimes bring their toys there just to let them get pushed around by a whore. $He'd like that to be true. A lot.
			<<case "sadist">>
				$He gestures that $he knows citizens sometimes bring their toys there for punishment. $He shivers with anticipation.
			<</switch>>
		<<elseif $activeSlave.sexualFlaw != "none">>
			$He nods obediently before hesitating with a concerned look on $his face.
			<<switch $activeSlave.sexualFlaw>>
			<<case "hates oral">>
				$He slowly gestures if blowjobs are popular there while swallowing nervously. $His lower lip starts to quiver, and $he does $his best not to cry in front of you.
			<<case "hates anal">>
				$He slowly gestures if anal is popular there and <<if $activeSlave.amp == 1>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without limbs.<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hands.<</if>> $His lower lip quivers, and $he does $his best not to cry in front of you.
			<<case "hates penetration">>
				$He slowly gestures that he understands that customers will expect to fuck $him and <<if $activeSlave.amp == 1>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without limbs.<<elseif $activeSlave.vagina > 0>>unconsciously lets $his hands fall to $his crotch, but catches $himself and doesn't quite shield $his pussy.<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hands.<</if>> $His lower lip quivers, and $he does $his best not to cry in front of you.
			<<case "repressed">>
				$He shakely gestures that $he'll be a sinner, but if that's what you want, $he'll do it. $He starts to cry quietly.
			<<case "idealistic">>
				$He shakely gestures that $he'll do $his best to please any men that use $him. $He starts to cry quietly.
			<<case "shamefast">>
				$He shakely gestures that $he'll do $his best to use $his naked body to attract men and entice passersby. $He starts to cry quietly.
			<<case "apathetic">>
				$He shakely gestures that $he'll do $his best to take cock. $He starts to cry quietly.
			<<case "crude">>
				$He gestures that $his body is going to become so foul after a day's worth of fucks. $He pauses for a moment, doubtful over whether $he should have said that or not.
			<<case "judgemental">>
				$He gestures $his disapointment that only the most pathetic of losers will be fucking $him now. $He pauses for a moment, doubtful over whether $he should have said that or not.
			<</switch>>
		<<else>>
			$He puts on a brave face and gestures that $he'll do $his best. As you send $him off, you catch sight of $him trying to reassure $himself.
		<</if>>
	<</if>>

<<elseif ($activeSlave.trust < -20)>>

	<<if canTalk($activeSlave)>>
		<<if $activeSlave.sexualFlaw != "none">>
			"Yes, <<Master>>," $he says automatically. $He's badly frightened, and says in a small voice, half to $himself,
			<<switch $activeSlave.sexualFlaw>>
			<<case "hates oral">>
				"I - I'm going to h-have to <<s>>uck a lot of dick, aren't I." $He swallows and tries to control $himself out of fear, but finally gasps out, "Oh God, I'm <<s>>cared," and bursts into tears.
			<<case "hates anal">>
				"C-cu<<s>>tomer<<s>> are really going to ream me up the butt hole, aren't they." $He <<if $activeSlave.amp == 1>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without limbs.<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hands.<</if>> $His lower lip quivers and $he tries to control $himself out of fear, but finally gasps out, "Oh God, I'm <<s>>cared," and bursts into tears.
			<<case "hates penetration">>
				"C-cu<<s>>tomer<<s>> are really going to fuck me <<s>>ore, aren't they." $He <<if $activeSlave.amp == 1>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without limbs.<<elseif $activeSlave.vagina > 0>>unconsciously lets $his hands fall to $his crotch, but catches $himself and doesn't quite shield $his pussy.<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hands.<</if>> $His lower lip quivers, and $he tries to control $himself out of fear, but finally gasps out, "Oh God, I'm <<s>>cared," and bursts into tears.
			<<case "repressed">>
				"Being a whore i<<s>> a <<s>>in," $he <<say>>s quietly, half to $himself. "I'm going t-to b-be <<s>>o dirty. I'm going to h-hell." $He starts to cry quietly. $He tries to get $himself back under control, out of fear, but finally wails, "Oh God, I'm <<s>>orry, p-plea<<s>>e forgive me God," and dissolves into sobbing.
			<<case "idealistic">>
				"I'm going to be <<s>>old for <<s>>e<<x>>," $he <<say>>s quietly, half to $himself. "Men are going to pay, and then they're g-going to <<s>>tick their dick<<s>> in me, and then they're going to leave." $He starts to cry openly. "<<S>>-<<s>>orry, <<Master>>. P-plea<<s>>se don't beat me. I'll do it."
			<<case "shamefast">>
				"I'm going to be meat in a brothel," $he <<say>>s quietly, half to $himself. "I'm going to <<s>>tand there naked with the other girl<<s>>, and men will pick me and then u<<s>>e my body. Over and over." $He starts to cry openly. "<<S>>-<<s>>orry, <<Master>>. P-plea<<s>>se don't beat me. I'll do it."
			<<case "apathetic">>
				"I gue<<ss>> I'll lie there," $he sighs quietly, half to $himself. "A man will pay and then he'll come in to my room where I'm lying on the bed, and he'll <<s>>tick his cock in me and cum and leave. And then the next man will come in." $He starts to cry quietly. "<<S>>-<<s>>orry, <<Master>>. P-plea<<s>>se don't beat me. I'll let it happen."
			<<case "crude">>
				"Okay," $he <<say>>s, thinking. "My poor cornhole is going to be <<s>>uch a <<s>>eminal <<s>>ewer." $He looks doubtful. "<<Sh>>ould I not have <<s>>aid that, <<Master>>?"
			<<case "judgemental">>
				"Gro<<ss>>," $he <<say>>s curtly. "Well, no more hand<<s>>ome boy<<s>> for me, then. Fat pathetic guy<<s>> who patroni<<z>>e whore<<s>>, all the way down. Fuck."
			<</switch>>
		<<else>>
			$He does $his best to control $himself and avoid punishment. "<<Master>>, I will." $He holds $himself together until you dismiss $him; as $he turns away to go, the tears come fast, and $he almost runs into the door frame on $his way out, blind with weeping.
		<</if>>
	<<else>>
		<<if $activeSlave.sexualFlaw != "none">>
			$He automatically gestures consent. $He's badly frightened, and gingerly continues
			<<switch $activeSlave.sexualFlaw>>
			<<case "hates oral">>
				by asking if $he'll have to suck a lot of dick. $He swallows and tries to control $himself out of fear, but finally loses composure and bursts into tears.
			<<case "hates anal">>
				by asking if $he'll be assfucked a lot. $He <<if $activeSlave.amp == 1>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without limbs.<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hands.<</if>> $His lower lip quivers and $he tries to control $himself out of fear, but finally loses composure and bursts into tears.
			<<case "hates penetration">>
				by asking if $he's going to be constantly fucked. $He <<if $activeSlave.amp == 1>>shifts uncomfortably, unconsciously trying to shield $his rear as best $he can manage without limbs.<<elseif $activeSlave.vagina > 0>>unconsciously lets $his hands fall to $his crotch, but catches $himself and doesn't quite shield $his pussy.<<else>>unconsciously reaches around behind $himself, not quite shielding $his anus with $his hands.<</if>> $His lower lip quivers, and $he tries to control $himself out of fear, but finally loses composure and bursts into tears.
			<<case "repressed">>
				that being a whore is a sin. $He starts to cry quietly. $He tries to get $himself back under control, out of fear, but finally wails and dissolves into prayers intermixed with sobbing.
			<<case "idealistic">>
				that sex should be with the one you love, not random men. $He starts to cry openly while begging you not to beat $him.
			<<case "shamefast">>
				that $he doesn't want to be naked in a line up for men to choose from. $He starts to cry openly while begging you not to beat $him.
			<<case "apathetic">>
				that all $he has to do is lie there and take it. $He starts to cry quietly.
			<<case "crude">>
				by asking if men enjoy fucking a thoroughly seeded hole. $He pauses for a moment, doubtful over whether $he should have said that or not.
			<<case "judgemental">>
				by expressing $his disappointment with the type of men that frequent brothels.
			<</switch>>
		<<else>>
			$He does $his best to control $himself and avoid punishment. "<<Master>>, I will." $He holds $himself together until you dismiss $him; as $he turns away to go, the tears come fast, and $he almost runs into the door frame on $his way out, blind with weeping.
		<</if>>
	<</if>>

<<else>>

	$He manages to
	<<if canTalk($activeSlave)>>
		get "Oh fuck n-" out
	<<elseif $activeSlave.amp != 1>>
		flip you an incredibly rude gesture
	<<else>>
		get an incredibly rude gesture out
	<</if>>
	before the compliance systems activate and $he's poleaxed to the ground. Anticipating this, you had <<if $Madam != 0>>$Madam.slaveName <<else>>another, more obedient slave<</if>> standing by to haul $him away. It'll take a couple of hundred customers, but being sold in a brothel for rape should knock the resistance out of $him.

<</if>> /* CLOSES DEVOTION */


code:
:: Farmer Select [nobr]

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

$He will tend to your crops and animals.
<<else>>
	You have not selected a Farmer.
<</if>>

''Appoint a Farmer from your obedient slaves:''

[[None|Farmer Workaround][$i = -1]]

<<assignmentFilter>>

	<<showallAssignmentFilter>>
	<<include "Slave Summary">>
	<<resetAssignmentFilter>>


code:
:: Farmer Workaround [silently]

<<if $Farmer != 0>>
	<<= removeJob($Farmer, "be the Farmer")>>
<</if>>
<<if $i > -1>>
	<<= assignJob($slaves[$i], "be the Farmer")>>
	<<set $slaves[$i].livingRules = "luxurious">>
	<<set $Farmer = $slaves[$i]>>
<</if>>

<<goto "Farmyard">>


code:
:: FarmyardAnimals [nobr]

/*TODO: add prices*/
/*TODO: these prices will definitely need to be adjusted*/

<<set $nextButton = "Back", $nextLink = "Farmyard", $returnTo = "FarmyardAnimals", $showEncyclopedia = 1, $encyclopedia = "Farmyard">>

<<if $farmyardKennels > 0 || $farmyardStable > 0 || $farmyardCages > 0>>

''Domestic Animals''

<<if $farmyardKennels > 0>>

	Dogs:

	<<if $animalsBought.labradorRetrievers == 0>>
		<<link "Purchase Labrador Retrievers" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.labradorRetrievers = 1, $animalsBought.canines += 1, $canines.push("Labrador Retrievers")>><</link>>

	<<elseif $animalsBought.labradorRetrievers == 1>>
		Labrador Retrievers
		<<if $activeCanine.breed != "Labrador Retriever">>
			[[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Labrador Retriever", type: "canine", dickSize: "big", ballType: "dog"}]]
		<<else>>
			//Set as active canine//
		<</if>>

	<</if>>
	<<if $animalsBought.germanShepherds == 0>>
		<<link "Purchase German Shepherds" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.germanShepherds = 1, $animalsBought.canines += 1, $canines.push("German Shepherds")>><</link>>

	<<elseif $animalsBought.germanShepherds == 1>>
		German Shepherds
		<<if $activeCanine.breed != "German Shepherd">>
			[[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "German Shepherd", type: "canine", dickSize: "big", ballType: "dog"}]]
		<<else>>
			//Set as active canine//
		<</if>>

	<</if>>
	<<if $animalsBought.goldenRetrievers == 0>>
		<<link "Purchase Golden Retrievers" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.goldenRetrievers = 1, $animalsBought.canines += 1, $canines.push("Golden Retrievers")>><</link>>

	<<elseif $animalsBought.goldenRetrievers == 1>>
		Golden Retrievers
		<<if $activeCanine.breed != "Golden Retriever">>
			[[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Golden Retriever", type: "canine", dickSize: "big", ballType: "dog"}]]
		<<else>>
			//Set as active canine//
		<</if>>

	<</if>>
	<<if $animalsBought.frenchBulldogs == 0>>
		<<link "Purchase French Bulldogs" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.frenchBulldogs = 1, $animalsBought.canines += 1, $canines.push("French Bulldogs")>><</link>>

	<<elseif $animalsBought.frenchBulldogs == 1>>
		French Bulldogs
		<<if $activeCanine.breed != "French Bulldog">>
			[[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "French Bulldog", type: "canine", dickSize: "big", ballType: "dog"}]]
		<<else>>
			//Set as active canine//
		<</if>>

	<</if>>
	<<if $animalsBought.bulldogs == 0>>
		<<link "Purchase Bulldogs" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.bulldogs = 1, $animalsBought.canines += 1, $canines.push("Bulldogs")>><</link>>

	<<elseif $animalsBought.bulldogs == 1>>
		Bulldogs
		<<if $activeCanine.breed != "Bulldog">>
			[[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Bulldog", type: "canine", dickSize: "big", ballType: "dog"}]]
		<<else>>
			//Set as active canine//
		<</if>>

	<</if>>
	<<if $animalsBought.beagles == 0>>
		<<link "Purchase Beagles" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.beagles = 1, $animalsBought.canines += 1, $canines.push("Beagles")>><</link>>

	<<elseif $animalsBought.beagles == 1>>
		Beagles
		<<if $activeCanine.breed != "Beagle">>
			[[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Beagle", type: "canine", dickSize: "big", ballType: "dog"}]]
		<<else>>
			//Set as active canine//
		<</if>>

	<</if>>
	<<if $animalsBought.poodles == 0>>
		<<link "Purchase Poodles" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.poodles = 1, $animalsBought.canines += 1, $canines.push("Poodles")>><</link>>

	<<elseif $animalsBought.poodles == 1>>
		Poodles
		<<if $activeCanine.breed != "Poodle">>
			[[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Poodle", type: "canine", dickSize: "big", ballType: "dog"}]]
		<<else>>
			//Set as active canine//
		<</if>>

	<</if>>
	<<if $animalsBought.rottweilers == 0>>
		<<link "Purchase Rottweilers" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.rottweilers = 1, $animalsBought.canines += 1, $canines.push("Rottweilers")>><</link>>

	<<elseif $animalsBought.rottweilers == 1>>
		Rottweilers
		<<if $activeCanine.breed != "Rottweiler">>
			[[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Rottweiler", type: "canine", dickSize: "big", ballType: "dog"}]]
		<<else>>
			//Set as active canine//
		<</if>>

	<</if>>
	<<if $animalsBought.yorkshireTerriers == 0>>
		<<link "Purchase Yorkshire Terriers" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.yorkshireTerriers = 1, $animalsBought.canines += 1, $canines.push("Yorkshire Terriers")>><</link>>

	<<elseif $animalsBought.yorkshireTerriers == 1>>
		Yorkshire Terriers
		<<if $activeCanine.breed != "Yorkshire Terrier">>
			[[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Yorkshire Terrier", type: "canine", dickSize: "big", ballType: "dog"}]]
		<<else>>
			//Set as active canine//
		<</if>>

	<</if>>
	<<if $animalsBought.siberianHuskies == 0>>
		<<link "Purchase Siberian Huskies" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.siberianHuskies = 1, $animalsBought.canines += 1, $canines.push("Siberian Huskies")>><</link>>

	<<elseif $animalsBought.siberianHuskies == 1>>
		Siberian Huskies
		<<if $activeCanine.breed != "Siberian Husky">>
			[[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dog", speciesCap: "Dog", speciesPlural: "dogs", breed: "Siberian Husky", type: "canine", dickSize: "big", ballType: "dog"}]]
		<<else>>
			//Set as active canine//
		<</if>>

	<</if>>
<</if>>

<<if $farmyardStable > 0>>

	Hooved Animals:

	<<if $animalsBought.horses == 0>>
		<<link "Purchase horses" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.horses = 1, $animalsBought.hooved += 1, $hooved.push("horses")>><</link>>
	<<elseif $animalsBought.horses == 1>>
		Horses
		<<if $activeHooved.species != "horse">>
			[[Set as active hooved|FarmyardAnimals][$activeHooved = {species: "horse", speciesCap: "Horse", speciesPlural: "horses", type: "hooved", dickSize: "huge", ballType: "horse"}]]
		<<else>>
			//Set as active hooved//
		<</if>>
	<</if>>

<</if>>

<<if $farmyardCages > 0>>

	Cats:

	<<if $animalsBought.siameses == 0>>
		<<link "Purchase Siamese cats" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.siameses = 1, $animalsBought.felines += 1, $felines.push("Siamese cats")>><</link>>

	<<elseif $animalsBought.siameses == 1>>
		Siamese cats
		<<if $activeFeline.breed != "Siamese">>
			[[Set as active canine|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Siamese", type: "feline", dickSize: "small", ballType: "cat"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
	<<if $animalsBought.persians == 0>>
		<<link "Purchase Persian cats" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.persians = 1, $animalsBought.felines += 1, $felines.push("Persian cats")>><</link>>

	<<elseif $animalsBought.persians == 1>>
		Persian cats
		<<if $activeFeline.breed != "Persian">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Persian", type: "feline", dickSize: "small", ballType: "cat"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
	<<if $animalsBought.maineCoons == 0>>
		<<link "Purchase Maine Coon cats" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.maineCoons = 1, $animalsBought.felines += 1, $felines.push("Maine Coon cats")>><</link>>

	<<elseif $animalsBought.maineCoons == 1>>
		Maine Coon cats
		<<if $activeFeline.breed != "Maine Coon">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Maine Coon", type: "feline", dickSize: "small", ballType: "cat"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
	<<if $animalsBought.ragdolls == 0>>
		<<link "Purchase Ragdoll cats" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.ragdolls = 1, $animalsBought.felines += 1, $felines.push("Ragdoll cats")>><</link>>

	<<elseif $animalsBought.ragdolls == 1>>
		Ragdoll cats
		<<if $activeFeline.breed != "Ragdoll">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Ragdoll", type: "feline", dickSize: "small", ballType: "cat"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
	<<if $animalsBought.bengals == 0>>
		<<link "Purchase Bengal cats" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.bengals = 1, $animalsBought.felines += 1, $felines.push("Bengal cats")>><</link>>

	<<elseif $animalsBought.bengals == 1>>
		Bengal cats
		<<if $activeFeline.breed != "Bengal">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Bengal", type: "feline", dickSize: "small", ballType: "cat"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
	<<if $animalsBought.abbysinians == 0>>
		<<link "Purchase Abbysinian cats" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.abbysinians = 1, $animalsBought.felines += 1, $felines.push("Abbysinian cats")>><</link>>

	<<elseif $animalsBought.abbysinians == 1>>
		Abbysinian cats
		<<if $activeFeline.breed != "Abbysinian">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Abbysinian", type: "feline", dickSize: "small", ballType: "cat"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
	<<if $animalsBought.birmans == 0>>
		<<link "Purchase Birman cats" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.birmans = 1, $animalsBought.felines += 1, $felines.push("Birman cats")>><</link>>

	<<elseif $animalsBought.birmans == 1>>
		Birman cats
		<<if $activeFeline.breed != "Birman">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Birman", type: "feline", dickSize: "small", ballType: "cat"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
	<<if $animalsBought.orientalShorthairs == 0>>
		<<link "Purchase Oriental Shorthair cats" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.orientalShorthairs = 1, $animalsBought.felines += 1, $felines.push("Oriental Shorthair cats")>><</link>>

	<<elseif $animalsBought.orientalShorthairs == 1>>
		Oriental Shorthair cats
		<<if $activeFeline.breed != "Oriental Shorthair">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Oriental Shorthair", type: "feline", dickSize: "small", ballType: "cat"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
	<<if $animalsBought.sphynxes == 0>>
		<<link "Purchase Sphynx cats" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.sphynxes = 1, $animalsBought.felines += 1, $felines.push("Sphynx cats")>><</link>>

	<<elseif $animalsBought.sphynxes == 1>>
		Sphynx cats
		<<if $activeFeline.breed != "Sphynx">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Sphynx", type: "feline", dickSize: "small", ballType: "cat"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
	<<if $animalsBought.russianBlues == 0>>
		<<link "Purchase Russian Blue cats" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.russianBlues = 1, $animalsBought.felines += 1, $felines.push("Russian Blue cats")>><</link>>

	<<elseif $animalsBought.russianBlues == 1>>
		Russian Blue cats
		<<if $activeFeline.breed != "Russian Blue">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cat", speciesCap: "Cat", speciesPlural: "cats", breed: "Russian Blue", type: "feline", dickSize: "small", ballType: "cat"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
<</if>>
<</if>>

<<if $farmyardKennels > 1 || $farmyardStable > 1 || $farmyardCages > 1>>

''Exotic Animals''

<<if $farmyardKennels > 1>>

	Canines:

	<<if $animalsBought.wolves == 0>>
		<<link "Purchase wolves" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.wolves = 1, $animalsBought.canines += 1, $canines.push("wolves")>><</link>>

	<<elseif $animalsBought.wolves == 1>>
		/*A couple of adult wolves are lounging about in their kennels.(OLD)*/
		Wolves
		<<if $activeCanine.species != "wolf">>
			[[Set as active canine|FarmyardAnimals][$activeCanine = {species: "wolf", speciesCap: "Wolf", speciesPlural: "wolves", type: "canine", dickSize: "large", ballType: "wolf"}]]
		<<else>>
			//Set as active canine//
		<</if>>

	<</if>>
	<<if $animalsBought.foxes == 0>>
		<<link "Purchase foxes" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.foxes = 1, $animalsBought.canines += 1, $canines.push("foxes")>><</link>>

	<<elseif $animalsBought.foxes == 1>>
		/*Red foxes play in one corner of their kennels, chasing one another.(OLD)*/
		Foxes
		<<if $activeCanine.species != "fox">>
			[[Set as active canine|FarmyardAnimals][$activeCanine = {species: "fox", speciesCap: "Fox", speciesPlural: "foxes", type: "canine", dickSize: "large", ballType: "fox"}]]
		<<else>>
			//Set as active canine//
		<</if>>

	<</if>>
	<<if $animalsBought.jackals == 0>>
		<<link "Purchase jackals" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.jackals = 1, $animalsBought.canines += 1, $canines.push("jackals")>><</link>>

	<<elseif $animalsBought.jackals == 1>>
		/*A group of male jackals are fighting over a potential mate, causing quite a ruckus.(OLD)*/
		Jackals
		<<if $activeCanine.species != "jackal">>
			[[Set as active canine|FarmyardAnimals][$activeCanine = {species: "jackal", speciesCap: "Jackal", speciesPlural: "jackals", type: "canine", dickSize: "large", ballType: "jackal"}]]
		<<else>>
			//Set as active canine//
		<</if>>

	<</if>>
	<<if $animalsBought.dingos == 0>>
		<<link "Purchase dingos" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.dingos = 1, $animalsBought.canines += 1, $canines.push("dingos")>><</link>>

	<<elseif $animalsBought.dingos == 1>>
		/*The dingos are eating their meal, growling at each other when one gets to close to another's food.(OLD)*/
		Dingos
		<<if $activeCanine.species != "dingo">>
			[[Set as active canine|FarmyardAnimals][$activeCanine = {species: "dingo", speciesCap: "Dingo", speciesPlural: "dingos", type: "canine", dickSize: "large", ballType: "dingo"}]]
		<<else>>
			//Set as active canine//
		<</if>>

	<</if>>
<</if>>

<<if $farmyardStable > 1>>

	Hooved Animals:

	<<if $animalsBought.zebras == 0>>
		<<link "Purchase zebras" "FarmyardAnimals">><<set $cash -= Math.trunc(20000*$upgradeMultiplierArcology), $animalsBought.zebras = 1, $animalsBought.hooved += 1, $hooved.push("zebras")>><</link>>
	<<elseif $animalsBought.zebras == 1>>
		Zebras
		<<if $activeHooved.species != "zebra">>
			[[Set as active hooved|FarmyardAnimals][$activeHooved = {species: "zebra", speciesCap: "Zebra", speciesPlural: "zebras", type: "hooved", dickSize: "huge", ballType: "zebra"}]]
		<<else>>
			//Set as active hooved//
		<</if>>
	<</if>>

<</if>>

<<if $farmyardCages > 1>>

	Felines

	<<if $animalsBought.cougars == 0>>
		<<link "Purchase cougars" "FarmyardAnimals">><<set $cash -= Math.trunc(30000*$upgradeMultiplierArcology), $animalsBought.cougars = 1, $animalsBought.felines += 1, $felines.push("cougars")>><</link>>

	<<elseif $animalsBought.cougars == 1>>
		/*The cougars are sleeping, their lean bodies scattered around under trees. (OLD)*/
		Cougars
		<<if $activeFeline.species != "cougar">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "cougar", speciesCap: "Cougar", speciesPlural: "cougars", type: "feline", dickSize: "large", ballType: "cougar"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
	<<if $animalsBought.jaguars == 0>>
		<<link "Purchase jaguars" "FarmyardAnimals">><<set $cash -= Math.trunc(30000*$upgradeMultiplierArcology), $animalsBought.jaguars = 1, $animalsBought.felines += 1, $felines.push("jaguars")>><</link>>

	<<elseif $animalsBought.jaguars == 1>>
		/*You can see a few jaguars laying around in the trees in their enclosure. (OLD)*/
		Jaguars
		<<if $activeFeline.species != "jaguar">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "jaguar", speciesCap: "Jaguar", speciesPlural: "jaguars", type: "feline", dickSize: "large", ballType: "jaguar"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
	<<if $animalsBought.lynx == 0>>
		<<link "Purchase lynxs" "FarmyardAnimals">><<set $cash -= Math.trunc(30000*$upgradeMultiplierArcology), $animalsBought.lynx = 1, $animalsBought.felines += 1, $felines.push("lynx")>><</link>>

	<<elseif $animalsBought.lynx == 1>>
		/*The lynxes are playfully running around their enclosure. (OLD)*/
		Lynx
		<<if $activeFeline.species != "lynx">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "lynx", speciesCap: "Lynx", speciesPlural: "lynx", type: "feline", dickSize: "large", ballType: "lynx"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
	<<if $animalsBought.leopards == 0>>
		<<link "Purchase leopards" "FarmyardAnimals">><<set $cash -= Math.trunc(30000*$upgradeMultiplierArcology), $animalsBought.leopards = 1, $animalsBought.felines += 1, $felines.push("leopards")>><</link>>

	<<elseif $animalsBought.leopards == 1>>
		/*The leopards are lazing about in the trees in their enclosure. (OLD)*/
		Leopards
		<<if $activeFeline.species != "leopard">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "leopard", speciesCap: "Leopard", speciesPlural: "leopards", type: "feline", dickSize: "large", ballType: "leopard"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
	<<if $animalsBought.lions == 0>>
		<<link "Purchase lions" "FarmyardAnimals">><<set $cash -= Math.trunc(30000*$upgradeMultiplierArcology), $animalsBought.lions = 1, $animalsBought.felines += 1, $felines.push("lions")>><</link>>

	<<elseif $animalsBought.lions == 1>>
		/*Most of the lions are sunning themselves. (OLD)*/
		Lions
		<<if $activeFeline.species != "lion">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "lion", speciesCap: "Lion", speciesPlural: "lions", type: "feline", dickSize: "large", ballType: "lion"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
	<<if $animalsBought.tigers == 0>>
		<<link "Purchase tigers" "FarmyardAnimals">><<set $cash -= Math.trunc(30000*$upgradeMultiplierArcology), $animalsBought.tigers = 1, $animalsBought.felines += 1, $felines.push("tigers")>><</link>>

	<<elseif $animalsBought.tigers == 1>>
		/*Some of the tigers are swimming, and the ones that aren't are lazing about. (OLD)*/
		Tigers
		<<if $activeFeline.species != "tiger">>
			[[Set as active feline|FarmyardAnimals][$activeFeline = {species: "tiger", speciesCap: "Tiger", speciesPlural: "tigers", type: "feline", dickSize: "large", ballType: "tiger"}]]
		<<else>>
			//Set as active feline//
		<</if>>

	<</if>>
<</if>>
<</if>>


code:
:: FarmyardLab [nobr]

<<set $nextButton = "Back", $nextLink = "Farmyard", $returnTo = "FarmyardLab", $showEncyclopedia = 1, $encyclopedia = "Farmyard">>

//This is currently under development.//

/* TODO: add plant types and research for them */

$farmyardNameCaps Research Lab

<<if $farmyardLabUpgrades.animalOvaries == 0>>
	[[Retrofit the pharmaceutical fabricator to work with animal ovaries|FarmyardLab][$cash -= 25000, $farmyardLabUpgrades.animalOvaries = 1]]

//Costs <<print cashFormat(25000)>> and allows you to implant animal ovaries into slaves.//

<<elseif $farmyardLabUpgrades.animalOvaries == 1>>
	The pharmaceutical fabricator has been retrofitted to work with animal ovaries, allowing you to implant them into slaves.

<</if>>
<<if $farmyardLabUpgrades.animalTesticles == 0>>
	[[Retrofit the pharmaceutical fabricator to work with animal testicles|FarmyardLab][$cash -= 25000, $farmyardLabUpgrades.animalTesticles = 1]]

//Costs <<print cashFormat(25000)>> and allows you to implant animal testicles into slaves.//

<<elseif $farmyardLabUpgrades.animalTesticles == 1>>
	The pharmaceutical fabricator has been retrofitted to work with animal testicles, allowing you to implant them into slaves.

<</if>>
<<if $farmyardLabUpgrades.animalMpreg == 0>>
	[[Retrofit the pharmaceutical fabricator to work with animal anal wombs and ovaries|FarmyardLab][$cash -= 25000, $farmyardLabUpgrades.animalMpreg = 1]]

//Costs <<print cashFormat(25000)>> and allows you to implant animal anal wombs and ovaries into slaves.//

<<elseif $farmyardLabUpgrades.animalMpreg == 1>>
	The pharmaceutical fabricator has been retrofitted to work with animal anal wombs and ovaries, allowing you to implant them into slaves.

<</if>>


code:
:: Farmyard Report [nobr]

//Currently WIP//

<<set _MMWorkout = 0>>

<<SlaveSort $DairyiIDs>>
<<set _DL = $DairyiIDs.length, $dairySlaves = _DL, _SL = $slaves.length, $bioreactorPerfectedID = 0, $legendaryBallsID = 0, $legendaryCowID = 0, $milkmaidDevotionBonus = 1, $milkmaidHealthBonus = 0, $milkmaidTrustBonus = 1, $milkmaidDevotionThreshold = 45, $milkmaidTrustThreshold = 35, _anusesStretched = 0, _birthers = 0, _births = 0, _cumWeek = 0, _femCumWeek = 0, _FLsFetish = 0, _milkWeek = 0, _balltacular = 0, _boobtacular = 0, _careerForgotten = 0, _chemMinor = 0, _chemSevere = 0, _desterilized = 0, _hatefilled = 0, _horrified = 0, $intelligenceLost = 0, _mindbroken = 0, _profits = 0, _skillsLost = 0, _stupidified = 0, _vaginasStretched = 0>>

<<set $facility = $facility || {}, $facility.dairy = initFacilityStatistics($facility.dairy)>>

<<if ($Milkmaid != 0)>>
	<<set _FLs = $slaveIndices[$Milkmaid.ID]>>

	<<if $slaves[_FLs].health < 90>>
		<<set $slaves[_FLs].curatives = 2>>
	<<else>>
		<<set $slaves[_FLs].curatives = 0>>
	<</if>>
	<<if ($slaves[_FLs].diet != "healthy")>>
		<<set ($slaves[_FLs].diet = "healthy")>>
	<</if>>
	<<if $slaves[_FLs].devotion <= 60>>
		<<set $slaves[_FLs].devotion += 5>>
	<</if>>
	<<if $slaves[_FLs].trust < 60>>
		<<set $slaves[_FLs].trust += 5>>
	<</if>>
	<<if ($slaves[_FLs].oralSkill > 0)>>
		<<set $milkmaidDevotionBonus += Math.trunc($slaves[_FLs].oralSkill/30)>>
	<</if>>
	<<if ($slaves[_FLs].health >= 80)>>
		<<set $milkmaidHealthBonus++>>
	<</if>>
	<<if $slaves[_FLs].livingRules != "luxurious">>
		<<set $slaves[_FLs].livingRules = "luxurious">>
	<</if>>
	<<if $slaves[_FLs].fetishStrength <= 95>>
		<<if $slaves[_FLs].fetish != "boobs">>
			<<if fetishChangeChance($slaves[_FLs]) > random(0,100)>>
				<<set _FLsFetish = 1, $slaves[_FLs].fetishKnown = 1, $slaves[_FLs].fetish = "boobs">>
			<</if>>
		<<elseif $slaves[_FLs].fetishKnown == 0>>
			<<set _FLsFetish = 1, $slaves[_FLs].fetishKnown = 1>>
		<<else>>
			<<set _FLsFetish = 2, $slaves[_FLs].fetishStrength += 4>>
		<</if>>
	<</if>>
	<<run getSlaveStatisticData($Milkmaid, $facility.dairy)>>
	<<set $Milkmaid = $slaves[_FLs], $i = _FLs>>
	    <<= SlaveFullName($Milkmaid)>> is serving as your Milkmaid.
	<<if $Milkmaid.relationship == -3 && $Milkmaid.devotion > 50>>
		<<set $milkmaidDevotionBonus += 2, $milkmaidTrustBonus += 2>>
		She tries her best to be your perfect farmwife.
	<</if>>
	<<if (_DL > 0) && ($milkmaidImpregnates == 1) && (canPenetrate($Milkmaid)) && $Milkmaid.pubertyXY == 1>>
		<<set _milkmaidImpregnated = 0>>
		<<for _dI = 0; _dI < _DL; _dI++>>
			<<set $i = $slaveIndices[$DairyiIDs[_dI]]>>
			<<if (canImpreg($slaves[$i], $Milkmaid))>>
				<<set $slaves[$i].preg = 1, $slaves[$i].pregSource = $Milkmaid.ID, $slaves[$i].pregKnown = 1, $slaves[$i].pregWeek = 1, _milkmaidImpregnated++, $slaves[$i].vaginalCount += 10, $vaginalTotal += 10>>
				<<set $slaves[$i].pregType = setPregType($slaves[$i])>>
				<<set WombImpregnate($slaves[$i], $slaves[$i].pregType, $Milkmaid.ID, 1)>>
			<</if>>
		<</for>>
		<<if _milkmaidImpregnated > 0>>
			It's her responsibility to keep her charges pregnant, and she constantly
			<<if _milkmaidImpregnated == 1>>
				breeds the one fertile cow.
			<<else>>
				fills the _milkmaidImpregnated cows' cunts with her cum.
			<</if>>
			<<if $Milkmaid.career == "a breeding bull">>
				She was conditioned to fill empty wombs, so she takes a @@.hotpink;deep pleasure@@ in her job.
				<<set $slaves[_FLs].devotion++>>
			<</if>>
			<<set _Tmult = (_milkmaidImpregnated * 10), $slaves[_FLs].penetrativeCount += _Tmult, $Milkmaid.penetrativeCount += _Tmult, $penetrativeTotal += _Tmult>>
			<<set $slaves[_FLs].need = 0>>
		<</if>>
	<</if>>
	<<if (_FLsFetish == 1)>>
		In her line of work, she touches more breasts than even you do. She lives in an atmosphere of quivering, heaving, milky breastflesh; of girls who shudder and moan when she touches their creamy nipples. She has @@.lightcoral;become more of a breast girl.@@
	<<elseif (_FLsFetish == 2)>>
		It's a hard life, pulling teats and washing cows, but it does @@.lightsalmon;make her more of a breast fetishist.@@
	<</if>>
	<<if ($Milkmaid.muscles > 30)>>
		<<set $milkmaidHealthBonus++>>
		Her muscles help her handle the fattest or most reluctant cow.
	<</if>>
	<<if $dairyRestraintsSetting != 2>> /* how much effort the MM must take to force a slave into a stall */
		<<for _dI = 0; _dI < _DL; _dI++>>
			<<set $i = $slaveIndices[$DairyiIDs[_dI]]>>
			<<if $slaves[$i].devotion <= 20>>
				<<set _MMWorkout++>>
			<</if>>
			<<if $slaves[$i].trust < 20>>
				<<set _MMWorkout++>>
			<</if>>
			<<if $slaves[$i].muscles >= 30>>
				<<set _MMWorkout++>>
			<</if>>
			<<if $slaves[$i].weight >= 70>>
				<<set _MMWorkout++>>
			<</if>>
			<<if $slaves[$i].weight >= 160>>
				<<set _MMWorkout++>>
			<</if>>
			<<if $slaves[$i].boobs >= 20000>>
				<<set _MMWorkout++>>
			<</if>>
			<<if $slaves[$i].balls >= 30>>
				<<set _MMWorkout++>>
			<</if>>
			<<if $slaves[$i].belly >= 5000>>
				<<set _MMWorkout++>>
			<</if>>
			<<if !canWalk($slaves[$i])>> /* big bonus if they can't move themselves and are fat as cows */
				<<if $slaves[$i].weight >= 70>>
					<<set _MMWorkout += 2>>
				<</if>>
				<<if $slaves[$i].weight >= 160>>
					<<set _MMWorkout += 2>>
				<</if>>
				<<if $slaves[$i].boobs >= 20000>>
					<<set _MMWorkout += 2>>
				<</if>>
				<<if $slaves[$i].balls >= 30>>
					<<set _MMWorkout += 2>>
				<</if>>
				<<if $slaves[$i].belly >= 5000>>
					<<set _MMWorkout += 2>>
				<</if>>
			<</if>>
		<</for>>
	<</if>>
	<<if (_MMWorkout > random(1,30)) && $Milkmaid.muscles < 60>>
		Constantly having to wrestle unruly or aiding heavy cows into their stalls forces her to @@.lime;build muscle.@@
		<<set $slaves[_FLs].muscles++>>
	<</if>>
	<<if ($Milkmaid.oralSkill > 30)>>
		Her skilled tongue helps her keep her girls happy.
	<</if>>
	<<if ($Milkmaid.oralSkill < 90)>>
		<<set $skillIncrease = 3>>
		<<OralSkillIncrease $slaves[_FLs]>>
	<</if>>
	<<if ($Milkmaid.sexualQuirk == "caring")>>
		<<set $milkmaidTrustBonus++>>
		She's very caring, and does her best to get the cows to trust her.
	<</if>>
	<<if ($Milkmaid.behavioralQuirk == "funny")>>
		<<set $milkmaidTrustBonus++>>
		She's funny, and does her best to get the cows to trust her by keeping them laughing.
	<</if>>
	<<if setup.milkmaidCareers.includes($Milkmaid.career)>>
		<<set $milkmaidHealthBonus++>>
		She has career experience dealing with milk animals.
	<<elseif $Milkmaid.skillFA >= $masteredXP>>
		<<set $milkmaidHealthBonus++>>
		She has experience dealing with milk animals from working for you.
	<<else>>
		<<set $slaves[_FLs].skillFA += random(1,Math.ceil(($Milkmaid.intelligence+$Milkmaid.intelligenceImplant)/15) + 8)>>
	<</if>>
	<<if ($dairyStimulatorsSetting < 2) && ($Milkmaid.dick > 4) && (canPenetrate($Milkmaid))>>
		<<for _dI = 0; _dI < _DL; _dI++>>
			<<set $i = $slaveIndices[$DairyiIDs[_dI]]>>
			<<if ($slaves[$i].balls > 0) && ($slaves[$i].prostate > 0)>>
				She uses her turgid cock to give prostate stimulation to slaves that need help ejaculating.
				<<set $slaves[_FLs].need -= 50>>
				<<break>>
			<</if>>
		<</for>>
	<</if>>
	<<set $milkmaidDevotionThreshold += (5*$milkmaidDevotionBonus), $milkmaidTrustThreshold += (5*$milkmaidTrustBonus)>>
	<<for _dI = 0; _dI < _DL; _dI++>>
		<<set $i = $slaveIndices[$DairyiIDs[_dI]]>>
		<<if $Milkmaid.rivalryTarget == $slaves[$i].ID>>
			She either neglects or harasses her <<print rivalryTerm($Milkmaid)>>, $slaves[$i].slaveName, making sure she is unhappy and uncomfortable.
			<<set $slaves[$i].devotion -= 3, $slaves[$i].trust -= 3>>
			<<if random(1,100) > 65>>
				<<set $Milkmaid.rivalry++, $slaves[_FLs].rivalry++, $slaves[$i].rivalry++>>
			<</if>>
		<<elseif $Milkmaid.relationshipTarget == $slaves[$i].ID>>
			She dotes over her <<print relationshipTerm($Milkmaid)>>, $slaves[$i].slaveName, making sure she is happy and comfortable.
			<<set $slaves[$i].devotion++, $slaves[$i].trust++>>
		<<elseif $familyTesting == 1 && totalRelatives($slaves[$i]) > 0>>
			She pays special attention to her <<print relativeTerm($Milkmaid.ID,$slaves[$i].ID)>>, $slaves[$i].slaveName, making sure she is well kept and happy.
			<<set $slaves[$i].trust++>>
		<<elseif $Milkmaid.relationTarget == $slaves[$i].ID && $familyTesting == 0>>
			She pays special attention to her $slaves[$i].relation, $slaves[$i].slaveName, making sure she is well kept and happy.
			<<set $slaves[$i].trust++>>
		<</if>>
		<<if $slaves[$i].prestigeDesc == "She is remembered for winning best in show as a dairy cow.">>
			<<if ($slaves[$i].lactation > 0) && (($slaves[$i].boobs-$slaves[$i].boobsImplant) > 6000)>>
				She spends extra time with $slaves[$i].slaveName, the well-known cow. She is fascinated by $slaves[$i].slaveName's massive $slaves[$i].boobs cc breasts and spends extra time massaging and kneading them to maximize production.
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
			<<else>>
				She is disappointed that the well-known cow $slaves[$i].slaveName<<if ($slaves[$i].lactation == 0)>> isn't producing milk anymore. <<else>>'s breasts have shrunken considerably from their heyday.<</if>>
			<</if>>
		<</if>>
		<<if $slaves[$i].prestigeDesc == "She is remembered for winning best in show as a cockmilker.">>
			<<if (($slaves[$i].balls > 6) && ($slaves[$i].dick != 0)) || (($slaves[$i].balls > 4) && ($slaves[$i].dick != 0) && ($slaves[$i].prostate > 1))>>
				She spends extra time with $slaves[$i].slaveName, the massive ejaculating cow. She can't help but massage the cow's dick and testes to stimulate them further and coax more from them.
				<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
			<<else>>
				She is disappointed that the (formerly) massive ejaculating cow $slaves[$i].slaveName<<if $slaves[$i].balls == 0 || $slaves[$i].dick == 0>> is incapable of giving cum. <<elseif $slaves[$i].prostate < 2>> no longer possesses a hyperactive prostate. <<else>>'s balls are considerably smaller than at their heyday.<</if>>
			<</if>>
		<</if>>
		<<if $slaves[$i].prestigeDesc == "She is remembered for winning best in show as a breeder." && $slaves[$i].bellyPreg >= 1500>>
			She spends extra time with $slaves[$i].slaveName, the well-known breeder. $Milkmaid.slaveName is fascinated by her growing pregnancy and popular womb. She makes sure her belly and it's occupants are nice and comfortable.
			<<set $slaves[$i].devotion += 3, $slaves[$i].trust += 3>>
		<</if>>
	<</for>>
<</if>>

<<set _Tadd = ($bioreactorsXY + $bioreactorsXX + $bioreactorsHerm + $bioreactorsBarren)>>
<<if (_DL + _Tadd > 0)>>
	<<if ($Milkmaid != 0)>>

<</if>>
	    <<if (_DL != 1)>>''There are _DL cows in $dairyName.''<<else>>''There is one cow in $dairyName.''<</if>>
	<<if ($dairyRestraintsSetting > 1)>>
		The facility functions as an industrial slave products factory.
	<</if>>
	<<if (_Tadd > 0)>>
		_Tadd milking machines have permanent biological components, making a total of <<print _Tadd + _DL>> milk-producing bodies.
	<</if>>
<</if>>

<<if ($Milkmaid != 0)>>
	<<set $i = _FLs>> /* apply following SA passages to facility leader */
	<<if $showEWD != 0>>

		/* 000-250-006 */
		<<if $seeImages && $seeReportImages>>

			<<SlaveArt $slaves[_FLs] 0 0>>

		<</if>>
		/* 000-250-006 */
		''__@@.pink;<<= SlaveFullName($slaves[_FLs])>>@@__'' is serving as your Milkmaid.

		<<= saChoosesOwnClothes($slaves[$i])>>
		<<include "SA rules">>
		<<include "SA diet">>
		<<include "SA long term effects">>
		<<include "SA drugs">>
		<<include "SA relationships">>
		<<include "SA rivalries">>

<<include "SA devotion">>
	<<else>>
		<<silently>>
		<<set _chosenClothes = saChoosesOwnClothes($slaves[$i])>>
		<<include "SA rules">>
		<<include "SA diet">>
		<<include "SA long term effects">>
		<<include "SA drugs">>
		<<include "SA relationships">>
		<<include "SA rivalries">>
		<<include "SA devotion">>
		<</silently>>
	<</if>>
	<<set $Milkmaid = $slaves[_FLs]>>
<</if>>

<<set _oldCash = $cash>>
<<for _dI = 0; _dI < _DL; _dI++>>
	<<set $i = $slaveIndices[$DairyiIDs[_dI]]>>
	/* Special attention section */
	<<if ($legendaryCowID == 0) && ($slaves[$i].lactation > 0) && (($slaves[$i].boobs-$slaves[$i].boobsImplant) > 6000) && ($slaves[$i].devotion > 50) && ($slaves[$i].prestige == 0)>>
		<<set $legendaryCowID = $slaves[$i].ID>>
	<</if>>
	<<if ($legendaryBallsID == 0) && ($slaves[$i].dick != 0) && ($slaves[$i].balls > 5 || ($slaves[$i].balls > 4 && $slaves[$i].prostate > 1)) && ($slaves[$i].devotion > 50) && ($slaves[$i].prestige == 0)>>
		<<set $legendaryBallsID = $slaves[$i].ID>>
	<</if>>

	/* Perform facility based rule changes */
	<<if ($dairySlimMaintain == 0)>>
		<<if $dairyWeightSetting == 0>>
			<<if $slaves[$i].weight <= 30>>
				<<set $slaves[$i].diet = "fattening">>
			<<else>>
				<<set $slaves[$i].diet = "healthy">>
			<</if>>
		<<elseif $dairyWeightSetting == 1>>
			<<if $slaves[$i].weight <= 95>>
				<<set $slaves[$i].diet = "fattening">>
			<<else>>
				<<set $slaves[$i].diet = "healthy">>
			<</if>>
		<<elseif $dairyWeightSetting == 2>>
			<<if $slaves[$i].weight <= 130>>
				<<set $slaves[$i].diet = "fattening">>
			<<else>>
				<<set $slaves[$i].diet = "healthy">>
			<</if>>
		<<elseif $dairyWeightSetting == 3>>
			<<if $slaves[$i].weight <= 160>>
				<<set $slaves[$i].diet = "fattening">>
			<<else>>
				<<set $slaves[$i].diet = "healthy">>
			<</if>>
		<<elseif $dairyWeightSetting == 4>>
			<<if $slaves[$i].weight <= 195>>
				<<set $slaves[$i].diet = "fattening">>
			<<else>>
				<<set $slaves[$i].diet = "healthy">>
			<</if>>
		<<elseif $dairyRestraintsSetting > 1>>
			<<set $slaves[$i].diet = "healthy">>
		<</if>>
	<<elseif $slaves[$i].weight > 10>>
		<<set $slaves[$i].diet = "restricted">>
	<<elseif ($slaves[$i].diet == "fattening") || $slaves[$i].diet == "healthy" || ($dairyRestraintsSetting > 1)>>
		<<set $slaves[$i].diet = "healthy">>
	<</if>>
	<<if $dairyRestraintsSetting > 1>>
		<<set $slaves[$i].collar = "none", $slaves[$i].choosesOwnClothes = 0, $slaves[$i].clothes = "no clothing", $slaves[$i].buttplug = "none", $slaves[$i].vaginalAccessory = "none", $slaves[$i].dickAccessory = "none">>
	<</if>>
	<<switch $dairyDecoration>>
	<<case "Roman Revivalist" "Aztec Revivalist" "Chinese Revivalist" "Chattel Religionist" "Edo Revivalist" "Arabian Revivalist" "Egyptian Revivalist" "Supremacist" "Subjugationist" "Degradationist">>
		<<set $slaves[$i].livingRules = "spare">>
	<<default>>
		<<set $slaves[$i].livingRules = "normal">>
	<</switch>>
	<<if $dairyPregSetting > 0>>
		<<set $reservedChildren = FetusGlobalReserveCount("incubator")>>
		<<set $reservedChildrenNursery = FetusGlobalReserveCount("nursery")>>
		<<set $slaves[$i].reservedChildren = 0>>
		<<set $slaves[$i].reservedChildrenNursery = 0>>
	<</if>>

	/* General End of Week effects */
	<<if $showEWD != 0>>

		/* 000-250-006 */
		<<if $seeImages && $seeReportImages>>

			<<SlaveArt $slaves[$i] 0 0>>

		<</if>>
		/* 000-250-006 */
		''__@@.pink;<<= SlaveFullName($slaves[$i])>>@@__''
		<<if $slaves[$i].choosesOwnAssignment == 2>>
			<<include "SA chooses own job">>
		<<else>>
			is serving as a cow in $dairyName.
		<</if>>

    She <<include "SA get milked">>

		<<include "SA rules">>
		<<include "SA diet">>
		<<include "SA long term effects">>
		<<include "SA drugs">>
		<<include "SA relationships">>
		<<include "SA rivalries">>

<<include "SA devotion">>
	<<else>>
		<<silently>>
		<<include "SA chooses own job">>
		<<include "SA get milked">>
		<<include "SA rules">>
		<<include "SA diet">>
		<<include "SA long term effects">>
		<<include "SA drugs">>
		<<include "SA relationships">>
		<<include "SA rivalries">>
		<<include "SA devotion">>
		<</silently>>
	<</if>>
	<<set _milkWeek += $milk, _cumWeek += $cum>>

	/* Facility Specific End of Week effects */
	<<if ($slaves[$i].devotion <= 20) && ($slaves[$i].trust >= -20)>>
		<<set $slaves[$i].devotion -= 5, $slaves[$i].trust -= 5>>
	<</if>>
	<<if ($slaves[$i].health < -80)>>
		<<set $slaves[$i].health += 20>>
	<<elseif ($slaves[$i].health < -40)>>
		<<set $slaves[$i].health += 10>>
	<<elseif ($slaves[$i].health < 0)>>
		<<set $slaves[$i].health += 7>>
	<<elseif ($slaves[$i].health < 90)>>
		<<set $slaves[$i].health += 3>>
	<</if>>
	<<if ($slaves[$i].inflation > 0)>>
		<<set $slaves[$i].inflation = 0, $slaves[$i].inflationType = "none", $slaves[$i].inflationMethod = 0, $slaves[$i].milkSource = 0>>
		<<run SetBellySize($slaves[$i])>>
	<</if>>
	<<if ($slaves[$i].lactation > 0) && (($dairySlimMaintain == 0) || ($slaves[$i].boobs > 700))>>
		<<if ($slaves[$i].boobs < 2000)>>
			<<set _growth = 100>>
		<<elseif ($slaves[$i].boobs < 5000)>>
			<<set _growth = 50>>
		<<elseif ($slaves[$i].boobs < 10000)>>
			<<set _growth = 25>>
		<<else>>
			<<set _growth = 0>>
		<</if>>
		<<if ($slaves[$i].geneMods.NCS == 1)>>
			<<set _growth = Math.trunc(_growth/2)>>
		<</if>>
		<<set $slaves[$i].boobs += _growth>>
	<</if>>
	<<if $slaves[$i].prostate == 1>>
		<<set $slaves[$i].prostate = 2, $slaves[$i].health -= 10, $cash -= $surgeryCost>>
	<</if>>
	<<if $slaves[$i].vasectomy == 1>>
		<<set $slaves[$i].vasectomy = 0, $slaves[$i].health -= 10, $cash -= $surgeryCost>>
	<</if>>
	<<if ($dairySlimMaintain == 0)>>
		<<if ($slaves[$i].lactation < 2) && ($slaves[$i].boobs > 300 || $slaves[$i].dick == 0 || $slaves[$i].lactation == 1 || $dairyImplantsSetting == 1) && $dairyImplantsSetting != 2>>
			<<set $slaves[$i].lactation = 2, $slaves[$i].health -= 10, $cash -= $surgeryCost>>
		<</if>>
	<</if>>
	<<if ($dairyFeedersUpgrade == 1) && ($dairyFeedersSetting > 0)>>
		<<if ($dairySlimMaintain == 0)>>
			<<if ($slaves[$i].balls == 0)>>
				<<set $slaves[$i].hormones = 2>>
			<</if>>
		<<elseif $slaves[$i].diet == "fattening">>
			<<set $slaves[$i].weight += 2>>
		<</if>>
		<<if ($slaves[$i].health < 75)>>
			<<set $slaves[$i].health += 25>>
		<<else>>
			<<if ($dairySlimMaintain == 0) && $slaves[$i].lactation > 0>>
				<<if $dairyFeedersSetting > 1 && $dairyStimulatorsSetting > 0>>
					<<if $slaves[$i].boobs < 50000>>
						<<if $arcologies[0].FSAssetExpansionistResearch == 1>>
							<<if ($slaves[$i].boobs < 2000)>>
								<<set _growth = 75*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
							<<elseif ($slaves[$i].boobs < 5000)>>
								<<set _growth = 50*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
							<<else>>
								<<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
							<</if>>
						<<else>>
							<<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/4))>>
						<</if>>
						<<if $slaves[$i].boobs <= 20000 && $slaves[$i].boobs+_growth > 20000>>
							<<set _boobtacular++>>
						<</if>>
						<<if ($slaves[$i].geneMods.NCS == 1)>>
							<<set _growth = Math.trunc(_growth/2)>>
						<</if>>
						<<set $slaves[$i].boobs += _growth>>
					<<else>>
						<<set $slaves[$i].boobs = 50000>>
					<</if>>
				<<elseif $dairyFeedersSetting > 0 && $dairyStimulatorsSetting > 0>>
					<<if $slaves[$i].boobs < 25000>>
						<<if $arcologies[0].FSAssetExpansionistResearch == 1>>
							<<if ($slaves[$i].boobs < 2000)>>
								<<set _growth = 75*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
							<<elseif ($slaves[$i].boobs < 5000)>>
								<<set _growth = 50*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
							<<else>>
								<<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
							<</if>>
						<<else>>
							<<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/4))>>
						<</if>>
						<<if $slaves[$i].boobs <= 20000 && $slaves[$i].boobs+_growth > 20000>>
							<<set _boobtacular++>>
						<</if>>
						<<if ($slaves[$i].geneMods.NCS == 1)>>
							<<set _growth = Math.trunc(_growth/2)>>
						<</if>>
						<<set $slaves[$i].boobs += _growth>>
					<</if>>
				<<elseif $dairyFeedersSetting > 1>>
					<<if $slaves[$i].boobs < 10000>>
						<<if $arcologies[0].FSAssetExpansionistResearch == 1>>
							<<if ($slaves[$i].boobs < 2000)>>
								<<set _growth = 75*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
							<<elseif ($slaves[$i].boobs < 5000)>>
								<<set _growth = 50*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
							<<else>>
								<<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
							<</if>>
						<<else>>
							<<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/4))>>
						<</if>>
						<<if $slaves[$i].boobs <= 20000 && $slaves[$i].boobs+_growth > 20000>>
							<<set _boobtacular++>>
						<</if>>
						<<if ($slaves[$i].geneMods.NCS == 1)>>
							<<set _growth = Math.trunc(_growth/2)>>
						<</if>>
						<<set $slaves[$i].boobs += _growth>>
					<</if>>
				<<else>>
					<<if $slaves[$i].boobs < 5000>>
						<<if $arcologies[0].FSAssetExpansionistResearch == 1>>
							<<if ($slaves[$i].boobs < 2000)>>
								<<set _growth = 75*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
							<<elseif ($slaves[$i].boobs < 5000)>>
								<<set _growth = 50*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
							<<else>>
								<<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
							<</if>>
						<<else>>
							<<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/4))>>
						<</if>>
						<<if $slaves[$i].boobs <= 20000 && $slaves[$i].boobs+_growth > 20000>>
							<<set _boobtacular++>>
						<</if>>
						<<if ($slaves[$i].geneMods.NCS == 1)>>
							<<set _growth = Math.trunc(_growth/2)>>
						<</if>>
						<<set $slaves[$i].boobs += _growth>>
					<</if>>
				<</if>>
			<</if>>
			<<if ($slaves[$i].balls > 0)>>
				<<if $arcologies[0].FSAssetExpansionistResearch == 1>>
					<<if ($slaves[$i].geneMods.NCS == 0) && ($slaves[$i].balls < 125)>>
						<<set $slaves[$i].balls++>>
					<<elseif ($slaves[$i].geneMods.NCS == 1) && ($slaves[$i].balls < 125) && (random(1,600) > (30+(10*$slaves[$i].balls)-(10*$dairyRestraintsSetting)-($injectionUpgrade*10)))>>
						<<set $slaves[$i].balls++>>
					<</if>>
					<<if ($slaves[$i].balls == 125)>>
						<<set _balltacular++>>
					<</if>>
				<<elseif ($slaves[$i].balls < 10)>>
					<<if ($slaves[$i].geneMods.NCS == 0) && (random(1,100) > (40+(10*$slaves[$i].balls)-(10*$dairyRestraintsSetting)-($injectionUpgrade*10)))>>
						<<set $slaves[$i].balls++>>
					<<elseif ($slaves[$i].geneMods.NCS == 1) && ($slaves[$i].balls < 125) && (random(1,50) > (40+(10*$slaves[$i].balls)-(10*$dairyRestraintsSetting)-($injectionUpgrade*10)))>>
						<<set $slaves[$i].balls++>>
					<</if>>
					<<if ($slaves[$i].balls == 10)>>
						<<set _balltacular++>>
					<</if>>
				<</if>>
				<<if $slaves[$i].dick > 0>>
					<<if $slaves[$i].dick < 10>>
						<<if (($slaves[$i].geneMods.NCS == 0) && (random(1,100) > (40+(10*$slaves[$i].dick)-(10*$dairyRestraintsSetting)-($injectionUpgrade*10))))>>
							<<set $slaves[$i].dick++>>
						<<elseif (($slaves[$i].geneMods.NCS == 1) && (random(1,50) > (40+(10*$slaves[$i].dick)-(10*$dairyRestraintsSetting)-($injectionUpgrade*10))))>>
							<<set $slaves[$i].dick++>>
						<</if>>
					<</if>>
				<</if>>
			<</if>>
		<</if>>
	<</if>> /* closes ($dairyFeedersUpgrade == 1) && ($dairyFeedersSetting > 0) */
	<<if ($dairyStimulatorsUpgrade == 1) && $dairyStimulatorsSetting > 0>>
		<<if ($dairyStimulatorsSetting > 1) && ($slaves[$i].anus < 4)>>
			<<set $slaves[$i].anus++>>
			<<if ($slaves[$i].anus == 4)>>
				<<set _anusesStretched++>>
			<</if>>
		<<elseif ($slaves[$i].anus < 3)>>
			<<set $slaves[$i].anus++>>
		<</if>>
		<<if ($slaves[$i].health < 60)>>
			<<set $slaves[$i].health += 20>>
		<<elseif $dairySlimMaintain == 0 && $slaves[$i].lactation > 0>>
			<<if $dairyFeedersSetting > 1>>
				<<if $slaves[$i].boobs < 50000>>
					<<if $arcologies[0].FSAssetExpansionistResearch == 1>>
						<<if ($slaves[$i].boobs < 2000)>>
							<<set _growth = 75*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
						<<elseif ($slaves[$i].boobs < 5000)>>
							<<set _growth = 50*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
						<<else>>
							<<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
						<</if>>
					<<else>>
						<<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/4))>>
					<</if>>
					<<if $slaves[$i].boobs <= 20000 && $slaves[$i].boobs+_growth > 20000>>
						<<set _boobtacular++>>
					<</if>>
					<<if ($slaves[$i].geneMods.NCS == 1)>>
						<<set _growth = Math.trunc(_growth/2)>>
					<</if>>
					<<set $slaves[$i].boobs += _growth>>
				<</if>>
			<<elseif $dairyFeedersSetting > 0>>
				<<if $slaves[$i].boobs < 25000>>
					<<if $arcologies[0].FSAssetExpansionistResearch == 1>>
						<<if ($slaves[$i].boobs < 2000)>>
							<<set _growth = 75*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
						<<elseif ($slaves[$i].boobs < 5000)>>
							<<set _growth = 50*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
						<<else>>
							<<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
						<</if>>
					<<else>>
						<<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/4))>>
					<</if>>
					<<if $slaves[$i].boobs <= 20000 && $slaves[$i].boobs+_growth > 20000>>
						<<set _boobtacular++>>
					<</if>>
					<<if ($slaves[$i].geneMods.NCS == 1)>>
						<<set _growth = Math.trunc(_growth/2)>>
					<</if>>
					<<set $slaves[$i].boobs += _growth>>
				<</if>>
			<<else>>
				<<if $slaves[$i].boobs < 10000>>
					<<if $arcologies[0].FSAssetExpansionistResearch == 1>>
						<<if ($slaves[$i].boobs < 2000)>>
							<<set _growth = 75*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
						<<elseif ($slaves[$i].boobs < 5000)>>
							<<set _growth = 50*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
						<<else>>
							<<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50)/4))>>
						<</if>>
					<<else>>
						<<set _growth = 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[$i].physicalAge)/4))>>
					<</if>>
					<<if $slaves[$i].boobs <= 20000 && $slaves[$i].boobs+_growth > 20000>>
						<<set _boobtacular++>>
					<</if>>
					<<if ($slaves[$i].geneMods.NCS == 1)>>
						<<set _growth = Math.trunc(_growth/2)>>
					<</if>>
					<<set $slaves[$i].boobs += _growth>>
				<</if>>
			<</if>>
		<</if>>
	<</if>>
	<<if ($dairyRestraintsSetting > 1)>>
		<<if $slaves[$i].lactation > 0>>
			<<set $slaves[$i].lactationAdaptation += 1>>
		<</if>>
		<<if ($slaves[$i].muscles > -100)>>
			<<set $slaves[$i].muscles-->>
		<</if>>
		<<if ($slaves[$i].fetish == "mindbroken")>>
			<<if ($slaves[$i].boobs > 48000) && (($slaves[$i].balls >= 10) || ($slaves[$i].balls == 0))>>
				<<set $bioreactorPerfectedID = $slaves[$i].ID>>
			<</if>>
		<<else>>
			<<if ($slaves[$i].sexualFlaw != "self hating")>>
			<<if ($slaves[$i].sexualFlaw != "cum addict") || ($dairyFeedersSetting == 0)>>
			<<if ($slaves[$i].sexualFlaw != "anal addict") || ($dairyStimulatorsSetting == 0)>>
			<<if ($slaves[$i].sexualFlaw != "breeder") || ($slaves[$i].preg < 0) || ($dairyPregSetting == 0)>>
				<<if $dairyStimulatorsSetting > 1>>
					<<if ($slaves[$i].sexualFlaw != "hates anal") && ($slaves[$i].sexualQuirk != "painal queen")>>
						<<set $slaves[$i].sexualFlaw = "hates anal">>
					<</if>>
				<</if>>
				<<if $dairyPregSetting > 1>>
					<<if ($slaves[$i].sexualFlaw != "hates penetration") && ($slaves[$i].sexualQuirk != "strugglefuck queen")>>
						<<set $slaves[$i].sexualFlaw = "hates penetration">>
					<</if>>
				<</if>>
				<<if $dairyFeedersSetting > 1>>
					<<if ($slaves[$i].sexualFlaw != "hates oral") && ($slaves[$i].sexualQuirk != "gagfuck queen")>>
						<<set $slaves[$i].sexualFlaw = "hates oral">>
					<</if>>
				<</if>>
			<</if>>
			<</if>>
			<</if>>
			<</if>>
		<</if>>
		<<if $slaves[$i].chem > 250>>
			<<set _chemSevere++>>
		<<elseif $slaves[$i].chem > 100>>
			<<set _chemMinor++>>
		<</if>>
	<</if>>
	<<if ($dairyStimulatorsSetting + $dairyFeedersSetting + $dairyPregSetting) > 5>>
		<<if $slaves[$i].devotion <= 95 && $slaves[$i].sexualFlaw != "self hating">>
			<<if ($slaves[$i].sexualFlaw != "breeder") || ($slaves[$i].preg < 0)>>
				<<if ($slaves[$i].devotion > -75)>>
					<<set $slaves[$i].devotion -= 10>>
					<<if ($slaves[$i].devotion < -65)>>
						<<set _hatefilled++>>
					<</if>>
				<<elseif ($slaves[$i].trust > -75)>>
					<<set $slaves[$i].trust -= 10>>
					<<if ($slaves[$i].trust < -65)>>
						<<set _horrified++>>
					<</if>>
				<<elseif ($slaves[$i].vaginalSkill > 0)>>
					<<set $slaves[$i].vaginalSkill -= 10, _skillsLost++>>
				<<elseif ($slaves[$i].oralSkill > 0)>>
					<<set $slaves[$i].oralSkill -= 10, _skillsLost++>>
				<<elseif ($slaves[$i].analSkill > 0)>>
					<<set $slaves[$i].analSkill -= 10, _skillsLost++>>
				<<elseif ($slaves[$i].career != "a bioreactor")>>
					<<set $slaves[$i].career = "a bioreactor", _careerForgotten++>>
				<<elseif ($slaves[$i].intelligenceImplant > 0)>>
					<<set $slaves[$i].intelligenceImplant = Math.clamp($slaves[$i].intelligenceImplant-5, 0, 30), _skillsLost++>>
				<<elseif ($slaves[$i].intelligence >= -15)>>
					<<set $slaves[$i].intelligence -= 5, _intelligenceLost++>>
				<<elseif ($slaves[$i].devotion >= -20)>>
					<<set $slaves[$i].devotion -= 10>>
				<<elseif ($slaves[$i].trust >= -20)>>
					<<set $slaves[$i].trust -= 10>>
				<<elseif ($slaves[$i].whoreSkill > 0)>>
					<<set $slaves[$i].whoreSkill -= 10, _skillsLost++>>
				<<elseif ($slaves[$i].entertainSkill > 0)>>
					<<set $slaves[$i].entertainSkill -= 10, _skillsLost++>>
				<<elseif ($slaves[$i].intelligence >= -50)>>
					<<set $slaves[$i].intelligence -= 5>>
					<<if $slaves[$i].intelligence < -50>>
						<<set _stupidified++>>
					<</if>>
				<<elseif ($slaves[$i].fetish != "mindbroken")>>
					<<set $slaves[$i].fetish = "mindbroken", _mindbroken++>>
				<</if>>
			<</if>>
		<</if>>
		<<if (($slaves[$i].milk > 1000) && ($slaves[$i].boobs > 12000) || ($slaves[$i].cum > 1000) && ($slaves[$i].balls >= 10)) && ($slaves[$i].career != "a bioreactor")>>
			<<set $slaves[$i].career = "a bioreactor", _careerForgotten++>>
		<</if>>
		<<if ($arcologies[0].FSBodyPuristLaw == 0) && ($healthyDrugsUpgrade == 0)>>
			<<set $slaves[$i].chem += 5>>
		<<else>>
			<<set $slaves[$i].chem += 2>>
		<</if>>
	<<elseif ($dairyStimulatorsSetting + $dairyFeedersSetting + $dairyPregSetting) > 3>>
		<<if ($slaves[$i].devotion < 75)>>
			<<if ($slaves[$i].devotion > -75)>>
				<<set $slaves[$i].devotion -= 5>>
				<<if ($slaves[$i].devotion < -70)>>
					<<set _hatefilled++>>
				<</if>>
			<<elseif ($slaves[$i].trust > -75)>>
				<<set $slaves[$i].trust -= 5>>
				<<if ($slaves[$i].trust < -70)>>
					<<set _horrified++>>
				<</if>>
			<<elseif ($slaves[$i].vaginalSkill >= 20)>>
				<<set $slaves[$i].vaginalSkill -= 10, _skillsLost++>>
			<<elseif ($slaves[$i].oralSkill >= 20)>>
				<<set $slaves[$i].oralSkill -= 10, _skillsLost++>>
			<<elseif ($slaves[$i].analSkill >= 20)>>
				<<set $slaves[$i].analSkill -= 10, _skillsLost++>>
			<<elseif ($slaves[$i].career != "a bioreactor")>>
				<<set $slaves[$i].career = "a bioreactor", _careerForgotten++>>
			<<elseif ($slaves[$i].intelligenceImplant > 0)>>
				<<set $slaves[$i].intelligenceImplant = Math.clamp($slaves[$i].intelligenceImplant-5, 0, 30), _skillsLost++>>
			<<elseif ($slaves[$i].intelligence >= -15)>>
				<<set $slaves[$i].intelligence -= 5, $intelligenceLost++>>
			<<elseif ($slaves[$i].devotion >= -20)>>
				<<set $slaves[$i].devotion -= 8>>
			<<elseif ($slaves[$i].trust >= -20)>>
				<<set $slaves[$i].trust -= 8>>
			<<elseif ($slaves[$i].whoreSkill >= 20)>>
				<<set $slaves[$i].whoreSkill -= 10, _skillsLost++>>
			<<elseif ($slaves[$i].entertainSkill >= 20)>>
				<<set $slaves[$i].entertainSkill -= 10, _skillsLost++>>
			<<elseif ($slaves[$i].intelligence >= -50)>>
				<<set $slaves[$i].intelligence -= 5>>
				<<if $slaves[$i].intelligence < -50>>
					<<set _stupidified++>>
				<</if>>
			<<elseif ($slaves[$i].fetish != "mindbroken")>>
				<<set $slaves[$i].fetish = "mindbroken", _mindbroken++>>
			<</if>>
		<<elseif (($slaves[$i].milk > 1000) && ($slaves[$i].boobs > 12000) || ($slaves[$i].cum > 1000) && ($slaves[$i].balls >= 10)) && ($slaves[$i].career != "a bioreactor")>>
			<<set $slaves[$i].career = "a bioreactor", _careerForgotten++>>
		<</if>>
		<<if ($arcologies[0].FSBodyPuristLaw == 0) && ($healthyDrugsUpgrade == 0)>>
			<<set $slaves[$i].chem += 2>>
		<<else>>
			<<set $slaves[$i].chem++>>
		<</if>>
	<</if>> /* closes ($dairyStimulatorsSetting + $dairyFeedersSetting + $dairyPregSetting) > 5 */
	<<if ($dairyPregUpgrade == 1) && ($dairyPregSetting > 0)>>
		<<if ($slaves[$i].ovaries == 1) && ($slaves[$i].vagina > -1)>>
			<<set _femCumWeek += Math.trunc((70-$slaves[$i].physicalAge)/(30-($slaves[$i].vaginaLube*10)))>>
			<<if ($slaves[$i].preg == -2)>>
				<<set $slaves[$i].preg = 0, _desterilized++>>
			<</if>>
			<<if isFertile($slaves[$i])>>
				<<if $slaves[$i].eggType == "human">>
					<<set $slaves[$i].preg = 1, $slaves[$i].pregWeek = 1, $slaves[$i].pregKnown = 1>>
					<<if ($dairyPregSetting > 2)>>
						<<set $slaves[$i].pregType = random(10,29)>>
					<<elseif ($dairyPregSetting > 1)>>
						<<set $slaves[$i].pregType = random(3,6)>>
					<<else>>
						<<set $slaves[$i].pregType = either(1, 1, 1, 1, 2, 2, 2, 3, 3, 4)>>
					<</if>>
					<<set $slaves[$i].pregSource = -2>>
					<<set WombImpregnate($slaves[$i], $slaves[$i].pregType, -2, 1)>>
				<</if>> /*closes eggType */
				<<if ($slaves[$i].vagina == 0)>>
					<<set $slaves[$i].vagina++>>
				<</if>>
			<<elseif ($slaves[$i].pregKnown == 1)>>
				<<if ($dairyPregSetting > 2)>>
					<<set $cash += 100>>
				<<elseif ($dairyPregSetting > 1)>>
					<<set $cash += 50>>
				<<else>>
					<<set $cash += 25>>
				<</if>>
				<<if ($dairyPregSetting > 1) && ($slaves[$i].vagina < 4)>>
					<<set $slaves[$i].vagina++>>
					<<if ($slaves[$i].vagina == 4)>>
						<<set _vaginasStretched++>>
					<</if>>
				<<elseif ($slaves[$i].vagina < 3)>>
					<<set $slaves[$i].vagina++>>
				<</if>>
			<</if>>
		<</if>>
	<</if>>
<</for>>

<<if $inflatedSlavesMilk > 0>>
	<<set _milkWeek -= ((8*$inflatedSlavesMilk*10)+8)>>
<</if>>
<<if $inflatedSlavesCum > 0>>
	<<set _cumWeek -= ((80*$inflatedSlavesCum*10)+80)>>
	<<if _cumWeek < 0>>
		<<set _cumWeek = 0>>
	<</if>>
<</if>>

<<if (_Tadd > 0)>>
	<<set _tempCash = $cash>>
	<<set _seed = (100*$bioreactorsXY) + (100*$bioreactorsHerm), _cumWeek += _seed>>
	<<if ($arcologies[0].FSPastoralistLaw == 1)>>
		<<set $cash += _seed*random(40,50)>>
	<<elseif ($arcologies[0].FSPastoralist != "unset")>>
		<<set $cash += _seed*(random(25,35)+Math.trunc($arcologies[0].FSPastoralist/10))>>
	<<else>>
		<<set $cash += _seed*random(25,35)>>
	<</if>>
	<<set _seed = (2*$bioreactorsXX) + (2*$bioreactorsHerm), _femCumWeek += _seed>>
	<<if ($arcologies[0].FSPastoralistLaw == 1)>>
		<<set $cash += _seed*random(40,50)>>
	<<elseif ($arcologies[0].FSPastoralist != "unset")>>
		<<set $cash += _seed*(random(25,35)+Math.trunc($arcologies[0].FSPastoralist/10))>>
	<<else>>
		<<set $cash += _seed*random(25,35)>>
	<</if>>
	<<set _seed = (800*$bioreactorsXX) + (700*$bioreactorsBarren) + (600*$bioreactorsXY) + (600*$bioreactorsHerm), _milkWeek += _seed>>
	<<if ($arcologies[0].FSPastoralistLaw == 1)>>
		<<set $cash += _seed*(13+Math.trunc($arcologies[0].FSPastoralist/30))>>
	<<elseif ($arcologies[0].FSPastoralist != "unset")>>
		<<set $cash += _seed*(8+Math.trunc($arcologies[0].FSPastoralist/30))>>
	<<else>>
		<<set $cash += _seed*9>>
	<</if>>

_Tadd permanently converted biological "machine<<if _Tadd > 1>>s<</if>>" produce<<if _Tadd == 1>>s<</if>> @@.yellowgreen;<<print cashFormat($cash-_tempCash)>>@@ income.
<</if>>

<<if $inflatedSlavesMilk > 0>>
	<<set $cash -= Math.trunc(((600*($inflatedSlavesMilk)+8)+random(50,200)))>>
<</if>>
<<if $inflatedSlavesCum > 0>>
	<<set $cash -= Math.trunc(((300*($inflatedSlavesCum+8))+random(25,100)))>>
<</if>>

<<set _profits = $cash-_oldCash>>

<<if _chemSevere > 1>>
	_chemSevere cows' productivity is being reduced by the long term effects of industrial use.
<<elseif _chemSevere > 0>>
	One cow's productivity is being reduced by the long term effects of industrial use.
<</if>>
<<if _chemMinor > 1>>
	_chemMinor cows have been drugged and used long enough that they require increased curative doses, slightly reducing their output.
<<elseif _chemMinor > 0>>
	One cow has been drugged and used long enough that she requires increased curative doses, slightly reducing her output.
<</if>>
<<if _desterilized > 1>>
	_desterilized cows had minor health issues preventing their fertile womb from conceiving; the issues have been resolved and they have been impregnated.
<<elseif _chemMinor > 0>>
	One cow had minor health issues preventing her fertile womb from conceiving; they have been resolved and she has been impregnated.
<</if>>
<<if _hatefilled > 1>>
	_hatefilled cows stopped struggling so much when fucked by the machines; it seems they have sunk into a fugue.
<<elseif _hatefilled > 0>>
	One cow stopped struggling so much when fucked by the machines; it seems she has sunk into a fugue.
<</if>>
<<if _horrified > 1>>
	_horrified cows' emotional activity dropped significantly; this indicates acceptance that they are not likely to leave $dairyName, ever again.
<<elseif _horrified > 0>>
	One cow's emotional activity dropped significantly; this indicates acceptance that she is not likely to leave $dairyName, ever again.
<</if>>
<<if _skillsLost > 1>>
	_skillsLost cows forgot skills due to their inability to focus on anything but machine rape.
<<elseif _skillsLost > 0>>
	One cow forgot skills due to her inability to focus on anything but machine rape.
<</if>>
<<if _careerForgotten > 1>>
	_careerForgotten cows forgot the details of their past professional lives; all they can remember now is this.
<<elseif _careerForgotten > 0>>
	One cow forgot the details of her past professional life; all she can remember now is this.
<</if>>
<<if _vaginasStretched > 1>>
	_vaginasStretched cows' vaginas were broken in for machine use, and are unlikely to be any use for anything other than receiving cum and medication, and giving birth.
<<elseif _vaginasStretched > 0>>
	One cow's vagina was broken in for machine use, and is unlikely to be any use for anything other than receiving cum and medication, and giving birth.
<</if>>
<<if _anusesStretched > 1>>
	_anusesStretched cows' anuses were loosened by machine sodomy, and are now permanently gaped.
<<elseif _anusesStretched > 0>>
	One cow's anus was loosened by machine sodomy, and is now permanently gaped.
<</if>>
<<if $intelligenceLost > 1>>
	$intelligenceLost cows suffered some loss of intelligence due to accumulated mental stress from life attached to a milking machine.
<<elseif $intelligenceLost > 0>>
	One cow suffered some loss of intelligence due to accumulated mental stress from life attached to a milking machine.
<</if>>
<<if _stupidified > 1>>
	_stupidified cows were so mentally dulled by use as biological factories that they were reduced to a very low level of intelligence.
<<elseif _stupidified > 0>>
	One cow was so mentally dulled by use as biological factories that she was reduced to a very low level of intelligence.
<</if>>
<<if _mindbroken > 1>>
	_mindbroken cows finally lost higher mental function, and are now nothing more than industrial equipment made of meat.
<<elseif _mindbroken > 0>>
	One cow finally lost higher mental function, and is now nothing more than industrial equipment made of meat.
<</if>>
<<if _boobtacular > 1>>
	_boobtacular cows grew past 30 kilograms of breasts, a remarkable advance in capacity.
<<elseif _boobtacular > 0>>
	One cow grew past 30 kilograms of breasts, a remarkable advance in capacity.
<</if>>
<<if _balltacular > 1>>
	_balltacular cows' testicles reached the largest size drug treatments can produce; the machines will now focus on buttfucking them with extra force.
<<elseif _balltacular > 0>>
	One cow's testicles reached the largest size drug treatments can produce; the machines will now focus on buttfucking her with extra force.
<</if>>

<<if ($dairyPregUpgrade == 1)>>
<<if ($dairyPregSetting >= 2)>>
	Fertile cows make you a significant profit through contract pregnancies.
<<elseif ($dairyPregSetting == 1)>>
	Fertile cows make you a small profit through contract pregnancies.
<</if>>
<</if>>
<<set _cumWeek = Math.trunc(_cumWeek/10)>>
<<set $cumPipeline = _cumWeek, $milkPipeline = _milkWeek>>
<<if $inflatedSlavesMilk > 0>>
	<<set _outputMilk = ((8*$inflatedSlavesMilk*10)+8)>>
<<else>>
	<<set _outputMilk = 0>>
<</if>>
<<if $inflatedSlavesCum > 0>>
	<<set _outputCum = (((80*$inflatedSlavesCum*10)+80)/10)>>
<<else>>
	<<set _outputCum = 0>>
<</if>>
$dairyNameCaps produced <<print _milkWeek+_outputMilk>> liters of milk<<if _cumWeek > 0>> and <<print _cumWeek+_outputCum>> liters of cum<</if>> this week.
<<if $inflatedSlavesMilk > 0>>
	_outputMilk liters of milk were pumped into your penthouse for filling slaves this week.
<</if>>
<<if $inflatedSlavesCum > 0>>
	<<if $inflatedSlavesMilk > 0>>and <</if>>_outputCum liters of cum were pumped into your penthouse<<if $inflatedSlavesMilk > 0>> as well<<else>> this week<</if>>.
<</if>>
<<if _femCumWeek > 0>>
	The machines also managed to reclaim _femCumWeek liters of salable vaginal secretions.
<</if>>
<<if _births > 1>>
	Additionally, _birthers cows gave birth<<if _births > _birthers>> to a total of _births calves<</if>> this week.
<<elseif _births > 0>>
	Additionally, one cow gave birth<<if _births > _birthers>> to a total of _births calves<</if>> this week.
<</if>>

<<if $arcologies[0].FSRestart != "unset" && $eugenicsFullControl != 1>>
	<<if $dairyPregSetting > 0>>
		The Societal Elite know what you are doing with your cows. @@.red;They do not approve@@.
		<<set $failedElite += 5>>
	<</if>>
	<<if _milkmaidImpregnates == 1>>
		The Societal Elite know you've ordered $Milkmaid.slaveName to impregnate your cows. @@.red;They are not amused by your disinterest in eugenics@@.
		<<set $failedElite += 10>>
	<</if>>
<</if>>

<>
<<if (_profits > 0)>>
	The sale of these products makes a profit of @@.yellowgreen;<<print cashFormat(_profits)>>@@.
<<elseif (_profits < 0)>>
	Due to one-off costs of hormonal implants to encourage fluid production, your dairy made a loss of @@.red;<<print cashFormat(_profits)>>@@.
<<else>>
	Due to one-off costs of hormonal implants to encourage fluid production paired with existing output, your dairy broke even this week.
<</if>>

<<if ($arcologies[0].FSPastoralistLaw == 1)>>
	Slave products have completely replaced traditional dairy, making the facility extremely lucrative.
<</if>>

<<if ($dairySlimMaintainUpgrade == 1 && $dairySlimMaintain == 1)>>

	<<if $arcologies[0].FSSlimnessEnthusiast > 80>>
		Because of your arcology's great enthusiasm for small breasted slaves, the dairy's milking systems have been carefully overhauled and optimized for maximum milk extraction from slaves with smaller endowments--providing a significant boost to their otherwise modest output. This also prevents unfashionable breast expansion of already slim slaves through the milking process.
	<<elseif $arcologies[0].FSSlimnessEnthusiast > 20>>
		In keeping with your arcology's ideals, $dairyName has been modified to handle slim slaves with minimal impact to their body shapes. This limits potential profitability, but prevents unfashionable breast expansion of already slim slaves through the milking process.
	<<else>>
		Due to your arcology's lack of enthusiasm for small breasted slaves the dairy has discontinued using milking techniques that prevent breast growth through the milking process.
		<<set $dairySlimMaintain = 0, $dairySlimMaintainUpgrade = 0>>
	<</if>>
<</if>>

<<if ($createBioreactors == 1) && ($bioreactorPerfectedID != 0)>>
	<<for _dI = 0; _dI < _DL; _dI++>>
		<<set $i = $slaveIndices[$DairyiIDs[_dI]]>>
		<<if ($slaves[$i].ID == $bioreactorPerfectedID)>>

    <<= SlaveFullName($slaves[$i])>>'s breasts<<if $slaves[$i].balls > 0>>, balls<</if>><<if $slaves[$i].ovaries == 1>>, belly<</if>>, body, and mind have been completely adapted to synthesize useful products. She has been reclassified as part of the machine she's now permanently attached to. This combination is projected to produce approximately
			<<if $slaves[$i].balls > 0>><<print 1000*Math.trunc((3*52*(45-$slaves[$i].physicalAge))/1000)>> liters of cum,<</if>>
			<<if $slaves[$i].ovaries == 1>><<print 100*Math.trunc((52*(45-$slaves[$i].physicalAge))/100)>> liters of vaginal secretions, <<if $dairyPregSetting == 3>><<print 13*(45-$slaves[$i].physicalAge)>><<else>><<print 5*(45-$slaves[$i].physicalAge)>><</if>> slaves,<</if>>
			and <<print 1000*Math.trunc((300*52*(45-$slaves[$i].physicalAge))/1000)>> liters of milk over a <<print 45-$slaves[$i].physicalAge>> year period before its biological components must be replaced.
			<<if ($slaves[$i].ovaries == 1)>>
				<<if ($slaves[$i].balls == 0)>>
					<<set $bioreactorsXX++>>
				<<else>>
					<<set $bioreactorsHerm++>>
				<</if>>
			<<else>>
				<<if ($slaves[$i].balls == 0)>>
					<<set $bioreactorsBarren++>>
				<<else>>
					<<set $bioreactorsXY++>>
				<</if>>
			<</if>>
			<<set $activeSlave = $slaves[$i]>>
			<<include "Remove activeSlave">>
			<<break>>
		<</if>>
	<</for>>
<</if>>

<<if $dairyDecoration != "standard">>

    $dairyNameCaps's @@.green;$dairyDecoration style is well known.@@
<</if>>

<<if _DL > 0>>

	<<DairyStatistics 0>>
	<<timed 50ms>>
		<<replace #dairystats>>
			<<DairyStatistics 1>>
		<</replace>>
	<</timed>>
<</if>>
<<if (_DL + _Tadd) > 0 || $Milkmaid != 0>>

<</if>>