code:
:: Dairy

<<nobr>>
<<set $nextButton to "Back to Main", $nextLink to "Main", $returnTo to "Dairy", $showEncyclopedia to 1, $encyclopedia to "Slave Dairy">>
<<silently>>
DairyRestraintsSetting($dairyRestraintsSetting)
<</silently>>

<<if $dairyName != "the Dairy">>
	<<set $dairyNameCaps to $dairyName.replace("the ", "The ")>>
<</if>>

<<set $dairySlaves to 0>>
<<set $notdairySlaves to 0>>
<<for _i to 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].assignment is "work in the dairy">>
		<<set $dairySlaves++>>
	<<else>>
		<<set $notdairySlaves++>>
	<</if>>
<</for>>

<<if ($dairyRestraintsSetting != 2) || ($dairyRestraintsUpgrade != 1)>>
	<<if $dairyStimulatorsSetting is 2>>
		<<set $dairyStimulatorsSetting to 1>>
	<</if>>
	<<if $dairyPregSetting >= 2>>
		<<set $dairyPregSetting to 1>>
	<</if>>
	<<if $dairyFeedersSetting is 2>>
		<<set $dairyFeedersSetting to 1>>
	<</if>>
<</if>>

<<if ($Milkmaid != 0) && ($dairyRestraintsSetting is 2)>>
<<for _i to 0; _i < $slaves.length; _i++>>
<<if $slaves[_i].assignment is "be the Milkmaid">>
	<<set $slaves[_i].assignment to "rest", $slaves[_i].assignmentVisible to 1>>
	$slaves[_i].slaveName has been removed from her position as Milkmaid, since an industrialized dairy automates her duties.

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

<<for _i to 0; _i < $slaves.length; _i++>>
	<<if ($slaves[_i].assignment is "work in the dairy") && ($dairyPregSetting > 0)>>
		<<set $reservedChildren -= $slaves[_i].reservedChildren>>
		<<set $slaves[_i].reservedChildren = 0>>
		<<if (($slaves[_i].pregType >= 50) || ($slaves[_i].bellyImplant != 0))>>
			<<set $slaves[_i].assignment to "rest", $slaves[_i].assignmentVisible to 1>>
			$slaves[_i].slaveName's milking machine ejects her, since it detected a foreign body in her womb blocking its required functions.
		<</if>>
	<</if>>
<</for>>

<<if ($dairySlaves > 1)>>
	<<if $dairyFeedersSettingChanged == 1>>
		In unison, the milking machines press their feeding phalli into the slaves' mouths and down their throats. Once situated, they begin to facefuck the slaves, who gag and struggle as they figure out how to breathe while this is going on. Once each slave is no longer panicking and is inhaling and exhaling regularly, there is a hydraulic sound and the transparent reservoir of feeding fluid near her head begins to drain. The slaves swallow desperately, their bellies beginning to swell with nutrition and drugs.

	<<elseif $dairyFeedersSettingChanged is -1>>
		In unison, the milking machines withdraw their feeders from the slaves' throats. The slaves gag and cough, strings of feeding fluid and saliva running between their lips and the heads of the feeding phalli. These remain close to their faces so that the slaves can suck them off once they get hungry, which they will, very soon. The slaves' mouths and tongues are very tired, and most of them rest with their mouths open and their tongues hanging out.

	<</if>>
	<<if $dairyPregSettingChanged == 1>>
		<<for _i to 0; _i < $slaves.length; _i++>>
		<<if ($slaves[_i].assignment is "work in the dairy") && ($slaves[_i].vagina > -1) && ($slaves[_i].vagina < 3)>>
			<<set $slaves[_i].assignment to "rest", $slaves[_i].assignmentVisible to 1, $dairySlaves-->>
			$slaves[_i].slaveName's milking machine ejects her, since it cannot fit the mandated dildo into her tight cunt.
		<</if>>
		<</for>>
		In unison, the milking machines withdraw their dildos from the pregnant slaves' vaginas. The auxiliary drug injectors hiss as the slaves are filled with drugs that promote natural lubrication. The slaves begin to shift awkwardly as they feel their pussies begin to drool slick female fluids. Once a machine judges that its slave's cunt is sufficiently wet, it readies a gigantic dildo. The slaves cannot see their own groins, but as soon as the heads of the dildos touch their pussylips, they begin to
		<<if $dairyFeedersSetting < 2>>
			struggle instinctively against their restraints, and the more energetic ones begin to weep.
		<<else>>
			struggle instinctively against their restraints.
		<</if>>
		As the massive phalli begin to ejaculate fertility drugs and semen, they drive all resistance out of the poor girls.

	<<elseif $dairyPregSettingChanged is -1>>
		In unison, the milking machines withdraw their monstrous dildos from the pregnant slaves' stretched cunts. Their pussies' overcharged production of natural lubricant produces a gush of pent-up female fluids from each loose vagina as the phalli slide clear.
		<<if $dairyFeedersSetting < 2>>
			The slaves moan with relief at the sudden reduction in fullness. Being penetrated like that while pregnant must be quite uncomfortable.
		<<else>>
			The slaves are silent, since their mouths and throats are being fucked by the feeders, but most of them relax a little in their restraints.
		<</if>>
		The machines do replace the withdrawn dildos with more reasonably sized phalli and resume thrusting, but the slaves are relieved anyway.

	<</if>>
	<<if $dairyStimulatorsSettingChanged == 1>>
		<<for _i to 0; _i < $slaves.length; _i++>>
		<<if ($slaves[_i].assignment is "work in the dairy") && ($slaves[_i].anus < 3)>>
			<<set $slaves[_i].assignment to "rest", $slaves[_i].assignmentVisible to 1, $dairySlaves-->>
			$slaves[_i].slaveName's milking machine ejects her, since it cannot fit its massive anal dildo up her tight asshole.
		<</if>>
		<</for>>
		In unison, the milking machines shove their dildos deep into slaves' anuses, ejaculating large quantities of lubricant deep inside their rectums. The slaves start in surprise at the sudden rush of warm slick fluid, and then relax as the phalli withdraw themselves from their butts. Their relief is short-lived, however, as their assholes are only empty for a moment. The reasonably sized dildos are replaced with dildos the size of horse cocks. As soon as the slaves feel the heads of these monstrous phalli press inexorably against their sphincters,
	<<if $dairyFeedersSetting < 2>>
		they begin to scream and struggle instinctively. As the constant assrape that will define their existences for the foreseeable future begins in earnest, their whining
	<<else>>
		they begin to struggle wildly. As the constant assrape that will define their existences for the foreseeable future begins in earnest, their wriggling
	<</if>>
	gradually diminishes as each slave is exhausted and slumps within her restraints. The machines take no notice, and continue the relentless sodomy.

