:: 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.<br><br>
<</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.<br><br>
	<<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.<br><br>
	<</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.<br><br>
	<<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.<br><br>
	<</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.
	<br><br>
<<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.
	<br><br>
	<</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>>
		<br><br>
	<<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>>
		<br><br>
	<</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>>

<br>$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//

<br>
<<if $dairyFeedersUpgrade == 1>>
	The milking machines can hold feeders in slaves' mouths and inject drugs into their bodies, ensuring ideal nutrition and production.
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	<<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>>

<br>
<<if $dairyPregUpgrade == 1>>
	$dairyName can support cow pregnancies.
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	<<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.
	<br>&nbsp;&nbsp;&nbsp;&nbsp; [[Upgrade the dairy to support pregnancies|Dairy][$cash -= 2500, $dairyPregUpgrade to 1]] //Costs ¤2500 and will increase upkeep costs//
<</if>>

<br>
<<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>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	<<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)>>
<br>
<<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>>

<br>
<<if $dairyRestraintsUpgrade == 1>>
	$dairyNameCaps is equipped to restrain cows.
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	<<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)>>
	<br>
	<<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)>>
	<br>
	<<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>>

<br>
<<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)>>
	<br><br>@@color:yellow;WARNING:@@ current milking machine settings may have irreversible effects on cows.
<</if>>

<br><br>
<<if $Milkmaid != 0>>
	<<set $Flag to 2>>
	<<include "Slave Summary">>
	<<if canAchieveErection($Milkmaid) && $Milkmaid.pubertyXY == 1>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		<<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>>
	<br><br>''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>>
	<br><br>''Send a slave to the dairy:''
	<<set $Flag to 0>>
	<<include "Slave Summary">>
<</if>>
<<unset $Flag>>

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