<<elseif $dairyStimulatorsSettingChanged is -1>>
	In unison, the milking machines withdraw their gargantuan dildos from the slaves' loosened anuses.
	<<if $dairyFeedersSetting < 2>>
		Several of the more energetic slaves begin to cry quietly with relief
	<<else>>
		The slaves are silent, since their mouths and throats are being fucked by the feeders, but most of them slump against their machines with relief
	<</if>>
	as their sphincters gradually recover from wide open to merely gaping. The machines switch out the withdrawn dildos for phalli that are just large, but the slaves barely react at all as they are penetrated. After what their sphincters have been through, a merely big dick is nothing to them.

	<</if>>
	<<if $dairyRestraintsSettingChanged == 1>>
		<<if $dairyRestraintsSetting == 1>>
			<<for _i to 0; _i < $slaves.length; _i++>>
			<<if ($slaves[_i].assignment is "work in the dairy") && ($slaves[_i].indentureRestrictions >= 2)>>
				<<set $slaves[_i].assignment to "rest", $slaves[_i].assignmentVisible to 1, $dairySlaves-->>
				$slaves[_i].slaveName's milking machine declines to restrain her, since she is encoded as an indentured servant protected from restraint for milking.
			<</if>>
			<</for>>
			The next cow to stumble over to a milking machine to be drained is gently but firmly embraced by its restraints, allowing it to suck her dry and violate her without any regard for her feelings. Most of the cows accept this new wrinkle in their lives, since the restraints let them go afterward, and the milking machines bring temporary relief. Some, however, begin to regard the machines with concern.
		<<else>>
			The next cow to stumble over to a milking machine to be drained finds to her surprise that she is not restrained while it sucks her dry. She wiggles around experimentally, verifying that she is indeed free to pull herself away from its ministrations if she wishes. There's little actual impact on the cows' behavior, since they still need the relief the machines offer.
		<</if>>

	<<elseif $dairyRestraintsSettingChanged is -1>>
		<<if $dairyRestraintsSetting == 1>>
			<<for _i to 0; _i < $slaves.length; _i++>>
			<<if ($slaves[_i].assignment is "work in the dairy") && ($slaves[_i].indentureRestrictions >= 1)>>
				<<set $slaves[_i].assignment to "rest", $slaves[_i].assignmentVisible to 1, $dairySlaves-->>
				$slaves[_i].slaveName's milking machine declines to restrain her, since she is encoded as an indentured servant protected from being restrained for milking.
			<</if>>
			<</for>>
			The next time a cow tries to get up after being milked, she finds to her sudden terror that the machine will not let her go. It continues to add fluids to her body, and remove them from her nipples, ignoring her mounting panic as she realizes that it's to be her new partner and lover, on a level far more intimate than any possible human relationship. The other cows approach their machines with trepidation, but the mounting pressure in their udders forces them to embrace their immurement despite their terror.
		<<else>>
			The next time a cow finishes an intensive milking period, her restraints loosen. She does not move for a long time, as though she is unable to believe that she is, at least in an immediate and local sense, free. Finally, she prises herself out of her milking machine's embrace, thick strings of fluid leading from it to her orifices as she pulls each one off of its corresponding port.
		<</if>>

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

<<set $dairyStimulatorsSettingChanged to 0, $dairyFeedersSettingChanged to 0, $dairyPregSettingChanged to 0, $dairyRestraintsSettingChanged to 0>>

<<if ($dairyRestraintsSetting > 1)>>

$dairyNameCaps is an industrial facility, but there's a viewing gallery for visitors.
<<switch $dairyDecoration>>
<<case "Roman Revivalist">>
	The screens there review each slave's liquid contributions to the state in minute detail.
<<case "Egyptian Revivalist">>
	The screens there list a tally of each slave's contributions to the harvest this season. They also identify related slaves who occupy multi-slave milking machines so that they may feed each other directly.
<<case "Edo Revivalist">>
	It looks out on a strangely contradictory sight: a beautiful and terrible combination of modern slavery and technology, placed amongst tatami mats and rice paper partitions.
<<case "Arabian Revivalist">>
	It looks out on a strangely contradictory sight: a beautiful and terrible combination of modern slavery and technology, placed inside brightly tiled walls.
<<case "Chinese Revivalist">>
	The milking machines are fascinating: they're encased in decorative carvings, making it look like the slaves are in the embrace of traditional Chinese depictions of lions, bears, and dragons.
<<case "Chattel Religionist">>
	It presents the inmates as lessons, here to expiate their sins in a purgatory created by technology.
<<case "Degradationist">>
	The screens there feature, among a sea of facts and figures about each slave, her most recent brain scan.
<<case "Repopulation Focus">>
	The gallery is placed for a good view of each slave's swelling breasts and growing pregnancy. A screen is prominently displayed before each slave, detailing the number of babies she produced and the current number occupying her womb.
<<case "Eugenics">>
	The screens there tell very little about the slaves within. That information is privy only to Society's Elite.
<<case "Asset Expansionist">>
	It's designed for VIP visits, since this place is arguably the present apogee of expansionism. Nowhere else can breasts become so large. This is a place for pride.
<<case "Transformation Fetishist">>
	It's designed for VIP visits, since this place is arguably the present apogee of transformationism. Nowhere else can slaves be so radically changed, from humans into something less - and something more.
<<case "Gender Radicalist">>
	The gallery is placed for a good view of each slave's front, from her head to what's between her spread legs.
<<case "Gender Fundamentalist">>
	The gallery is placed for a good view of each slave's breasts, belly, and cunt. Visitors can critically compare each feminine advantage.
<<case "Physical Idealist">>
	The gallery is placed for a good view of each slave's body. Though muscles are at a lower premium here, there is intense interest in such radical changes to human biology.
<<case "Supremacist">>
	The screens there give information about each cow, but the data they present is also predictive. They imply a vision for a world in which more subhumans serve in this way. Many more.
<<case "Subjugationist">>
	The screens there give information about each cow, but the data they present is also predictive. They imply a vision for a world in which more milking machines have $arcologies[0].FSSubjugationistRace components. Many more.
<<case "Paternalist">>
	The screens there include feeds that show what media is being pumped into the slaves through their machines. It's designed to provide as much mental stimulation as possible.
<<case "Pastoralist">>
	The screens there let the production figures speak for themselves. There may be more personable cows out there, but they don't produce milk like these do.
<<case "Maturity Preferentialist">>
	The screens there give each slave's productivity and forecast it into the future. The facility is unmatched at extracting value from mature bodies.
<<case "Youth Preferentialist">>
	The screens there give each slave's productivity and forecast it into the future. The best bodies here have many, many years of productivity ahead of them.
<<case "Body Purist">>
	The screens there offer reams of data on each slave's product purity. Drugs are necessary here, and each body's balance results in a different grade of product.
<<case "Slimness Enthusiast">>
	The screens there alternate live views of the fashionably slim cows in their stalls with brief infomercials on the specialized techniques and equipment $dairyName uses to extract milk from such modest udders.
<<default>>
	Fascinated visitors may peruse each slave's productivity statistics on a corresponding touchscreen.
<</switch>>

<<else>>

$dairyNameCaps
<<switch $dairyDecoration>>
<<case "Roman Revivalist">>
	is functional and clean, using traditional methods wherever possible. At one end of the long row of stalls there is an alcove with a shrine to the Roman goddess of bountiful harvests.
<<case "Egyptian Revivalist">>
	is functional and clean, using traditional methods wherever possible. At one end of the long row of stalls there is an alcove with a shrine to the Egyptian god of bountiful harvests.
<<case "Edo Revivalist">>
	is clean and traditional. The stalls are constructed of bamboo and carefully shaped wood, and muscle power is used wherever possible. Cows exercise and help out by walking on a wooden wheel that raises fresh water to $dairyName.
<<case "Arabian Revivalist">>
	is clean and traditional. Its dusky stone walls keep it so warm that the cows go nude, basking in the hot sun between milkings.
<<case "Chinese Revivalist">>
	is clean and traditional. The stalls are constructed of bamboo and carefully shaped wood, and muscle power is used wherever possible. Cows exercise and help out by fetching and carrying as best they can.
<<case "Chattel Religionist">>
	is functional and clean. There are nice quotations from the holy book on the walls, and there is a little shrine designed to allow a cow who has difficulty standing to make her devotions comfortably.
<<case "Degradationist">>
	is harsh and utilitarian. There are stands to restrain cows who aren't being milked for dosing, punishment, or sexual use. There are cattle prods here and there to use on resistant cows, unproductive cows, or cows one wishes to hear scream.
<<case "Repopulation Focus">>
	is comfortable and well-kept. The milking machines are specially designed to maximize a pregnant cow's comfort.
<<case "Eugenics">>
	is comfortable, well-kept and well-monitored. Cows are kept track of at all times to make sure no-one tries to increase milk production via pregnancy.
<<case "Asset Expansionist">>
	looks misleadingly industrial at first glance. Though the cows here are free-range, the facility mounts a system of slings and cranes to allow slaves with massive udders to walk around with their tits suspended from the ceiling.
<<case "Transformation Fetishist">>
	looks like a medical facility at first glance. Transformation is just as much a priority as production: there are surgical and drug injection machines right here.
<<case "Gender Radicalist">>
	is comfortable and well-kept. The milking machines include perianal vibrators to massage slaves from butthole to cock while they give cum.
<<case "Gender Fundamentalist">>
	is comfortable and well-kept. The milking machines include vibrators so that cows can get off while they're milked.
<<case "Physical Idealist">>
	could be mistaken for a gym with milking machines. Cows here are expected to keep fit between milkings, since the best milk comes from cattle who are healthy, muscular, and strong.
<<case "Supremacist">>
	is spartan, since that's all subhuman cows need. There are cattle prods here and there to use on resistant cows, unproductive cows, or subhuman cows one wishes to hear scream.
<<case "Subjugationist">>
	is spartan, since that's all $arcologies[0].FSSubjugationistRace cows need. There are cattle prods here and there to use on resistant cows, unproductive cows, or $arcologies[0].FSSubjugationistRace cows one wishes to hear scream.
<<case "Paternalist">>
	is comfortable and well-kept. Rather than stalls, $dairyName has an open arrangement of machines cows can use freely, and a lovely common area they can relax in afterward.
<<case "Pastoralist">>
	is state of the art, but is also brilliantly designed to look like a barn. All the advanced machinery retracts when not in use, leaving the cows in a clean, airy pastoral paradise. It smells of summer.
<<case "Maturity Preferentialist">>
	is inviting and homelike. After a milking, cows have a wide selection of soft furniture to choose from, so comfortable that most fall fast asleep.
<<case "Youth Preferentialist">>
	is functional, but fun. There are all sorts of fun activities to keep the cows amused between milkings, cleverly adapted for girls with massive mammaries.
<<case "Body Purist">>
	is state of the art, and spotlessly clean. All attention here is on the cows, to keep them happy, productive, and pure.
<<case "Slimness Enthusiast">>
	is quite unusual. Since the cows it milks may not necessarily have gigantic boobs, the milking machines here can adapt to drain cream from any body.
<<default>>
	is comfortable and well-kept. It features nice rest areas for cows to lounge in after a milking, and exercise equipment to keep them healthy.
<</switch>>

<</if>>

<<if $dairySlaves > 2>>
	$dairyNameCaps is working steadily.
	<<if ($dairyRestraintsUpgrade == 1) && ($dairyRestraintsSetting > 1)>>
	Each cow is strapped in to her own milking machine. The machines are set up in rows, alternating forward and backward so that the cows are interleaved as closely as possible without touching.
	<<if ($dairyFeedersUpgrade == 1) && ($dairyFeedersSetting > 0)>>
		<<if $dairyFeedersSetting is 2>>
		A phallic feeding tube completely fills each cow's mouth and throat, making the it eerily quiet in here. Occasionally one of the cows convulses when a particularly long rush of food and drugs flows down her gullet.
		<<else>>
		When feeding is required, a phallus extends into cows' mouths.
		<</if>>
	<</if>>
	<<if ($dairyStimulatorsUpgrade == 1) && ($dairyStimulatorsSetting > 0)>>
		<<if $dairyStimulatorsSetting is 2>>
		Every cow is being sodomized by a massive phallus. Most are pumping away gently, the strokes taking a long time to push the half-meter of shaft into each slave's rectum and pull it out again. When a slave's balls are ready to give cum, however, the pace quickens, and the agonized slave wriggles in involuntary desperation to escape until she finally stiffens, squirts, and slumps in exhaustion.
		<<else>>
		Each cow's anus is periodically fucked by a machine phallus that ejaculates hydration directly up her butt. When a slave's balls are ready to give cum, she is mercilessly sodomized until prostate stimulation forces an orgasm.
		<</if>>
	<</if>>
	<<if ($dairyPregUpgrade == 1) && ($dairyPregSetting > 0)>>
		<<if $dairyPregSetting is 3>>
		Fertile cows' vagina's are constantly penetrated by huge dildos that ejaculate extra strong fertility drugs into their progressively distending wombs. The drugs induce intense arousal and excessive female lubrication, so the constant dildo rape fills $dairyName with occasional gushing noises and nonstop moaning.
		<<elseif $dairyPregSetting is 2>>
		Fertile cows' vagina's are constantly penetrated by huge dildos that ejaculate fertility drugs. The drugs produce excessive female lubrication, so the constant dildo rape fills $dairyName with occasional gushing noises.
		<<else>>
		The fertile cows are visibly pregnant.
		<</if>>
	<</if>>
	<<else>>
	The row of milking machines is available for cows to use.
	<<if ($dairyRestraintsSetting > 0)>>
		When they do, the machines gently restrain them until they are completely done.
	<</if>>
	<<if ($dairyFeedersUpgrade == 1) && ($dairyFeedersSetting > 0)>>
		The machines mount convenient phallic feeders for slaves to suck for tasty food while they're milked.
	<</if>>
	<<if ($dairyPregUpgrade == 1) && ($dairyPregSetting > 0)>>
		The fertile cows are visibly pregnant.
	<</if>>
	<<if ($dairyStimulatorsUpgrade == 1) && ($dairyStimulatorsSetting > 0)>>
		The machines gently sodomize cows who need the extra nutrition and treatment the dildos can ejaculate into them<<if $seeDicks > 0>>, and fuck them more vigorously when they need help ejaculating.<</if>>
	<</if>>
	<</if>>
<<elseif $bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren > 0>>
	$dairyNameCaps is quiet and calm. The only sounds are faint sucking and gushing noises.
<<elseif $dairySlaves > 0>>
	$dairyNameCaps is sparsely populated.
<<elseif $Milkmaid != 0>>
	$Milkmaid.slaveName is alone in $dairyName, and has nothing to do but clean and maintain the equipment.
<<else>>
	$dairyNameCaps is empty and desolate. [[Decommission the dairy|Main][$dairy to 0, $dairyFeedersUpgrade to 0, $dairyPregUpgrade to 0, $dairyStimulatorsUpgrade to 0, $dairyDecoration to "standard"]]
<</if>>

$dairyName can support $dairy milkers.
[[Expand the dairy|Dairy][$cash -=  Math.trunc($dairy*1000*$upgradeMultiplierArcology), $dairy += 5]]
//Costs ¤<<print Math.trunc($dairy*1000*$upgradeMultiplierArcology)>> and will increase upkeep costs//

<<if $dairyFeedersUpgrade == 1>>
	The milking machines can hold feeders in slaves' mouths and inject drugs into their bodies, ensuring ideal nutrition and production.

	<<if $dairyFeedersSetting is 2>>
		The feeders are ''industrial.'' [[Moderate|Dairy][$dairyFeedersSetting to 1, $dairyFeedersSettingChanged to -1]]
	<<elseif $dairyFeedersSetting == 1>>
		The feeders are ''active.'' [[Inactive|Dairy][$dairyFeedersSetting to 0]]<<if ($seeExtreme != 0) && ($dairyRestraintsSetting is 2)>> | [[Industrial|Dairy][$dairyFeedersSetting to 2, $dairyFeedersSettingChanged to 1]]<</if>>
	<<else>>
		The feeders are ''inactive.'' [[Active|Dairy][$dairyFeedersSetting to 1]]
	<</if>>
<<else>>
	$dairyNameCaps is equipped to feed and clean slaves normally. [[Upgrade the milking machines with intubators|Dairy][$cash -= Math.trunc(10000*$upgradeMultiplierArcology), $dairyFeedersUpgrade to 1]] //Costs ¤<<print Math.trunc(10000*$upgradeMultiplierArcology)>> and will increase upkeep costs//
<</if>>

<<if $dairyPregUpgrade == 1>>
	$dairyName can support cow pregnancies.

	<<if $dairyPregSetting is 3>>
		Fertile cows' wombs are ''worked to capacity.'' [[Industrial|Dairy][$dairyPregSetting to 2]]
	<<elseif $dairyPregSetting is 2>>
		Fertile cows' wombs are ''industrially employed.'' <<if ($seeExtreme != 0) && ($seeHyperPreg == 1) && ($dairyRestraintsSetting is 2) && ($dairyHyperPregRemodel is 1)>> [[Mass Production|Dairy][$dairyPregSetting to 3]] | <</if>>[[Moderate|Dairy][$dairyPregSetting to 1, $dairyPregSettingChanged to -1]]
	<<elseif $dairyPregSetting == 1>>
		Fertile cows' wombs are ''for hire.'' [[Not for hire|Dairy][$dairyPregSetting to 0]]<<if ($seeExtreme != 0) && ($dairyRestraintsSetting is 2)>> | [[Industrial|Dairy][$dairyPregSetting to 2, $dairyPregSettingChanged to 1]]<</if>>
	<<else>>
		Fertile cows' wombs are ''not for hire.'' [[For hire|Dairy][$dairyPregSetting to 1]]
	<</if>>
<<else>>
	$dairyNameCaps is not prepared to support cow pregnancies, and therefore cannot be used to contract out fertile slaves' wombs.

     [[Upgrade the dairy to support pregnancies|Dairy][$cash -= 2500, $dairyPregUpgrade to 1]] //Costs ¤2500 and will increase upkeep costs//
<</if>>

<<if $dairyStimulatorsUpgrade == 1>>
	The milking machines mount reciprocating dildos that can sodomize the slaves, delivering extra nutrition and pharmaceuticals. <<if $seeDicks > 0>>The prostate stimulation also serves to increase semen production, where appropriate.<</if>>

	<<if $dairyStimulatorsSetting is 2>>
		The sodomizers are ''industrial,'' employing dildos the size of horse phalli. [[Moderate|Dairy][$dairyStimulatorsSetting to 1, $dairyStimulatorsSettingChanged to -1]]
	<<elseif $dairyStimulatorsSetting == 1>>
		The sodomizers are ''active.'' [[Deactivate|Dairy][$dairyStimulatorsSetting to 0]]<<if ($seeExtreme != 0) && ($dairyRestraintsSetting is 2)>> | [[Industrial|Dairy][$dairyStimulatorsSetting to 2, $dairyStimulatorsSettingChanged to 1]]<</if>>
	<<else>>
		The sodomizers are ''inactive.'' [[Activate|Dairy][$dairyStimulatorsSetting to 1]]
	<</if>>
<<else>>
	$dairyName does not automatically sodomize. [[Upgrade the cockmilking machines with sodomizers|Dairy][$cash -= Math.trunc(10000*$upgradeMultiplierArcology), $dairyStimulatorsUpgrade to 1]] //Costs ¤<<print Math.trunc(10000*$upgradeMultiplierArcology)>> and will increase upkeep costs//
<</if>>

<<if ($dairyPregUpgrade == 2) || ($dairyStimulatorsSetting is 2)>>

<<if $dairyPrepUpgrade == 1>>
	$dairyName features a preparatory raper designed to gape slaves for integration.
<<else>>
	$dairyName's industrial machines can only accept slaves with loose holes. [[Install a preparatory raper|Dairy][$cash -= Math.trunc(5000*$upgradeMultiplierArcology), $dairyPrepUpgrade to 1]] //Costs ¤<<print Math.trunc(5000*$upgradeMultiplierArcology)>>//
<</if>>
<</if>>

<<if $dairyRestraintsUpgrade == 1>>
	$dairyNameCaps is equipped to restrain cows.

	<<if $dairyRestraintsSetting is 2>>
		The cows are restrained ''permanently,'' allowing use of industrial techniques even devoted cows would flinch at. [[Only during milking|Dairy][$dairyRestraintsSetting to 1, $dairyFeedersSettingChanged to -1]]
	<<elseif $dairyRestraintsSetting == 1>>
		The cows are restrained ''when being milked,'' giving the machines full play. [[Free range|Dairy][$dairyRestraintsSetting to 0, $dairyFeedersSettingChanged to -1]] | [[Permanent machine milking|Dairy][$dairyRestraintsSetting to 2, $dairyFeedersSettingChanged to 1]]
	<<else>>
		The cows are restrained ''only when necessary,'' allowing obedient cows freedom to range around. [[Restrain the cows|Dairy][$dairyRestraintsSetting to 1, $dairyFeedersSettingChanged to 1]]
	<</if>>
<<else>>
	$dairyNameCaps is not equipped to restrain recalcitrant cows. [[Equip the dairy with milking racks|Dairy][$cash -= Math.trunc(5000*$upgradeMultiplierArcology), $dairyRestraintsUpgrade to 1]] //Costs ¤<<print Math.trunc(5000*$upgradeMultiplierArcology)>>//
<</if>>

<<if ($seeHyperPreg == 1) && ($dairyRestraintsSetting is 2) && ($dairyStimulatorsSetting is 2) && ($dairyFeedersSetting is 2) && ($dairyPregSetting >= 1)>>

	<<if $dairyHyperPregRemodel == 1>>
		$dairyNameCaps's milking racks have been remodeled to allow cows' abnormal pregnancies room to grow.
	<<else>>
		$dairyNameCaps's milking racks can be remodeled to hold hyper-pregnant cattle. [[Expand the milking racks|Dairy][$cash -= Math.trunc(10000*$upgradeMultiplierArcology), $dairyHyperPregRemodel to 1]] //Costs ¤<<print Math.trunc(10000*$upgradeMultiplierArcology)>>//
	<</if>>
<</if>>

<<if ($bioreactorsAnnounced != 0) && ($dairyRestraintsSetting is 2) && ($dairyStimulatorsSetting is 2) && ($dairyFeedersSetting is 2)>>

	<<if $createBioreactors == 1>>
		$dairyNameCaps will ''convert perfected cows into equipment,'' removing them from slave status, permanently. [[Cancel conversion|Dairy][$createBioreactors to 0]]
	<<else>>
		$dairyNameCaps will ''leave perfected cows as slaves.'' [[Convert them into equipment|Dairy][$createBioreactors to 1]]
	<</if>>
<</if>>

<<if $arcologies[0].FSSlimnessEnthusiast > 80>>
	<<if $dairySlimMaintainUpgrade == 1>>
		Thanks to advances precipitated by the arcology's commitment to the fashion of slimmer slaves, $dairyName has been updated with optimized milkers for small breasts, and a customized drug regimen to extract maximum output while maintaining small breast sizes.
		<<if $dairySlimMaintain == 1>>
			$dairyNameCaps is currently set to limit the breast growth of slimmer slaves while maximizing their milk output. [[Return to Normal Operation|Dairy][$dairySlimMaintain to 0]] //NOTE: This may allow the automatic administration of lactation inducing drugs//
		<<else>>
			$dairyNameCaps is currently set to normal operation, and will allow the breasts of slimmer slaves to expand due to milking. [[Set milkers to preserve small breast sizes|Dairy][$dairySlimMaintain to 1]] //NOTE: This will NOT remove existing lactation implants//
		<</if>>
	<<else>>
		Dairy cows' breasts will expand normally as a result of the milking process. [[Optimize the milking process to preserve small breast sizes|Dairy][$cash -=Math.trunc(5000*$upgradeMultiplierArcology), $dairySlimMaintainUpgrade to 1, $dairySlimMaintain to 1]] //Costs ¤<<print Math.trunc(5000*$upgradeMultiplierArcology)>>//
	<</if>>
<<elseif $arcologies[0].FSSlimnessEnthusiast > 20>>
	<<if $dairySlimMaintainUpgrade == 1>>
		Thanks to advances precipitated by the arcology's commitment to the fashion of slimmer slaves, $dairyName has been re-engineered so that its milking process can now prevent the unwanted breast expansion of fashionably slim slaves.
		<<if $dairySlimMaintain == 1>>
			$dairyNameCaps is currently set to limit the breast growth of slimmer slaves. [[Return to Normal Operation|Dairy][$dairySlimMaintain to 0]] //NOTE: This may allow the automatic administration of lactation inducing drugs//
		<<else>>
			$dairyNameCaps is currently set to normal operation, and will allow the breasts of slimmer slaves to expand due to milking. [[Set milkers to preserve small breast sizes|Dairy][$dairySlimMaintain to 1]] //NOTE: This will NOT remove existing lactation implants//
		<</if>>
	<<else>>
			Dairy cows' breasts will expand normally as a result of the milking process. [[Optimize the milking process to preserve small breast sizes|Dairy][$cash -=Math.trunc(5000*$upgradeMultiplierArcology), $dairySlimMaintainUpgrade to 1, $dairySlimMaintain to 1]] //Costs ¤<<print Math.trunc(5000*$upgradeMultiplierArcology)>>//
	<</if>>
<</if>>

<<if ($dairyPregSetting > 1) || ($dairyFeedersSetting > 1) || ($dairyStimulatorsSetting > 1)>>

@@color:yellow;WARNING:@@ current milking machine settings may have irreversible effects on cows.
<</if>>

<<if $Milkmaid != 0>>
	<<set $Flag to 2>>
	<<include "Slave Summary">>
	<<if canAchieveErection($Milkmaid) && $Milkmaid.pubertyXY == 1>>

		<<if $milkmaidImpregnates == 1>>
			Keeping the cows pregnant is part of her job. [[Order her to stop impregnating|Dairy][$milkmaidImpregnates to 0]]
		<<else>>
			She could be directed to keep the cows pregnant herself. [[Order her to impregnate|Dairy][$milkmaidImpregnates to 1]]
		<</if>>
	<</if>>
<<elseif $dairyRestraintsSetting > 1>>
	//Current milking machine settings make a Milkmaid superfluous by replacing her duties with automation//
<<else>>
	You do not have a slave serving as a Milkmaid. [[Appoint one|Milkmaid Select]]
<</if>>

<<if $dairySlaves > 0>>

''Bring a slave out of $dairyName:''
	<<set $Flag to 1>>
	<<include "Slave Summary">>
<</if>>
<<set $seed to $bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren>>
<<if $seed > 1>>
	//In addition, $seed milking machines have biological components installed in them.//
<<elseif $seed == 1>>
	//In addition, one milking machine has biological components installed in it.//
<</if>>

<<if $notdairySlaves > 0>>

''Send a slave to the dairy:''
	<<set $Flag to 0>>
	<<include "Slave Summary">>
<</if>>
<<unset $Flag>>

Rename $dairyName: <<textbox "$dairyName" $dairyName "Dairy">> //Use a noun or similar short phrase//
<</nobr>>


code:
:: Dairy Report [nobr]

<<set $bioreactorPerfectedID = 0, $dairySlaves = 0, $legendaryBallsID = 0, $legendaryCowID = 0, $milkmaidDevotionBonus = 1, $milkmaidHealthBonus = 0, $milkmaidTrustBonus = 1, $milkmaidDevotionThreshold = 45, $milkmaidTrustThreshold = 35>>

<<set _anusesStretched = 0, _birthers = 0, _births = 0, _cumWeek = 0, _femCumWeek = 0, _milkmaidFetish = 0, _milkmaidImpregnated = 0, _milkWeek = 0>>

<<set _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, _SL = $slaves.length, _MM = -1, _MMAttentionString = "">>

<<set _MMWorkout = 0, _MMMuscles = 0>>

<<if ($Milkmaid != 0)>>
<<for _MM = 0; _MM < _SL; _MM++>>
<<if $slaves[_MM].ID == $Milkmaid.ID>>
	<<break>>
<</if>>
<</for>>
<</if>>

<<if _MM != -1>>
	<<set $i = _MM>>
	<<if $slaves[_MM].health < 90>>
		<<set $slaves[_MM].curatives to 2>>
	<</if>>
	<<if ($slaves[_MM].diet != "healthy")>>
		<<set ($slaves[_MM].diet to "healthy")>>
	<</if>>
	<<silently>>
	<<include "SA diet">>
	<<include "SA long term effects">>
	<<include "SA drugs">>
	<<include "SA relationships">>
	<<include "SA rivalries">>
	<</silently>>
	<<if $slaves[_MM].devotion <= 60>>
		<<set $slaves[_MM].devotion += 5>>
	<</if>>
	<<if $slaves[_MM].trust < 60>>
		<<set $slaves[_MM].trust += 5>>
	<</if>>
	<<if $slaves[_MM].relationship is -3>>
		<<set $milkmaidDevotionBonus += 2, $milkmaidTrustBonus += 2>>
	<</if>>
	<<if ($slaves[_MM].sexualQuirk is "caring")>>
		<<set $milkmaidTrustBonus += 1>>
	<</if>>
	<<if ($slaves[_MM].behavioralQuirk is "funny")>>
		<<set $milkmaidTrustBonus += 1>>
	<</if>>
	<<if ($slaves[_MM].oralSkill > 0)>>
		<<set $milkmaidDevotionBonus += Math.trunc($slaves[_MM].oralSkill/30)>>
	<</if>>
	<<if ($slaves[_MM].health >= 80)>>
		<<set $milkmaidHealthBonus += 1>>
	<</if>>
	<<set $toSearch to $slaves[_MM].career>>
	<<if $milkmaidCareers.contains($toSearch)>>
		<<set $milkmaidHealthBonus += 1>>
	<</if>>
	<<if ($slaves[_MM].muscles > 30)>>
		<<set $milkmaidHealthBonus += 1>>
	<</if>>
	<<set $milkmaidDevotionThreshold += (5*$milkmaidDevotionBonus), $milkmaidTrustThreshold += (5*$milkmaidTrustBonus)>>

	<<if $slaves[_MM].fetishStrength <= 95>>
		<<if $slaves[_MM].fetish != "boobs">>
			<<fetishChangeChance $slaves[_MM]>>
			<<if $fetishChangeChance > random(0,100)>>
				<<set _milkmaidFetish to 1, $slaves[_MM].fetishKnown to 1, $slaves[_MM].fetish to "boobs">>
			<</if>>
		<<elseif $slaves[_MM].fetishKnown == 0>>
			<<set _milkmaidFetish to 1, $slaves[_MM].fetishKnown to 1>>
		<<else>>
			<<set _milkmaidFetish to 2, $slaves[_MM].fetishStrength += 4>>
		<</if>>
	<</if>>

	<<set $Milkmaid = $slaves[_MM]>>
<</if>>

<<set $oldCash to $cash>>

<<for _i to 0; _i < _SL; _i++>>
	<<if ($slaves[_i].assignment != "work in the dairy")>><<continue>><</if>>

/* 000-250-006 */
/* <<if $seeImages == 1>><<SlaveArt $slaves[_i] 0 0>><</if>> */
<<if $seeImages == 1>>
    <div class="imageRef tinyImg">
    <<SlaveArt $slaves[_i] 0 0>>
</div>
<</if>>
/* 000-250-006 */

	<<set $dairySlaves++>>
	<<set $i = _i>>

	/* Perform facility based rule changes */
	<<if ($dairySlimMaintain == 0) && ($slaves[_i].weight <= 30)>>
		<<set $slaves[_i].diet to "fattening">>
	<<elseif ($slaves[_i].diet is "fattening") || ($dairyRestraintsSetting > 1)>>
		<<set $slaves[_i].diet to "healthy">>
	<<elseif ($slaves[_i].balls >0) && $cumProDiet == 1>>
		<<set $slaves[_i].diet to "cum production">>
	<</if>>

	<<if $dairyRestraintsSetting != 2 && $Milkmaid != 0>> /* how much effort the MM must take to force a slave into a stall */
		<<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].boobs >= 6000>>
			<<set _MMWorkout++>>
		<</if>>
		<<if $slaves[_i].balls >= 30>>
			<<set _MMWorkout++>>
		<</if>>
		<<if bigBellyPreg($slaves[_i])>>
			<<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].boobs >= 6000>>
				<<set _MMWorkout += 2>>
			<</if>>
			<<if $slaves[_i].balls >= 30>>
				<<set _MMWorkout += 2>>
			<</if>>
			<<if bigBellyPreg($slaves[_i])>>
				<<set _MMWorkout += 2>>
			<</if>>
		<</if>>
	<</if>>

	/* General End of Week effects */
	<<silently>>
	<<include "SA get milked">>
	<<set _milkWeek += $milk, _cumWeek += $cum>>
	<<if ($milkmaidImpregnates == 1) && ($Milkmaid != 0) && ($Milkmaid.balls > 0) && $Milkmaid.pubertyXY == 1>>
		<<if (canGetPregnant($slaves[_i])) && (canPenetrate($Milkmaid)) && (canBreed($slaves[_i], $Milkmaid))>>
			<<set $slaves[_i].preg to 1, $slaves[_i].pregSource to $Milkmaid.ID, _milkmaidImpregnated++, $slaves[_i].vaginalCount += 10, $vaginalTotal += 10>>
		<</if>>
	<</if>>
	<<include "SA diet">>
	<<include "SA long term effects">>
	<<include "SA relationships">>
	<<include "SA rivalries">>
	<</silently>>

	/* 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 to $slaves[_i].ID>>
	<</if>>
	<<if ($legendaryBallsID == 0) && ($slaves[_i].balls > 5) && ($slaves[_i].devotion > 50) && ($slaves[_i].prestige == 0)>>
		<<set $legendaryBallsID to $slaves[_i].ID>>
	<</if>>
	<<set $i = _i>>
	<<if $familyTesting == 1>>
		<<if $slaves[_i].mother == $Milkmaid.ID>>
			<<set _MMAttentionString += "She pays special attention to her daughter, $slaves["+_i+"].slaveName, making sure she is well kept and happy. ">>
			<<set $slaves[_i].trust += 1>>
		<</if>>
		<<if $slaves[_i].father == $Milkmaid.ID>>
			<<set _MMAttentionString += "She pays special attention to her daughter, $slaves["+_i+"].slaveName, making sure she is well kept and happy. ">>
			<<set $slaves[_i].trust += 1>>
		<</if>>
		<<if $slaves[_i].ID == $Milkmaid.father>>
			<<set _MMAttentionString += "She pays special attention to her father, $slaves["+_i+"].slaveName, making sure she is well kept and happy. ">>
			<<set $slaves[_i].trust += 1>>
		<</if>>
		<<if $slaves[_i].ID == $Milkmaid.mother>>
			<<set _MMAttentionString += "She pays special attention to her mother, $slaves["+_i+"].slaveName, making sure she is well kept and happy. ">>
			<<set $slaves[_i].trust += 1>>
		<</if>>
		<<if areSisters($slaves[_i], $Milkmaid) == 1>>
			<<set _MMAttentionString += "She pays special attention to her twin sister, $slaves["+_i+"].slaveName, making sure she is well kept and happy. ">>
			<<set $slaves[_i].trust += 1>>
		<<elseif areSisters($slaves[_i], $Milkmaid) == 2>>
			<<set _MMAttentionString += "She pays special attention to her sister, $slaves["+_i+"].slaveName, making sure she is well kept and happy. ">>
			<<set $slaves[_i].trust += 1>>
		<<elseif areSisters($slaves[_i], $Milkmaid) == 3>>
			<<set _MMAttentionString += "She pays special attention to her half-sister, $slaves["+_i+"].slaveName, making sure she is well kept and happy. ">>
			<<set $slaves[_i].trust += 1>>
		<</if>>
	<<else>>
	<<if $Milkmaid.relationTarget is $slaves[_i].ID>>
		<<set _MMAttentionString += "She pays special attention to her $slaves["+_i+"].relation, $slaves["+_i+"].slaveName, making sure she is well kept and happy. ">>
		<<set $slaves[_i].trust += 1>>
	<</if>>
	<</if>> /*closes family mode */
	<<if $Milkmaid.relationshipTarget is $slaves[_i].ID>>
		<<set _MMAttentionString += "She dotes over her <<if $Milkmaid.relationship == 1>>friend<<elseif $Milkmaid.relationship is 2>>best friend<<elseif $Milkmaid.relationship is 3>>friend with benefits<<elseif $Milkmaid.relationship is 4>>lover<<elseif $Milkmaid.relationship is 5>>slave wife<</if>>, $slaves["+_i+"].slaveName, making sure she is happy and comfortable. ">>
		<<set $slaves[_i].devotion += 1>>
	<</if>>
	<<if $Milkmaid.rivalryTarget is $slaves[_i].ID>>
		<<set _MMAttentionString += "She either neglects or harasses her <<if $Milkmaid.rivalry == 1>>growing rival<<elseif $Milkmaid.rivalry is 2>>rival<<elseif $Milkmaid.rivalry is 3>>bitter rival<</if>>, $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 += 1, $slaves[_MM].rivalry += 1, $slaves[_i].rivalry += 1>>
		<</if>>
	<</if>>
	<<if $slaves[_i].prestigeDesc is "She is remembered for winning best in show as a dairy cow.">>
		<<set _MMAttentionString += "She spends extra time with $slaves["+_i+"].slaveName, the well-known cow.  $Milkmaid.slaveName is fascinated by her 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>>
	<</if>>
	<<if $slaves[_i].prestigeDesc is "She is remembered for winning best in show as a cockmilker.">>
		<<set _MMAttentionString += "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>>
	<</if>>
	<<if $slaves[_i].prestigeDesc is "She is remembered for winning best in show as a breeder." && $slaves[_i].preg > 10>>
		<<set _MMAttentionString += "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>>
	/* 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>>
		<<set $slaves[_i].inflationType = 0>>
		<<set $slaves[_i].inflationMethod = 0>>
		<<set $slaves[_i].milkSource = 0>>
	<</if>>
	<<if ($slaves[_i].lactation > 0)>>
		<<if ($dairySlimMaintain == 0) || ($slaves[_i].boobs > 700)>>
			<<if ($slaves[_i].boobs < 2000)>>
				<<set $slaves[_i].boobs += 100>>
			<<elseif ($slaves[_i].boobs < 5000)>>
				<<set $slaves[_i].boobs += 50>>
			<<elseif ($slaves[_i].boobs < 10000)>>
				<<set $slaves[_i].boobs += 25>>
			<</if>>
		<</if>>
	<</if>>

	<<if ($dairyFeedersUpgrade == 1) && ($dairyFeedersSetting > 0)>>
		<<if ($dairySlimMaintain == 0)>>
			<<if ($slaves[_i].balls == 0)>>
				<<set $slaves[_i].hormones to 2>>
			<</if>>
			<<if ($slaves[_i].lactation < 2)>>
				<<set $slaves[_i].lactation to 2>>
			<</if>>
		<</if>>
		<<if ($slaves[_i].health < 75)>>
			<<set $slaves[_i].health += 25>>
		<<else>>
			<<if ($dairySlimMaintain == 0)>>
				<<if ($slaves[_i].boobs < 25000)>>
					<<if $arcologies[0].FSAssetExpansionistResearch == 1>>
						<<if ($slaves[_i].boobs < 2000)>>
							<<set $slaves[_i].boobs += 500>>
						<<elseif ($slaves[_i].boobs < 5000)>>
							<<set $slaves[_i].boobs += 250>>
						<<else>>
							<<set $slaves[_i].boobs += 100>>
						<</if>>
					<<else>>
						<<set $slaves[_i].boobs += 25*Math.trunc(($injectionUpgrade*2)+$dairyFeedersSetting+$dairyRestraintsSetting+((50-$slaves[_i].physicalAge)/4))>>
					<</if>>
					<<if ($slaves[_i].boobs > 14900) && ($slaves[_i].boobs < 15100)>>
						<<set _boobtacular += 1>>
					<</if>>
				<<else>>
					<<set $slaves[_i].boobs to 25000>>
				<</if>>
			<</if>>
			<<if ($slaves[_i].balls > 0)>>
				<<if $arcologies[0].FSAssetExpansionistResearch == 1>>
					<<if ($slaves[_i].balls < 125)>>
						<<set $slaves[_i].balls += 1>>
					<</if>>
					<<if ($slaves[_i].balls == 125)>>
						<<set _balltacular += 1>>
					<</if>>
				<<elseif ($slaves[_i].balls < 6)>>
					<<if (random(1,100) > (40+(10*$slaves[_i].dick)-(10*$dairyRestraintsSetting)-($injectionUpgrade*10)))>>
					<<set $slaves[_i].balls += 1>>
					<</if>>
					<<if ($slaves[_i].balls is 6)>>
					<<set _balltacular += 1>>
					<</if>>
				<</if>>
				<<if ($slaves[_i].dick < 10)>>
					<<if (random(1,100) > (40+(10*$slaves[_i].dick)-(10*$dairyRestraintsSetting)-($injectionUpgrade*10)))>>
					<<set $slaves[_i].dick += 1>>
					<</if>>
				<</if>>
			<</if>>
		<</if>>
	<</if>>
	<<if ($dairyStimulatorsUpgrade == 1)>>
		<<if ($dairyStimulatorsSetting > 1) && ($slaves[_i].anus < 4)>>
			<<set $slaves[_i].anus += 1>>
			<<if ($slaves[_i].anus is 4)>>
			<<set _anusesStretched += 1>>
			<</if>>
		<<elseif ($slaves[_i].anus < 3)>>
			<<set $slaves[_i].anus += 1>>
		<</if>>
		<<if ($slaves[_i].health < 60)>>
			<<set $slaves[_i].health += 20>>
		<<elseif $dairySlimMaintain == 0>>
			<<if ($slaves[_i].boobs < 25000)>>
			<<if $arcologies[0].FSAssetExpansionistResearch == 1>>
				<<if ($slaves[_i].boobs < 2000)>>
				<<set $slaves[_i].boobs += 500>>
				<<elseif ($slaves[_i].boobs < 5000)>>
				<<set $slaves[_i].boobs += 250>>
				<<else>>
				<<set $slaves[_i].boobs += 100>>
				<</if>>
			<<else>>
				<<set $slaves[_i].boobs += 25*Math.trunc(($injectionUpgrade*2)+$dairyStimulatorsSetting+$dairyRestraintsSetting+((50-$slaves[_i].physicalAge)/4))>>
			<</if>>
				<<if ($slaves[_i].boobs > 14900) && ($slaves[_i].boobs < 15100)>>
				<<set _boobtacular += 1>>
				<</if>>
			<<else>>
				<<set $slaves[_i].boobs to 25000>>
			<</if>>
		<</if>>
	<</if>>
	<<if ($dairyRestraintsSetting > 1)>>
		<<set $slaves[_i].lactationAdaptation += 1>>
		<<if ($slaves[_i].fetish is "mindbroken")>>
			<<if ($slaves[_i].boobs > 24800)>>
			<<if (($slaves[_i].balls > 5) || ($slaves[_i].balls == 0))>>
			<<set $bioreactorPerfectedID to $slaves[_i].ID>>
			<</if>>
			<</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 to "hates anal">>
					<</if>>
				<</if>>
				<<if $dairyPregSetting > 1>>
					<<if ($slaves[_i].sexualFlaw != "hates penetration") && ($slaves[_i].sexualQuirk != "strugglefuck queen")>>
					<<set $slaves[_i].sexualFlaw to "hates penetration">>
					<</if>>
				<</if>>
				<<if $dairyFeedersSetting > 1>>
					<<if ($slaves[_i].sexualFlaw != "hates oral") && ($slaves[_i].sexualQuirk != "gagfuck queen")>>
					<<set $slaves[_i].sexualFlaw to "hates oral">>
					<</if>>
				<</if>>
			<</if>>
			<</if>>
			<</if>>
			<</if>>
		<</if>>
		<<if $slaves[_i].chem > 250>>
			<<set _chemSevere += 1>>
		<<elseif $slaves[_i].chem > 100>>
			<<set _chemMinor += 1>>
		<</if>>
	<</if>>
	<<if ($dairyStimulatorsSetting + $dairyFeedersSetting + $dairyPregSetting) > 5>>
		<<if $slaves[_i].devotion <= 95>>
		<<if $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 += 1>>
			<</if>>
			<<elseif ($slaves[_i].trust > -75)>>
			<<set $slaves[_i].trust -= 10>>
			<<if ($slaves[_i].trust < -65)>>
				<<set _horrified += 1>>
			<</if>>
			<<elseif ($slaves[_i].vaginalSkill > 0)>>
			<<set $slaves[_i].vaginalSkill -= 10, _skillsLost += 1>>
			<<elseif ($slaves[_i].oralSkill > 0)>>
			<<set $slaves[_i].oralSkill -= 10, _skillsLost += 1>>
			<<elseif ($slaves[_i].analSkill > 0)>>
			<<set $slaves[_i].analSkill -= 10, _skillsLost += 1>>
			<<elseif ($slaves[_i].career != "a bioreactor")>>
			<<set $slaves[_i].career to "a bioreactor", _careerForgotten += 1>>
			<<elseif ($slaves[_i].intelligence > -1)>>
			<<set $slaves[_i].intelligence -= 1, _intelligenceLost += 1>>
			<<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 += 1>>
			<<elseif ($slaves[_i].entertainSkill > 0)>>
			<<set $slaves[_i].entertainSkill -= 10, _skillsLost += 1>>
			<<elseif ($slaves[_i].intelligence > -2)>>
			<<set $slaves[_i].intelligence -= 1, _stupidified += 1>>
			<<elseif ($slaves[_i].fetish != "mindbroken")>>
			<<set $slaves[_i].fetish to "mindbroken", _mindbroken += 1>>
			<</if>>
		<</if>>
		<</if>>
		<</if>>
		<<if $slaves[_i].milk > 1000>>
			<<if ($slaves[_i].boobs > 12000) && ($slaves[_i].career != "a bioreactor")>>
				<<set $slaves[_i].career to "a bioreactor", _careerForgotten += 1>>
			<</if>>
		<</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 += 1>>
		<</if>>
		<<elseif ($slaves[_i].trust > -75)>>
		<<set $slaves[_i].trust -= 5>>
		<<if ($slaves[_i].trust < -70)>>
			<<set _horrified += 1>>
		<</if>>
		<<elseif ($slaves[_i].vaginalSkill >= 20)>>
		<<set $slaves[_i].vaginalSkill -= 10, _skillsLost += 1>>
		<<elseif ($slaves[_i].oralSkill >= 20)>>
		<<set $slaves[_i].oralSkill -= 10, _skillsLost += 1>>
		<<elseif ($slaves[_i].analSkill >= 20)>>
		<<set $slaves[_i].analSkill -= 10, _skillsLost += 1>>
		<<elseif ($slaves[_i].career != "a bioreactor")>>
		<<set $slaves[_i].career to "a bioreactor", _careerForgotten += 1>>
		<<elseif ($slaves[_i].intelligence > -1)>>
		<<set $slaves[_i].intelligence -= 1, _intelligenceLost += 1>>
		<<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 += 1>>
		<<elseif ($slaves[_i].entertainSkill >= 20)>>
		<<set $slaves[_i].entertainSkill -= 10, _skillsLost += 1>>
		<<elseif ($slaves[_i].intelligence > -2)>>
		<<set $slaves[_i].intelligence -= 1, _stupidified += 1>>
		<<elseif ($slaves[_i].fetish != "mindbroken")>>
		<<set $slaves[_i].fetish to "mindbroken", _mindbroken += 1>>
		<</if>>
	<<elseif $slaves[_i].milk > 1000>>
		<<if ($slaves[_i].boobs > 12000) && ($slaves[_i].career != "a bioreactor")>>
			<<set $slaves[_i].career to "a bioreactor", _careerForgotten += 1>>
		<</if>>
	<</if>>
	<<if ($arcologies[0].FSBodyPuristLaw == 0) && ($healthyDrugsUpgrade == 0)>>
		<<set $slaves[_i].chem += 2>>
	<<else>>
		<<set $slaves[_i].chem += 1>>
	<</if>>
	<</if>>
	<<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 is -2)>>
			<<set $slaves[_i].preg to 0, _desterilized += 1>>
			<</if>>
			<<if isFertile($slaves[_i])>>
				<<if $slaves[_i].eggType == "human">>
				<<set $slaves[_i].preg to 1>>
				<<if ($dairyPregSetting > 2)>>
				<<set $slaves[_i].pregType to random(10,29)>>
				<<elseif ($dairyPregSetting > 1)>>
				<<set $slaves[_i].pregType to random(3,5)>>
				<<else>>
				<<set $slaves[_i].pregType to either(1, 1, 1, 1, 2, 2, 2, 3, 3, 4)>>
				<</if>>
				<<set $slaves[_i].pregSource to -2>>
				<</if>>
				<<if ($slaves[_i].vagina == 0)>>
				<<set $slaves[_i].vagina to 1>>
				<</if>>
			<</if>>
			<<if ($slaves[_i].preg > 0)>>
			<<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 += 1>>
				<<if ($slaves[_i].vagina is 4)>>
				<<set _vaginasStretched += 1>>
				<</if>>
			<<elseif ($slaves[_i].vagina < 3)>>
				<<set $slaves[_i].vagina += 1>>
			<</if>>
			<</if>>
		<</if>>
	<</if>>
<</for>>

<<if _MMWorkout > (random(1,100)+$Milkmaid.muscles) && $Milkmaid.muscles < 60>>
	<<set _MMMuscles = 1>>
<</if>>

<<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>>

<<set _Tadd = ($bioreactorsXY + $bioreactorsXX + $bioreactorsHerm + $bioreactorsBarren)>>
<<if ($dairySlaves + _Tadd > 0)>>

	<<if $seeImages == 1>><br style="clear:both" /><</if>>
	<<if ($dairySlaves == 1)>>''There is 1 cow in $dairyName.''<<else>>''There are $dairySlaves cows in $dairyName.''<</if>>

	<<if ($dairyRestraintsSetting > 1)>>
	It functions as an industrial slave products factory.
	<</if>>
	<<if (_Tadd > 0)>>
	_Tadd milking machines have permanent biological components, making a total of <<print _Tadd + $dairySlaves>> milk-producing bodies.
	<<set _seed to (3*$bioreactorsXY) + (3*$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 to ($bioreactorsXX) + ($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 to (300*$bioreactorsXX) + (250*$bioreactorsBarren) + (200*$bioreactorsXY) + (200*$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>>
	<</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 to $cash-$oldCash>>

	<<if ($Milkmaid != 0)>>
	$Milkmaid.slaveName is serving as your milkmaid<<if $Milkmaid.relationship is -3>> She tries her best to be your perfect farmwife<</if>>.
	<<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>>
		<<set _Tmult = (_milkmaidImpregnated * 10), $slaves[_MM].penetrativeCount += _Tmult, $Milkmaid.penetrativeCount += _Tmult, $penetrativeTotal += _Tmult>>
	<</if>>
	<<if (_milkmaidFetish == 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 @@color:lightcoral;become more of a breast girl.@@
	<<elseif (_milkmaidFetish == 2)>>
		It's a hard life, pulling teats and washing cows, but it does @@color:lightsalmon;make her more of a breast fetishist.@@
	<</if>>
	<<if ($Milkmaid.muscles > 30)>>
		Her muscles help her handle the fattest or most reluctant cow.
	<</if>>
	<<if (_MMMuscles == 1)>>
		Her constant handling of unruly or heavy cows forces her to @@color:lime;build muscle.@@
		<<set $slaves[_MM].muscles += 1>>
	<</if>>
	<<if ($Milkmaid.oralSkill > 30)>>
		Her skilled tongue helps her keep her girls happy.
	<</if>>
	<<if ($Milkmaid.oralSkill < 90)>>
		<<set $skillIncrease = 3>>
		<<OralSkillIncrease $slaves[_MM]>>
	<</if>>
	<<if ($Milkmaid.sexualQuirk is "caring")>>
		She's very caring, and does her best to get the cows to trust her.
	<</if>>
	<<if ($Milkmaid.behavioralQuirk is "funny")>>
		She's funny, and does her best to get the cows to trust her by keeping them laughing.
	<</if>>
	<<set $toSearch to $Milkmaid.career>>
	<<if $milkmaidCareers.contains($toSearch)>>
		She has career experience dealing with milk animals.
	<</if>>

	<<print _MMAttentionString>>

	<<if (_cumWeek > 0) && ($dairyStimulatorsSetting < 2)>>
	<<if ($Milkmaid.dick > 4) && (canPenetrate($Milkmaid))>>
		She uses her turgid cock to give prostate stimulation to slaves that need help ejaculating.
	<</if>>
	<</if>>
	<</if>>

<<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 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)>>
$dairyNameCaps produced <<print _milkWeek+((8*$inflatedSlavesMilk*10)+8)>> liters of milk<<if _cumWeek > 0>> and <<print _cumWeek+(((80*$inflatedSlavesCum*10)+80)/10)>> liters of cum<</if>> this week.
<<if $inflatedSlavesMilk > 0>>
	<<print ((8*$inflatedSlavesMilk*10)+8)>> liters of milk were pumped into your penthouse for filling slaves this week.
<</if>>
<<if $inflatedSlavesCum > 0>>
	<<if $inflatedSlavesMilk > 0>>and <</if>><<print (((80*$inflatedSlavesCum*10)+80)/10)>> 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">>
<<if $dairyPregSetting > 0>>
	The Societal Elite know what you are doing with your cows. @@color: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. @@color:red;They are not amused by your disenterest in eugenics@@.
	<<set $failedElite += 10>>
<</if>>
<</if>>

These products sell for @@color:yellowgreen;¤_profits@@.

<<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 your 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 ($dairy < ($dairySlaves + _Tadd))>>
	<<set $dairySpots to 0>>
	<br>
<<else>>

<<set $dairySpots to $dairy - $dairySpots>>

<<if ($createBioreactors == 1) && ($bioreactorPerfectedID != 0)>>
	<<for _i to 0; _i < _SL; _i++>>
	<<if ($slaves[_i].ID is $bioreactorPerfectedID)>>
		$slaves[_i].slaveName'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 += 1>>
		<<else>>
			<<set $bioreactorsHerm += 1>>
		<</if>>
		<<else>>
		<<if ($slaves[_i].balls == 0)>>
			<<set $bioreactorsBarren += 1>>
		<<else>>
			<<set $bioreactorsXY += 1>>
		<</if>>
		<</if>>
		<<set $activeSlave to $slaves[_i]>>
		<<include "Remove activeSlave">>
		<<break>>
	<</if>>
	<</for>>
	<br>
<</if>>

<</if>>

<<if $dairyDecoration != "standard">>
	$dairyNameCaps's @@color:green;$dairyDecoration style is well known.@@
<</if>>

<<else>>
	''$dairyNameCaps is empty.''
	<<set $dairySpots to $dairy>>
<</if>>
<br><br>

repo_name: Akane/fc