code:
:: Dispensary [nobr]

<<set $HackingSkillMultiplier = HSM()>>
<<set $nextButton = "Back", $nextLink = "Manage Penthouse", $showEncyclopedia = 1, $encyclopedia = "The Pharmaceutical Fab.", _PCSkillCheck = Math.max($upgradeMultiplierMedicine, $HackingSkillMultiplier)>>

The Dispensary

<<if $dispensaryUpgrade == 0>>
	//The pharmaceutical fabricator is running smoothly. It can cheaply replicate complex medications, and has already cut the cost of drugs for your slaves by a fourth. It can easily produce advanced drugs should you obtain the data necessary to create them.//

<<else>>
	//The pharmaceutical fabricator is running smoothly. It can cheaply and quickly replicate complex medications, and has already cut the cost of drugs for your slaves in half. It can easily produce advanced drugs should you obtain the data necessary to create them.//

<</if>>

<<if ($dispensaryUpgrade == 0)>>
	<<if ($rep > 5000)>>
		[[Upgrade the pharmaceutical fabricator|Dispensary][cashX(forceNeg(Math.trunc(30000*$upgradeMultiplierArcology)), "capEx"), $dispensaryUpgrade = 1, $drugsCost = (($drugsCost*2)/3)]]
		//Costs <<print cashFormat(Math.trunc(30000*$upgradeMultiplierArcology))>>//

    //Will improve production efficiency further decreasing costs.//

	<<else>>
		//You lack the reputation to obtain cutting-edge pharmaceutical fabricator upgrades//

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

Hormones Upgrades

The fabricator is producing
<<if $injectionUpgrade == 0>>
	standard growth hormones.
	<<if $rep > 6000>>
		[[Purchase data on prototype growth hormone tests|Dispensary][cashX(forceNeg(25000*_PCSkillCheck), "capEx"), $injectionUpgrade = 1]]
		//Costs <<print cashFormat(25000*_PCSkillCheck)>>//

    //Should improve the reliability of growth injections of all kinds.//

	<<else>>
		//You lack the reputation to obtain prototype medicines//

	<</if>>
<<elseif $injectionUpgrade == 1>>
	prototype growth hormones.
	<<if $rep > 10000>>
		[[Upgrade the fabricator to customize each slave's growth hormones|Dispensary][cashX(forceNeg(50000*_PCSkillCheck), "capEx"), $injectionUpgrade = 2]]
		//Costs <<print cashFormat(50000*_PCSkillCheck)>>//

    //Should improve the reliability of growth injections of all kinds.//

	<<else>>
		//You lack the reputation to obtain prototype fabricator upgrades//

	<</if>>
<<elseif $injectionUpgrade == 2>>
	prototype growth hormones.
	<<if $rep > 14000>>
		[[Upgrade the fabricator with prototype biomechanical microfactories|Dispensary][cashX(forceNeg(100000*_PCSkillCheck), "capEx"), $injectionUpgrade = 3]]
		//Costs <<print cashFormat(100000*_PCSkillCheck)>>//

    //Should improve the reliability of growth injections of all kinds.//

	<<else>>
		//You lack the reputation to obtain prototype biomechanical microfactories//

	<</if>>
<<else>>
	the world's most effective growth hormones.

<</if>>

The fabricator is producing
<<if $hormoneUpgradeMood == 0>>
	standardized hormone replacement therapies.
	<<if $rep > 2000>>
		[[Upgrade for individualized therapy|Dispensary][cashX(forceNeg(10000*_PCSkillCheck), "capEx"), $hormoneUpgradeMood = 1]]
		//Costs <<print cashFormat(10000*_PCSkillCheck)>>//

    //Should eliminate the occasional moodiness and sexual disinterest caused by generalized therapy.//

	<<else>>
		//You lack the reputation to obtain advanced drug manufacturing components//

	<</if>>
<<else>>
	individualized hormone replacement therapies.

<</if>>

The hormone replacement therapies
<<if $hormoneUpgradePower == 0>>
	are traditional: they're formulated to mimic natural hormones.
	<<if $rep > 4000>>
		[[Purchase data on advanced HRT|Dispensary][cashX(forceNeg(25000*_PCSkillCheck), "capEx"), $hormoneUpgradePower = 1]]
		//Costs <<print cashFormat(25000*_PCSkillCheck)>>//

    //Should increase the power of hormone therapies.//

	<<else>>
		//You lack the reputation to obtain prototype medicines//

	<</if>>
<<else>>
	are advanced: they're formulated to improve on natural hormones.

<</if>>

The hormone replacement therapies
<<if $hormoneUpgradeShrinkage == 0>>
	are broad-spectrum.
	<<if $rep > 4000>>
		[[Purchase data on targeted HRT|Dispensary][cashX(forceNeg(25000*_PCSkillCheck), "capEx"), $hormoneUpgradeShrinkage = 1]]
		//Costs <<print cashFormat(25000*_PCSkillCheck)>>//

    //Should reduce atrophy of organs corresponding to original sex.//

	<<else>>
		//You lack the reputation to obtain prototype medicines//

	<</if>>
<<else>>
	are targeted, reducing atrophy of organs corresponding to original sex.

<</if>>

<<if $precociousPuberty == 1>>
	<<if ($pubertyHormones == 0) && ($rep <= 4500*_PCSkillCheck)>>
		//You lack the reputation to fund forced puberty drugs//

	<<elseif ($pubertyHormones == 0) && ($rep > 4500*_PCSkillCheck)>>
		[[Fund research into powerful hormonal injections to jumpstart puberty|Dispensary][cashX(forceNeg(30000*_PCSkillCheck), "capEx"), $pubertyHormones = 1]]
		//Costs <<print cashFormat(30000*_PCSkillCheck)>>//

    //Will allow the production of powerful hormonal drugs designed to force a slave through puberty without regard for side effects. //

	<<elseif ($pubertyHormones == 1)>>
		The fabricator is producing extra strong hormonal drugs designed to force a slave through puberty.

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

Dietary Upgrades

<<if $feeder == 1>>
	<<if ($dietXXY == 0) && ($rep <= 3500*_PCSkillCheck)>>
		//You lack the reputation to fund research into hermaphrodite hormones//

	<<elseif ($dietXXY == 0) && ($rep > 3500*_PCSkillCheck)>>
		[[Fund research into developing hermaphrodite hormone therapies|Dispensary][cashX(forceNeg(10000*_PCSkillCheck), "capEx"), $dietXXY = 1]]
		//Costs <<print cashFormat(10000*_PCSkillCheck)>>//

    //Will allow for specially balanced meals to be served in the cafeteria designed to promote both halves of a herm's sexuality. //

	<<elseif ($dietXXY == 1)>>
		The fabricator is producing meals to be served in the cafeteria designed to promote both halves of a herm's sexuality.

	<</if>>
<<else>>
	The feeders are incapable of modifying slave diets well enough to adjust hormones for hermaphrodite meals.

<</if>>

<<if $seePreg == 1>>
<<if $feeder == 1>>
	<<if ($reproductionFormula == 0) && ($rep <= 10000*_PCSkillCheck)>>
		//You lack the reputation to access breeders' dietary blends//

	<<elseif ($reproductionFormula == 0) && ($rep > 10000*_PCSkillCheck)>>
		[[Purchase reputable breeders' dietary blends|Dispensary][cashX(forceNeg(25000*_PCSkillCheck), "capEx"), $reproductionFormula = 1]]
		//Costs <<print cashFormat(25000*_PCSkillCheck)>>//

    //Will allow for specially refined meals to be served in the cafeteria designed to promote energetic sperm and robust pregnancies. Side effects may include an increased number of twins being conceived.//

	<<elseif ($reproductionFormula == 1)>>
		The fabricator is producing meals to be served in the cafeteria that promote energetic sperm and robust pregnancies.

	<</if>>
<<else>>
	The feeders are incapable of modifying slave diets well enough to manage to enhance reproductive ability.

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

<<if $cumProDiet == 0>>
	[[Purchase recipes to encourage cum production|Dispensary][cashX(forceNeg(5000*_PCSkillCheck), "capEx"), $cumProDiet = 1]]
	//Costs <<print cashFormat(5000*_PCSkillCheck)>>//

    //Will allow for specially designed meals to be served in the cafeteria to promote cum production.//

<<elseif $cumProDiet == 1>>
	The fabricator is producing meals to be served in the cafeteria designed to promote cum production.

<</if>>

<<if $seePreg == 1>>
	<<if $dietFertility != 1>>
		[[Purchase recipes to encourage ovulation|Dispensary][cashX(forceNeg(5000*_PCSkillCheck), "capEx"), $dietFertility = 1]]
		//Costs <<print cashFormat(5000*_PCSkillCheck)>>//

    //Will allow for specially designed meals to be served in the cafeteria to promote slave fertility.//

	<<elseif $dietFertility == 1>>
		The fabricator is producing meals to be served in the cafeteria designed to promote slave fertility.

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

<<if $dietCleanse == 0>>
	[[Purchase cleansing recipes to lessen carcinogen buildup|Dispensary][cashX(forceNeg(10000*_PCSkillCheck), "capEx"), $dietCleanse = 1]]
	//Costs <<print cashFormat(10000*_PCSkillCheck)>>//

    //Will allow for specially designed meals to be served in the cafeteria to counteract excessive drug use.//

<<elseif $dietCleanse == 1>>
	The fabricator is producing meals to be served in the cafeteria designed to counteract excessive drug use and good health. They smell awful and taste worse than they look, but they're healthy.

<</if>>

Pharmacological Upgrades

<<if ($curativeUpgrade == 0) && ($rep > 6000*_PCSkillCheck)>>
	[[Purchase data on advanced curatives|Dispensary][cashX(forceNeg(25000*_PCSkillCheck), "capEx"), $curativeUpgrade = 1]]
	//Costs <<print cashFormat(25000*_PCSkillCheck)>>//

    //Should improve the effectiveness of curative treatment.//

<<elseif ($curativeUpgrade == 1)>>
	The fabricator is producing highly effective curative cocktails.

<</if>>

<<if ($growthStim == 0) && ($rep > 6000*_PCSkillCheck)>>
	[[Purchase data on growth stimulants|Dispensary][cashX(forceNeg(20000*_PCSkillCheck), "capEx"), $growthStim = 1]]
	//Costs <<print cashFormat(20000*_PCSkillCheck)>>//

    //Will allow the manufacturing of drugs to encourage growth in slave height.//

<<elseif ($growthStim == 1)>>
	The fabricator is able to produce growth stimulants.

<</if>>

<<if ($aphrodisiacUpgradeRefine == 0) && ($rep > 6000*_PCSkillCheck)>>
	[[Purchase data on refined aphrodisiacs|Dispensary][cashX(forceNeg(20000*_PCSkillCheck), "capEx"), $aphrodisiacUpgradeRefine = 1]]
	//Costs <<print cashFormat(20000*_PCSkillCheck)>>//

    //Will prevent most physical side effects of aphrodisiacs. Once the formulas are changed they cannot be changed back.//

<<elseif ($aphrodisiacUpgradeRefine == 1)>>
	The fabricator is producing refined aphrodisiacs with limited hormonal effects.

<</if>>

<<if ($aphrodisiacUpgrade == 0) && ($rep > 6000*_PCSkillCheck)>>
	[[Purchase data on aphrodisiac withdrawal treatment|Dispensary][cashX(forceNeg(10000*_PCSkillCheck), "capEx"), $aphrodisiacUpgrade = 1]]
	//Costs <<print cashFormat(10000*_PCSkillCheck)>>//

    //Should prevent most negative effects of withdrawal.//

<<elseif ($aphrodisiacUpgrade == 1)>>
	The fabricator is producing a substitute that will protect slaves from aphrodisiac withdrawal.

<</if>>

<<if ($healthyDrugsUpgrade == 0)>>
	<<if ($injectionUpgrade != 0) && ($curativeUpgrade == 1) && ($aphrodisiacUpgrade == 1)>>
		<<if ($rep >= 15000*_PCSkillCheck)>>
			[[Fund research into drug formulations without negative physical side effects|Dispensary][cashX(forceNeg(500000*_PCSkillCheck), "capEx"),$healthyDrugsUpgrade = 1]]
			//Costs <<print cashFormat(500000*_PCSkillCheck)>>//

    //Will prevent the negative side effects of excessive drug usage on your slaves.//

		<<else>>
			// You lack the reputation to access the technology necessary to develop advanced drug formulations. //

		<</if>>
	<<else>>
		// You must purchase all other major upgrades before developing advanced drug formulations. //

	<</if>>
<<else>>
	The fabricator has been upgraded to optimize the structures of your other drugs, eliminating their negative side effects.

<</if>>
/* Code [draft] contributed by Anon1888 */

<<if ($arcologies[0].FSBodyPuristLaw == 1)>>
	//The pharmaceutical fabricator is working with your body purist arcology to reduce long term drug side effects.//

<</if>>

<<if $seePreg != 0>>

Fertility Focused Pharmacology

<<if $seeHyperPreg == 1>>
	<<if $superFertilityDrugs == 1 && ($rep > 10000*_PCSkillCheck) && $pregSpeedControl != 1>>
		[[Fund research pregnancy speed control methods|Dispensary][cashX(forceNeg(200000*_PCSkillCheck), "capEx"), $pregSpeedControl = 1, $clinicSpeedGestation = 0]]
		//Costs <<print cashFormat(200000*_PCSkillCheck)>>//

    // Fund underground research labs to develop methods for controlling pregnancy progress. //

	<<elseif ($rep <= 10000*_PCSkillCheck) && $pregSpeedControl != 1>>
		//You lack the reputation required to contact underground research labs to develop methods for controlling pregnancy progress.//

	<<elseif ($pregSpeedControl == 1)>>
		The fabricator is producing extremely complex gestation control agents. They can be used to control gestation speed, and even suppress labor for some time. //

	<</if>>
<<elseif $birthsTotal > 10>>
	<<if ($rep > 10000*_PCSkillCheck) && $pregSpeedControl != 1>>
		[[Fund research pregnancy speed control methods|Dispensary][cashX(forceNeg(200000*_PCSkillCheck), "capEx"), $pregSpeedControl = 1, $clinicSpeedGestation = 0]]
		//Costs <<print cashFormat(200000*_PCSkillCheck)>>//

    // Fund underground research labs to develop methods for controlling pregnancy progress. //

	<<elseif ($rep <= 10000*_PCSkillCheck) && $pregSpeedControl != 1>>
		//You lack the reputation required to contact underground research labs to develop methods for controlling pregnancy progress.//

	<<elseif ($pregSpeedControl == 1)>>
		The fabricator is producing extremely complex gestation control agents. They can be used to control gestation speed, and even suppress labor for some time. //

	<</if>>
<<else>>
	//You lack the experience handling pregnant slaves required to convince underground research labs to do business with you in the development of controlled fetal development.//

<</if>>

<<if ($superFertilityDrugs == 0) && ($rep > 2500*_PCSkillCheck) && $seeHyperPreg == 1>>
	[[Purchase data on powerful fertility drugs|Dispensary][cashX(forceNeg(20000*_PCSkillCheck), "capEx"), $superFertilityDrugs = 1]]
	//Costs <<print cashFormat(20000*_PCSkillCheck)>>//

    //Should improve the likelihood of conception and multiples. //

<<elseif ($superFertilityDrugs == 1)>>
	The fabricator is producing highly effective fertility agents. There is a warning present involving overdosing and instances of ten or more children.

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

Future Societies Research

<<if ($ImplantProductionUpgrade == 1) && ($arcologies[0].FSTransformationFetishistDecoration >= 100)>>
	<<if ($arcologies[0].FSTransformationFetishistResearch == 0) && ($rep <= 5000*_PCSkillCheck)>>
		//You lack the reputation to access experimental gigantic implants and elasticizing filler.//

	<<elseif ($arcologies[0].FSTransformationFetishistResearch == 0)>>
		[[Purchase data on gigantic implants and elasticizing filler|Dispensary][cashX(forceNeg(20000*_PCSkillCheck), "capEx"), $arcologies[0].FSTransformationFetishistResearch = 1]]
		//Costs <<print cashFormat(20000*_PCSkillCheck)>>//

    //Will allow the fabrication of gigantic implants using the autosurgery and filler capable of overfilling existing fillable implants.//

	<<elseif ($arcologies[0].FSTransformationFetishistResearch > 0)>>
		The fabricator is capable of crafting gigantic implants and elasticizing filler designed to overfill existing implants.

	<</if>>
<<elseif $arcologies[0].FSTransformationFetishistResearch == 1>>
	The fabricator is capable of crafting gigantic implants and elasticizing filler designed to overfill existing implants.

<<else>>
	// Transformation Fetishist focused research unavailable. //

<</if>>

<<if $arcologies[0].FSAssetExpansionistDecoration == 100>>
	<<if ($arcologies[0].FSAssetExpansionistResearch == 0)>>
		<<if ($rep >= 5000*_PCSkillCheck)>>
			[[Fund research into drug formulations for growth without limit|Dispensary][cashX(forceNeg(30000*_PCSkillCheck), "capEx"),$arcologies[0].FSAssetExpansionistResearch = 1]] //Costs <<print cashFormat(30000*_PCSkillCheck)>>. Will allow creation of drugs to push assets to unthinkable sizes.//

		<<else>>
			// You lack the reputation to access the research necessary to develop advanced growth drug formulations. //

		<</if>>
	<<else>>
		The fabricator has been upgraded to manufacture extremely powerful growth drugs.

	<</if>>
<<elseif $arcologies[0].FSAssetExpansionistResearch == 1>>
	The fabricator has been upgraded to manufacture extremely powerful growth drugs.

<<else>>
	// Asset Expansionist focused research unavailable. //

<</if>>

<<if $arcologies[0].FSSlimnessEnthusiastDecoration == 100>>
	<<if ($arcologies[0].FSSlimnessEnthusiastResearch == 0)>>
		<<if ($rep >= 5000*_PCSkillCheck)>>
			[[Fund research into drug formulations for slimming slaves|Dispensary][cashX(forceNeg(30000*_PCSkillCheck), "capEx"),$arcologies[0].FSSlimnessEnthusiastResearch = 1]] //Costs <<print cashFormat(30000*_PCSkillCheck)>>. Will allow creation of drugs to shrink assets.//

		<<else>>
			// You lack the reputation to access the research necessary to develop asset reducing drug formulations. //

		<</if>>
	<<else>>
		The fabricator has been upgraded to manufacture growth reversing drugs.

	<</if>>
<<elseif $arcologies[0].FSSlimnessEnthusiastResearch == 1>>
	The fabricator has been upgraded to manufacture growth reversing drugs.

<<else>>
	// Slimness Enthusiast focused research unavailable. //

<</if>>

<<if $arcologies[0].FSYouthPreferentialistDecoration == 100>>
	<<if ($arcologies[0].FSYouthPreferentialistResearch == 0)>>
		<<if ($rep >= 5000*_PCSkillCheck)>>
			[[Fund research into skin care designed to reverse the effects of aging|Dispensary][cashX(forceNeg(30000*_PCSkillCheck), "capEx"),$arcologies[0].FSYouthPreferentialistResearch = 1]] //Costs <<print cashFormat(30000*_PCSkillCheck)>>. Will allow creation of beauty creams designed to make slaves look young again.//

		<<else>>
			// You lack the reputation to access the research necessary to develop beauty creams designed to make slaves look young again. //

		<</if>>
	<<else>>
		The fabricator has been upgraded to manufacture extremely effective beauty creams designed to combat aging.

	<</if>>
<<elseif $arcologies[0].FSYouthPreferentialistResearch == 1>>
	The fabricator has been upgraded to manufacture extremely effective beauty creams designed to combat aging.

<<else>>
	// Youth Preferentialist focused research unavailable. //

<</if>>

<<if $arcologies[0].FSHedonisticDecadenceDecoration == 100>>
	<<if ($arcologies[0].FSHedonisticDecadenceResearch == 0)>>
		<<if ($rep >= 5000*_PCSkillCheck)>>
			[[Purchase recipes for concentrated, shaped slave food|Dispensary][cashX(forceNeg(50000*_PCSkillCheck), "capEx"),$arcologies[0].FSHedonisticDecadenceResearch = 1]] //Costs <<print cashFormat(50000*_PCSkillCheck)>>. Will allow production of solid slave food in various familiar shapes and flavors. Addictive and a little fatty.<<if $arcologies[0].FSDegradationist != "unset">> Since your slaves don't deserve luxuries, a modified recipe formulated to cause severe stomach cramps minutes after ingestion will be developed.<</if>> //

		<<else>>
			// You lack the reputation to access the research necessary to purchase concentrated, shaped slave food recipes. //

		<</if>>
	<<else>>
		The fabricator has been upgraded to manufacture tasty, extremely addictive, solid slave food in various familiar shapes and flavors. While they look and taste like real food, their consistency is all wrong. Slaves gorging on them are likely to experience steady weight gain.<<if $arcologies[0].FSDegradationist != "unset">> Since your slaves don't deserve luxuries, all food crafted will cause severe stomach cramps minutes after ingestion. Coupled with their addictive nature, it ought to be quite torturous.<</if>>
		<<if $arcologies[0].FSSlimnessEnthusiast > 50 && $arcologies[0].FSHedonisticDecadenceDietResearch == 0>>

			[[Purchase diet recipes|Dispensary][cashX(forceNeg(10000*_PCSkillCheck), "capEx"),$arcologies[0].FSHedonisticDecadenceDietResearch = 1]]
			//Costs <<print cashFormat(10000*_PCSkillCheck)>>//

			Will prevent rampant weight gain from ruining your slim slaves.

		<<elseif $arcologies[0].FSHedonisticDecadenceDietResearch == 1>>
			A diet recipe is being utilized to prevent unwanted weight gain.

		<</if>>
	<</if>>
<<elseif $arcologies[0].FSHedonisticDecadenceResearch == 1>>
	The fabricator has been upgraded to manufacture tasty, extremely addictive, solid slave food in various familiar shapes and flavors. While they look and taste like real food, their consistency is all wrong. Slaves gorging on them are likely to experience steady weight gain.<<if $arcologies[0].FSDegradationist != "unset">> Since your slaves don't deserve luxuries, all food crafted will cause severe stomach cramps minutes after ingestion. Coupled with their addictive nature, it ought to be quite torturous.<</if>>
	<<if $arcologies[0].FSHedonisticDecadenceDietResearch == 0>>

		[[Purchase diet recipes|Dispensary][cashX(forceNeg(10000*_PCSkillCheck), "capEx"),$arcologies[0].FSHedonisticDecadenceDietResearch = 1]]
		//Costs <<print cashFormat(10000*_PCSkillCheck)>>//

		Will prevent rampant unwanted weight gain from ruining your <<if $arcologies[0].FSSlimnessEnthusiast > 20>>slim <</if>>slaves.

	<<elseif $arcologies[0].FSHedonisticDecadenceDietResearch == 1>>
		A diet recipe is being utilized to prevent unwanted weight gain.

	<</if>>

	<<link "Cancel solid slave food production" "Dispensary">><<set $arcologies[0].FSHedonisticDecadenceResearch = 0>><<set $merchantFSWares.push("HedonisticDecadenceResearch")>><</link>>

	Will //completely// remove this research.

<<else>>
	// Hedonistic Decadence focused research unavailable. //

<</if>>


code:
:: DJ Select [nobr]

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

$He will headline entertainment in $clubName.
<<else>>
	You have not selected a DJ.
<</if>>

''Appoint a DJ from your devoted slaves:''

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

<<assignmentFilter>>

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

repo_name: oxone/fc


code:
:: DJ Workaround [silently]

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

<<goto "Club">>


code:
:: Economics [nobr]

 <<print $arcologies[0].name + " Weekly Financial Report — Week " + $week>>

<<set $nextButton = "Continue", $nextLink = "Scheduled Event">>

<<if $cash > -10000>>
	<<set $debtWarned = 0>>
<</if>>

<<SectorCounts>>
<<UpdateOwnership>>

<<include "Markets Report">>

<<if $useTabs == 0>>
<<include "Neighbors Development">>

<<include "Arcology Management">>

<<if $FSAnnounced > 0>>

	<<include "FS Developments">>
<</if>>

<<if $corpIncorporated == 1>>

	<<include "Corporation Developments">>
<</if>>

<<if $secExp == 1>>

	<<include "authorityReport">>

	<<include "securityReport">>
<</if>>

<<include "Reputation">>

<<include "Personal Business">>

<<if ($PC.boobs == 1 && $PC.boobsBonus > 0) || $PC.pregKnown == 1 || $playerAging != 0>>

	<<include "Personal Notes">>
<</if>>

<<else>>
<<CreateSimpleTabs>>

	<button class="tablinks" onclick="opentab(event, 'Arcologies')" id="defaultOpen">Arcologies</button>
	<button class="tablinks" onclick="opentab(event, 'Management')">Arcology Management</button>
	<<if $FSAnnounced > 0>>
		<button class="tablinks" onclick="opentab(event, 'Societies')">Society Development</button>
	<</if>>
	<<if $corpIncorporated == 1>>
		<button class="tablinks" onclick="opentab(event, 'Corporation')">Corporation Developments</button>
	<</if>>
	<<if $secExp == 1>>
		<button class="tablinks" onclick="opentab(event, 'Authority')">Authority</button>
		<button class="tablinks" onclick="opentab(event, 'securityReport')">Security</button>
	<</if>>
	<button class="tablinks" onclick="opentab(event, 'Reputation')">Reputation</button>
	<button class="tablinks" onclick="opentab(event, 'Business')">Personal Business</button>
	<<if ($PC.boobs == 1 && $PC.boobsBonus > 0) || $PC.pregKnown == 1 || $playerAging != 0>>
		<button class="tablinks" onclick="opentab(event, 'Personal')">Personal Notes</button>
	<</if>>

		<<include "Neighbors Development">>

		<<include "Arcology Management">>

<<if $FSAnnounced > 0>>

			<<include "FS Developments">>

<</if>>

<<if $corpIncorporated == 1>>

			<<include "Corporation Developments">>

<</if>>

		<<include "authorityReport">>

		<<include "securityReport">>

		<<include "Reputation">>

		<<include "Personal Business">>

<<if ($PC.boobs == 1 && $PC.boobsBonus > 0) || $PC.pregKnown == 1 || $playerAging != 0>>

			<<include "Personal Notes">>

<</if>>

<</if>>


code:
:: End Week [nobr]

<<set State.expired.length = 0>>

<<set $gingering = 0, $oralUseWeight = 5, $vaginalUseWeight = 5, $analUseWeight = 5, $mammaryUseWeight = 1, $penetrativeUseWeight = 1, $inflatedSlavesMilk = 0, $inflatedSlavesCum = 0, $subSlaves = 0>>

<<if $OralEncouragement == 1>>
	<<set $oralUseWeight += 2, $vaginalUseWeight -= 1, $analUseWeight -= 1>>
<<elseif $VaginalEncouragement == 1>>
	<<set $oralUseWeight -= 1, $vaginalUseWeight += 2, $analUseWeight -= 1>>
<<elseif $AnalEncouragement == 1>>
	<<set $oralUseWeight -= 1, $vaginalUseWeight -= 1, $analUseWeight += 2>>
<</if>>
<<if $OralDiscouragement == 1>>
	<<set $oralUseWeight -= 2, $vaginalUseWeight += 1, $analUseWeight += 1>>
<</if>>
<<if $VaginalDiscouragement == 1>>
	<<set $oralUseWeight += 1, $vaginalUseWeight -= 2, $analUseWeight += 1>>
<</if>>
<<if $AnalDiscouragement == 1>>
	<<set $oralUseWeight += 1, $vaginalUseWeight += 1, $analUseWeight -= 2>>
<</if>>
<<if $sexualOpeness == 1>>
	<<set $penetrativeUseWeight++>>
<</if>>

<<for _i = 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].inflationMethod == 1 || $slaves[_i].inflationMethod == 2>>
		<<if $slaves[_i].inflationType == "milk">>
			<<set $inflatedSlavesMilk++>>
		<<elseif $slaves[_i].inflationType == "cum">>
			<<set $inflatedSlavesCum++>>
		<</if>>
	<</if>>
	<<if $slaves[_i].assignment == "be a subordinate slave" && $slaves[_i].subTarget == 0>>
		<<set $subSlaves++>>
	<</if>>
<</for>>

<<if $organs.length > 0>>
<<for _i = 0; _i < $organs.length; _i++>>
	<<if $organs[_i].weeksToCompletion > 0>>
		<<if $organFarmUpgrade == 3>>
			<<set $organs[_i].weeksToCompletion -= 4>>
		<<elseif $organFarmUpgrade == 2>>
			<<set $organs[_i].weeksToCompletion -= 2>>
		<<else>>
			<<set $organs[_i].weeksToCompletion-->>
		<</if>>
	<</if>>
	<<if $organs[_i].weeksToCompletion <= 0>>
		<<set $completedOrgans.push($organs[_i])>>
		<<set $organs.deleteAt(_i)>>
	<</if>>
<</for>>
<</if>>
<<if $incubatorOrgans.length > 0>>
<<for _i = 0; _i < $incubatorOrgans.length; _i++>>
	<<if $incubatorOrgans[_i].weeksToCompletion > 0>>
		<<if $organFarmUpgrade == 3>>
			<<set $incubatorOrgans[_i].weeksToCompletion -= 4>>
		<<elseif $organFarmUpgrade == 2>>
			<<set $incubatorOrgans[_i].weeksToCompletion -= 2>>
		<<else>>
			<<set $incubatorOrgans[_i].weeksToCompletion-->>
		<</if>>
	<</if>>
<</for>>
<</if>>
/*	for future use
<<if $nurseryOrgans.length > 0>>
<<for _i = 0; _i < $nurseryOrgans.length; _i++>>
	<<if $nurseryOrgans[_i].weeksToCompletion > 0>>
		<<if $organFarmUpgrade == 3>>
			<<set $nurseryOrgans[_i].weeksToCompletion -= 4>>
		<<elseif $organFarmUpgrade == 2>>
			<<set $nurseryOrgans[_i].weeksToCompletion -= 2>>
		<<else>>
			<<set $nurseryOrgans[_i].weeksToCompletion-->>
		<</if>>
	<</if>>
<</for>>
<</if>>
*/
<<if $limbs.length > 0>>
<<for _i = 0; _i < $limbs.length; _i++>>
	<<if $limbs[_i].weeksToCompletion > 0>>
		<<set $limbs[_i].weeksToCompletion-->>
	<</if>>
	<<if $limbs[_i].weeksToCompletion == 0>>
		<<set $limbsCompleted++>>
	<</if>>
<</for>>
<</if>>

/% Begin section: ensure minimum age is set (game may have been loaded from a non-modded version). %/
<<if $minimumSlaveAge <= 18 && $minimumSlaveAge > 0>>
<<else>>
	<<set $minimumSlaveAge = 18>>
	<<set $pedo_mode = 0>>
	<<if $fertilityAge <= 18 && $fertilityAge > 0>>
	<<else>>
		<<set $fertilityAge = 13>>
	<</if>>
	<<if $potencyAge <= 18 && $potencyAge > 0>>
	<<else>>
		<<set $potencyAge = 13>>
	<</if>>
<</if>>
/% End section: ensure minimum age is set. %/

<<set $TSS.schoolSale = 0, $GRI.schoolSale = 0, $SCP.schoolSale = 0, $LDE.schoolSale = 0, $TGA.schoolSale = 0, $HA.schoolSale = 0, $TFS.schoolSale = 0, $TCR.schoolSale = 0, $independenceDay = 0, $showEncyclopedia = 0, $racialVarieties = [], $shelterGirlsIDs = [], $oldWeek = $week, $cashLastWeek = $cash, $foodLastWeek = $food>>

<<if $foodMarket > 0>>
	<<for _f = 0; _f < $slaves.length; _f++>>
		<<if $slaves[_f].diet == "restricted">>
			<<set $foodConsumption += 1.8>>
		<<elseif $slaves[_f].diet == "slimming">>
			<<set $foodConsumption += 1.9>>
		<<elseif $slaves[_f].diet == "muscle building">>
			<<set $foodConsumption += 2.1>>
		<<elseif $slaves[_f].diet == "fattening">>
			<<set $foodConsumption += 2.2>>
		<<else>>
			<<set $foodConsumption += 2>>
		<</if>>
	<</for>>

	<<set $food -= $foodConsumption>>
	<<if $food < 0>>
		<<set $food = 0>>
	<</if>>
<</if>>

<<setupLastWeeksCash>>
<<run $slaves.forEach(function(s) { s.lastWeeksCashIncome = 0, s.lastWeeksRepIncome = 0; })>>
<<set $lastWeeksErrors = "Errors:">>

<<set $retiree = 0>>
<<set $expiree = 0>>

<<set $PC.sexualEnergy = 4>>
<<if $PCSlutContacts == 2>>
	<<set $PC.sexualEnergy -= 3>>
<</if>>
<<if $personalAttention == "sex">>
	<<set $PC.sexualEnergy += 2>>
<</if>>
<<if $PC.physicalAge >= 80>>
	<<set $PC.sexualEnergy -= 6>>
<<elseif $PC.physicalAge >= 72>>
	<<set $PC.sexualEnergy -= 5>>
<<elseif $PC.physicalAge >= 65>>
	<<set $PC.sexualEnergy -= 4>>
<<elseif $PC.physicalAge >= 58>>
	<<set $PC.sexualEnergy -= 3>>
<<elseif $PC.physicalAge >= 50>>
	<<set $PC.sexualEnergy -= 2>>
<<elseif $PC.physicalAge >= 42>>
	<<set $PC.sexualEnergy -= 1>>
<<elseif $PC.physicalAge >= 35>>
	<<set $PC.sexualEnergy += 0>>
<<elseif $PC.physicalAge >= 31>>
	<<set $PC.sexualEnergy += 1>>
<<elseif $PC.physicalAge >= 28>>
	<<set $PC.sexualEnergy += 2>>
<<elseif $PC.physicalAge >= 21>>
	<<set $PC.sexualEnergy += 3>>
<<elseif $PC.physicalAge >= 13>>
	<<set $PC.sexualEnergy += 4>>
<<elseif $PC.physicalAge == 12>>
	<<set $PC.sexualEnergy += 1>>
<<elseif $PC.physicalAge == 11>>
	<<set $PC.sexualEnergy -= 2>>
<<elseif $PC.physicalAge >= 0>>
	<<set $PC.sexualEnergy -= 6>>
<</if>>
<<if $PC.balls > 2>>
	<<set $PC.sexualEnergy += 2>>
<<elseif $PC.balls > 1>>
	<<set $PC.sexualEnergy++>>
<</if>>
<<if $PC.preg > 20>>
	<<if $PC.pregMood == 2>>
		<<set $PC.sexualEnergy += 4>>
	<<else>>
		<<set $PC.sexualEnergy -= 3>>
	<</if>>
<<elseif $PC.preg > 0>>
	<<set $PC.sexualEnergy -= 1>>
<<else>>
	<<if $PC.fertDrugs == 1>>
		<<set $PC.sexualEnergy++>>
	<</if>>
	<<if $PC.forcedFertDrugs > 0>>
		<<set $PC.sexualEnergy += 2>>
	<</if>>
<</if>>
<<if $PC.staminaPills > 0>>
	<<set $PC.sexualEnergy += 2>>
<</if>>
<<if $PC.preg > 0>>
	<<set WombProgress($PC, 1)>>
	<<set WombNormalizePreg($PC), $PC.pregWeek = $PC.preg>>
	<<set _newBelly = WombGetVolume($PC)>>
	<<if _newBelly >= $PC.belly>>
		<<set $PC.belly = _newBelly>>
	<<elseif $PC.belly > 500>>
		<<set $PC.belly *= .75>>
	<</if>>
	<<if $PC.fertDrugs != 0>>
		<<set $PC.fertDrugs = 0>>
	<</if>>
<<elseif $PC.belly > 0>>
	<<if $PC.belly < 100>>
		<<set $PC.belly = 0>>
	<<else>>
		<<set $PC.belly *= .75>>
	<</if>>
<</if>>
<<if $PC.pregWeek < 0>>
	<<set $PC.pregWeek++>>
<</if>>

<<set $HGEnergy = 0, $HGCum = 0, $HGSlaveSuccess = 0, $HeadGirl = 0, $Recruiter = 0, $Madam = 0, $madamCashBonus = 0, $DJ = 0, $DJRepBonus = 0, $Milkmaid = 0, $Farmer = 0, $Collectrix = 0, $Stewardess = 0, $Schoolteacher = 0, $Wardeness = 0, $Concubine = 0, $Attendant = 0, $Matron = 0, $Nurse = 0, $Bodyguard = 0, $fuckSlaves = 0, $freeSexualEnergy = 0, $publicServants = 0, $cumSlaves = 0, $averageDick = 0, $slavesWithWorkingDicks = 0>>

/* GAMEOVERS */
<<if $slaves.length < 1>>
	<<set $gameover = "no slaves">><<goto "Gameover">>
<<elseif $arcologies[0].ownership < $arcologies[0].minority>>
	<<set $gameover = "ownership">><<goto "Gameover">>
<<else>>
	<<goto "Slave Assignments Report">>
<</if>>


code:
:: Free Range Dairy Assignment Scene [nobr]

/* This scene wants $dairyRestraintsSetting == 0 && $activeSlave.devotion > 0 && $activeSlave.fetish != "mindbroken" */

<<set $nextButton = "Continue", $nextLink = $returnTo>>
<<setLocalPronouns $activeSlave>>

$activeSlave.slaveName reports to the dairy.
<<if $activeSlave.energy > 90 >>
	$He rejoices since $he is actually eager to be milked.
<</if>>
/* AROUSAL WHEN ENTERING */
<<set _aroused = false >>
<<if $dairySlaves > 1 && canSee($activeSlave)>>

While <<if canWalk($activeSlave) >>walking<<else>>being carried<</if>> to $his designated stall, $he passes the other cows currently at their milking machines. Not being hurried, $he occasionally watches a cow in detail.
	<<if $activeSlave.fetish == "boobs">>
		/* TODO: check if there actually are lactating cows at the dairy */
		<<set _aroused = true>>

 $He cannot help but to feel aroused at the view of all those udders being thoroughly milked.
		<<if $activeSlave.sexualFlaw == "breast growth">>
			$He is already fantasizing of having $his breasts expanded to ridiculous proportions<<if $activeSlave.lactation > 0>> so $he can produce even more milk<</if>>.
		<</if>>
	<<elseif $activeSlave.fetish == "pregnancy" && $dairyPregSetting == 1>>
		<<set _aroused = true >>

 The automatic impregnators are currently active. They are not running on an industrial setting, but on a gentler one. Every fertile cow's pussy is filled with a dildo attached on a mechanical arm. There is a wide range of sizes. Some dildos are small and provide expert stimulation for the sensitive areas. Other cows seem to prefer forearm-length horse-cocks for more intense stimulation. The automatic thrusting speeds vary, too, but all of them fill the slave completely so not a drop of sperm can leak out. Some cows are currently asleep. Their respective stimulators are comfortably resting deeply buried in their vaginas, keeping the loads right where they belong. Whenever a cow reaches climax, the sodomizers can thrust at ridiculous speeds to encourage fertilization.
		The sight of all those lovely baby bumps arouses $activeSlave.slaveName.
		<<if $activeSlave.sexualFlaw == "breeder" && isFertile($activeSlave)>>
			$He cannot wait to get impregnated too.
		<</if>>
	<<elseif $activeSlave.fetish == "buttslut" && $dairyStimulatorsSetting == 1>>
		<<set _aroused = true >>

 The automatic sodomizers are currently active. They are not running on an industrial setting, but on a gentler one. Every cow's anus is filled with a dildo attached on a mechanical arm. There is a wide range of sizes. Some dildos are small and provide expert stimulation for the sensitive areas. Other cows seem to prefer forearm-length horse-cocks for more intense stimulation. The automatic thrusting speeds vary, too. Some cows are currently asleep. Their respective stimulators are comfortably resting deeply buried in their behinds. Whenever a cow reaches climax, the sodomizers can thrust at ridiculous speeds. Good thing they provide not only nutrition, but lubrication, too.
		The sight of all those lovely rear-ends relentlessly reamed arouses $activeSlave.slaveName.
		<<if $activeSlave.sexualFlaw == "anal addict">>
			$He cannot wait to be sodomized, too.
		<</if>>
	<</if>>

	<<for _frdas = 0; _frdas < $slaves.length; _frdas++>>
		<<if $slaves[_frdas].assignment == "work in the dairy" && $slaves[_frdas].ID != $activeSlave.ID && $slaves[_frdas].balls >= 10 && $slaves[_frdas].dick > 0>>
			<<setLocalPronouns $slaves[_frdas] 2>>
			<<set _aroused = true>>

 The hyper-endowed cum-cow $slaves[_frdas].slaveName is the pride of $dairyName. _He2 is limply hanging on _his2 milking chair, panting heavily because of the constant suction on _his2 dick. _He2 is obviously nearing climax. Soon, _his2 eyes bulge and _his2 muscles tense.
			<<if $dairyStimulatorsSetting == 1>>
				<<if $slaves[_frdas].prostate != 0>>
					_His2 anus clenches around the dildo in _his2 rear. The automatic sodomizer speeds up to give _his2 prostate a helpful pounding.
				<<else>>
					_He2 lacks a prostate, so the automatic sodomizer is forced to pound _him2 mercilessly to make _him2 cum.
				<</if>>
			<<elseif ($Milkmaid.dick > 4) && (canPenetrate($Milkmaid))>>
				$Milkmaid.slaveName quickly steps in and penetrates _his2 rear to push _him2 powerfully over the edge.
			<<else>>
				_His2 butthole opens and closes.
			<</if>>
			_His2 cock twitches as it begins to unload. Inhumanly large amounts of semen spurt into the receptacle which encases _his2 dick. _His2 orgasm does not seem to end for minutes. The milking machine keeps _him2 cumming longer than naturally possible. Only primal moans escape _his2 throat.
			As _his2 orgasm finally subsides, _he2 slumps back, grinning in post-orgasmic bliss.
			All things considered, $slaves[_frdas].slaveName seems to be very happy with being a cow.
			<<if $slaves[_frdas].dickTat == "bovine patterns" >>Even _his2 dick is tattooed to look like a bull's.<</if>>

"Moo", _he2 moans lustily, imitating a cow.
			<<break>>
		<</if>>
	<</for>>
/* TODO: watch a specific cow, e.g. lover or relative or huge-titted */
<</if>>

<<if _aroused>>

	All this lewd display turns $activeSlave.slaveName on and $he is almost overcome by lust. $He realizes, $he probably should not have taken so much interest in the other cows.
	<<if $activeSlave.dick > 0>>
		$He feels $his blood rush into $his <<if $activeSlave.dick > 8>>gargantuan<<elseif $activeSlave.dick > 6>>huge<<elseif $activeSlave.dick > 2>>fair-sized<<else>>small<</if>> dick.
	<</if>>
	<<if $activeSlave.vagina > -1 >>
		$His pussy moistens.
	<</if>>
	<<if $activeSlave.lactation > 0>>
		<<if $activeSlave.nipples == "fuckable">>
			Milk begins to leak out of $his nipplecunts.
		<<else>>
			$His milk-dripping nipples stiffen.
		<</if>>
	<</if>>
<</if>>
/* AROUSAL WHEN ENTERING END*/

/* GETTING IN */
Eventually, $activeSlave.slaveName arrives at $his designated milking stall.
<<set _assayedSlaveAvailable = 0>>
<<if $familyTesting == 1>>
	<<if totalRelatives($activeSlave) > 0>>
		<<set _relativeCattle = $slaves.filter(function(s) { return (areRelated(s, $activeSlave) && s.assignment == "work in the dairy") ; })>>
		<<if _relativeCattle.length > 0>>
			<<set _assayedSlave = _relativeCattle.random()>>
			<<set _assayedSlaveAvailable = 1>>
			<<if $activeSlave.mother == _assayedSlave.ID>>
				<<set _assayType = "mother">>
			<<elseif _assayedSlave.mother == $activeSlave.ID || _assayedSlave.father == $activeSlave.ID>>
				<<set _assayType = "daughter">>
			<<elseif $activeSlave.father == _assayedSlave.ID>>
				<<set _assayType = "father">>
			<<else>>
				<<switch areSisters($activeSlave, _assayedSlave)>>
				<<case 1>>
					<<set _assayType = "twin">>
				<<case 2>>
					<<set _assayType = "sister">>
				<<case 3>>
					<<set _assayType = "half-sister">>
				<</switch>>
			<</if>>
		<</if>>
	<</if>>
<<else>>
	<<if ($activeSlave.relation != 0)>>
		<<set _assayedSlave = getSlave($activeSlave.relationTarget)>>
		<<if def _assayedSlave && _assayedSlave.assignment == "work in the dairy">>
			<<set _assayedSlaveAvailable = 1>>
			<<set _assayType = $activeSlave.relation>>
		<</if>>
	<</if>>
<</if>> /*closes extended family mode */
<<if _assayedSlaveAvailable == 0 && $activeSlave.relationship > 0>>
	<<set _assayedSlave = getSlave($activeSlave.relationshipTarget)>>
	<<if def _assayedSlave && _assayedSlave.assignment == "work in the dairy">>
		<<set _assayedSlaveAvailable = 1>>
		<<switch $activeSlave.relationship>>
		<<case 1>>
			<<set _assayType = "friend">>
		<<case 2>>
			<<set _assayType = "best friend">>
		<<case 3>>
			<<set _assayType = "fuckbuddy">>
		<<case 4>>
			<<set _assayType = "lover">>
		<<case 5>>
			<<set _assayType = "slave wife">>
		<</switch>>
	<</if>>
<</if>>
<<if _assayedSlaveAvailable == 1>>
	<<setLocalPronouns _assayedSlave 2>>
	$His _assayType _assayedSlave.slaveName is at the dairy, too. _He2 is in the adjacent stall. The two of them are going to be milked right next to each other.
<</if>>

The only "furniture" in the stall looks like a dentist's chair. It looks very medical, but it turns out to be quite comfortable actually. $He <<if $activeSlave.devotion >90>>eagerly<<elseif $activeSlave.slaveName < 40>>hesitantly<</if>> gets into the chair.
<<if $Milkmaid == 0 >>
Automated machinery springs to life, preparing $him for milking.
<<else>>
Your appointed milkmaid $Milkmaid.slaveName helps $activeSlave.slaveName with installing the milking devices.
<</if>>
<<if $activeSlave.lactation > 0 >>
Suction cups are attached <<if $activeSlave.nipples == "fuckable">>over<<else>>to<</if>> $his nipples.
<</if>>
<<if $activeSlave.balls > 0>>
	<<if $activeSlave.dick > 8>>
		A huge receptacle is attached to $his over-sized member.
	<<elseif $activeSlave.dick > 6>>
		A large cock-milker is attached to $his huge dick.
	<<elseif $activeSlave.dick > 2>>
		A special cock-milker is attached to $his dick.
	<<elseif $activeSlave.dick > 0>>
		A suction cup is attached to $his small dicklet. Due to the embarrassingly small size of $his penis, the very kind of cup is used that normally goes on nipples.
	<<else>>
		A suction cup is attached over $his hidden cumhole.
	<</if>>
<</if>>

<<if $dairyFeedersSetting == 1>>
	Near the headrest of the chair, an artificial phallus is installed. The cow can easily reach it with $his mouth. The phallus provides hydration and nutrition when sucked. The supplement consists of excess or low-quality milk and cum from the dairy itself as well as aphrodisiacs and hormones enhancing lactation and semen production.
	<<if $activeSlave.sexualFlaw == "cum addict" || $activeSlave.fetish == "cumslut">>
		$activeSlave.slaveName eagerly shoves the artificial phallus into $his mouth. $He gives it an experimental suckle. To $his joy, $he soon is rewarded with a fresh spurt of semen-like nutrition supplement. Then $he readjusts the holder to keep the phallus lodged in $his mouth, effectively forcing $himself to keep sucking the artificial dick.
	<</if>>
<</if>>

The milking chair comes with a small screen, providing mental stimulation for the cow. It is highly pornographic, of course. It also includes live-streams of close-ups from the cows being milked or their orifices being penetrated. $activeSlave.slaveName selects $his favorite program<<if canSee($activeSlave)>> to watch<<elseif canHear($activeSlave)>> to listen to<<else>> to feel the vibrations from<</if>>. It features
<<if $activeSlave.attrXY > $activeSlave.attrXX || $activeSlave.behavioralQuirk == "adores men">>
	men
<<else>>
	women
<</if>>
<<if ($activeSlave.fetish == "submissive")>>
	submitting to their sexual partners.
<<elseif ($activeSlave.fetish == "cumslut")>>
	<<if $activeSlave.attrXY > $activeSlave.attrXX || $activeSlave.behavioralQuirk == "adores men">>
		jacking off directly into the camera.
	<<else>>
		sucking dick for all it's worth.
	<</if>>
	<<if $dairyFeedersSetting == 1 >>
		The dairy feeders ejaculations are synced with the events in the video. $activeSlave.slaveName receives a load of cum-like nutrition every time a dick shoots. It really draws $him into the pornography.
	<</if>>
<<elseif ($activeSlave.fetish == "humiliation")>>
	being humiliated.
<<elseif ($activeSlave.fetish == "buttslut")>>
	being fucked in the ass.
	<<if $dairyStimulatorsSetting == 1>>
		The dairy stimulators are synced to the videos. The automatic sodomizers thrust in exactly the same way as the dicks or dildos in the video. $activeSlave.slaveName is amazed by this advanced pornography. It feels like it was $him being fucked in the videos all over.
	<</if>>
<<elseif ($activeSlave.fetish == "dom")>>
	dominating their sexual partners.
<<elseif ($activeSlave.fetish == "masochist")>>
	being flogged.
<<elseif ($activeSlave.fetish == "sadist")>>
	abusing their sexual partners.
<<elseif ($activeSlave.fetish == "pregnancy")>>
	<<if $activeSlave.attrXY > $activeSlave.attrXX || $activeSlave.behavioralQuirk == "adores men">>
		fucking pregnant women.
	<<else>>
		being fucked while pregnant.
		<<if $dairyPregSetting > 0>>
			The dairy stimulators are synced to the videos. The impregnating dildo thrusts in exactly the same way as the dicks or dildos in the video. $activeSlave.slaveName is amazed by this advanced pornography. It feels like it was $him being fucked and cummed inside in the videos all over.
		<</if>>
	<</if>>
<<else>>
	engaging in vanilla intercourse.
<</if>>

Sexual stimulation increases product output.
<<if $Milkmaid == 0 && $dairyStimulatorsSetting == 0>>
	Unfortunately, there is neither a milkmaid providing personal assistance nor automatic sodomizers installed in your dairy.

<<else>>
	<<if $Milkmaid != 0>>
		<<setLocalPronouns $Milkmaid 2>>
		Your milkmaid $Milkmaid.slaveName is working in the dairy. Whenever a cow needs _his2 assistance, _he2 is happy to help.
		<<if $Milkmaid.dick > 1 && canPenetrate($Milkmaid)>>
			Most often, _he2 uses _his2 cock to penetrate the cows.
		<<else>>
			Lacking penile equipment of appropriate size, _he2 relies on _his2 tongue to stimulate the cow's sexual organs.
		<</if>>
		_He2 is quite skilled in giving mammary massages and handjobs, too.
		<<if $milkmaidImpregnates == 1 && canPenetrate($Milkmaid) && $Milkmaid.pubertyXY == 1 && $Milkmaid.ballType == "human">>
			If at all possible, it is _his duty to thoroughly knock up _his2 charges.
		<</if>>

	<</if>>
	<<if $dairyStimulatorsSetting > 0>>
		Automated sodomizers help the cows produce by penetrating their anuses. The milking chairs built-in sensors measure $activeSlave.slaveName's anal capacity.
		<<if $activeSlave.anus == 0 >>
			The machine detects an unused rear-end. In order to protect the $his anal virginity, the automatic sodomizer stays inactive.
		<<else>>
			In order to provide adequate stimulation for $his
			<<if $activeSlave.anus > 3>>
				gaping anus, the automatic sodomizer is equipped with a gigantic horse-like phallus. It wobbles menacingly.
			<<elseif $activeSlave.anus > 2>>
				well-used rear-end, the automatic sodomizer is equipped with a large phallus. It is nicely ribbed for extra stimulation.
			<<else>>
				anus, the automatic sodomizer is equipped with a fair-sized silicone phallus.
			<</if>>
			Lubrication spurts from a hole at the tip, giving the artificial phallus a very lifelike pre-dripping look. Gently, the mechanical arm pushes the phallus into $activeSlave.slaveName's behind.
			<<if $activeSlave.fetish == "buttslut" || $activeSlave.sexualFlaw == "anal addict">>
				$He shudders with joy.
			<</if>>
			Soon, the automatic sodomizer pumps the dildo in and out of $his butt-hole.
			<<if ($activeSlave.balls > 0) && ($activeSlave.scrotum > 0)>>
				$His<<if $activeSlave.balls > 5 >> massive<</if>> balls swing back and forth.
			<</if>>
			<<if $activeSlave.dick > 0 >>
				<<if $activeSlave.prostate != 0>>
					The dildo stimulates $his prostate perfectly. Pre-cum begins to leak from $his cock.
				<</if>>
				/* TODO: the next lines feel non-canon */
				The milking machine remains at this setting for longer than normal. Pre-cum is considered a delicacy and is harvested as much as possible before having a negative impact on cum production.
			<</if>>
		<</if>>

	<</if>>
	<<if $dairyPregSetting > 0>>
		Ejaculate squirting dildos keep the slave's wombs stuffed with seed until they are confirmed pregnant and aid in preparing them for childbirth.
		<<if isFertile($activeSlave)>>
			Since $he is quite fertile, it springs to life.
			<<if $activeSlave.vagina == 0>>
				The machine detects a virgin pussy. In order to protect the $his virginity, the automatic dildo returns to its housing.
			<<else>>
				In order to provide adequate stimulation for $his
				<<if $activeSlave.vagina > 3>>
					gaping vagina, the automatic dildo is equipped with a gigantic horse-like phallus. It wobbles menacingly.
				<<elseif $activeSlave.vagina > 2>>
					well-used rear-end, the automatic dildo is equipped with a large phallus. It is nicely ribbed for extra stimulation.
				<<else>>
					vagina, the automatic dildo is equipped with a fair-sized silicone phallus.
				<</if>>
				Lubrication spurts from a hole at the tip, giving the artificial phallus a very lifelike pre-dripping look. Gently, the mechanical arm pushes the phallus into $activeSlave.slaveName's pussy.
				<<if $activeSlave.fetish == "pregnancy" || $activeSlave.sexualFlaw == "breeder">>
					$He shudders with joy.
				<</if>>
				Soon, the automatic impregnator pumps the dildo in and out of $his body, frequently releasing large loads of potent cum directly into $his womb.
			<</if>>
		<</if>>
	<</if>>
<</if>>
/* GETTING IN END */

/* MILKING ROUTINE */
<<if $activeSlave.lactation > 0>>
	The milking cups <<if $activeSlave.nipples == "fuckable">>over<<else>>on<</if>> $his nipples begin to pulse rhythmically. Soon, a steady flow of breast-milk is sucked away into the storage tanks.
<</if>>
<<if $activeSlave.dick > 0>>
	The milking machine uses suction to draw $his dick into the receptacle.
	<<if $activeSlave.dick > 10>>
		$His dick is too large to even consider getting hard again, so it just attaches firmly to the tip.
	<<elseif $activeSlave.dick > 8>>
		$He is on the verge of passing out as most of $his blood volume rushes into $his dick. $He cannot possibly reach a full erection without the machine's help. $He fights to stay awake so $he can enjoy $his inhuman cock at throbbing hardness.
	<<elseif $activeSlave.dick > 6>>
		$He feels dizzy as most of $his blood volume rushes into $his dick. It is not easy for $his body to maintain an erection. But with the machine's help, $he can produce a full throbbing hard-on.
	<<else>>
		It brings $him to a full, throbbing erection within seconds.
	<</if>>
	The machine strokes $his dick mechanically, but very pleasurably.
<</if>>
It does not take long for $activeSlave.slaveName to reach $his first orgasm of many. $His muscles tense.
	<<if $activeSlave.dick > 0>>
		$His <<if $activeSlave.balls > 5 >>cum-engorged<</if>> balls draw up.
		$His <<if $activeSlave.dick > 8 >>gargantuan member<<elseif $activeSlave.dick > 6 >>huge cock<<else>>dick<</if>> twitches and flexes within its receptacle.
		<<if $activeSlave.balls >= 50>>
			A special tank beneath $him holds $his monolithic balls' endless ejaculate while the machine struggles to suck it away.
		<<elseif $activeSlave.balls >= 37>>
			A special tank attached to the hose holds $his titanic balls' near endless ejaculate while the machine struggles to suck it away.
		<<elseif $activeSlave.balls >= 25>>
			A special reservoir attached to the hose holds $his massive balls' ridiculous ejaculate while the machine struggles to suck it away.
		<<elseif $activeSlave.balls >= 10>>
			The machine strains to suck down the giant load from $his huge balls.
		<<elseif $activeSlave.balls > 5>>
			The copious ejaculation from $his over-sized balls give the machine something to work on.
		<<elseif $activeSlave.balls > 0>>
			$His ejaculate is quickly sucked away.
		<<else>>
			$His ballslessness impedes cum-production, but ejaculating feels nice, anyway.
		<</if>>
	<</if>>
<<if ($activeSlave.dick < 1) && ($activeSlave.balls > 0) && ($activeSlave.prostate > 0)>>
	Cum splashes from $his urethra and is quickly sucked away.
<</if>>
<<if $activeSlave.lactation > 0>>

The milking cups <<if $activeSlave.nipples == "fuckable">>over<<else>>on<</if>> $his nipples switch from rhythmic pulsing into intense suction. Aided by $his orgasm, milk spurts from $his nipples
	<<if $activeSlave.boobs > 20000>>
		in obscenely massive amounts. $His immense breasts seem to never empty.
	<<elseif $activeSlave.boobs > 10000>>
		in absurdly large amounts. $His gargantuan breasts do not seem to get less milk-laden for a long time.
	<<elseif $activeSlave.boobs > 5000>>
		in powerful jets. $His huge breasts can provide multiple liters of milk.
	<<elseif $activeSlave.boobs > 1000>>
		for quite some time. $His large breasts can store an impressive volume of milk.
	<<elseif $activeSlave.boobs > 700>>
		until there is enough for whitening a cup of coffee. $His average breasts cannot store much more milk.
	<<elseif ($arcologies[0].FSSlimnessEnthusiast > 80)>>
		for a surprisingly long time. Your arcology succeeded in optimized the milking process for small breasts.
	<<else>>
		for a short time. $His small tits cannot dispense much milk at once.
	<</if>>
<</if>>
<<if $activeSlave.prostate != 0 && $activeSlave.dick == 0 && $activeSlave.balls == 0>>

$activeSlave.slaveName has no cock, but a functional prostate gland. It's attached to $his urethra, so $he squirts <<if $activeSlave.prostate > 2>>massively<<else>>copiously<</if>> while $he orgasms. The exotic fluid is caught by a basin positioned under $his <<if $activeSlave.vagina >= 0 >>dripping pussy<<else>>featureless crotch<</if>>.
<</if>>

With the first milking cycle being over, $activeSlave.slaveName drifts into a relaxing slumber.
<<if $dairyFeedersSetting == 1 && ($activeSlave.sexualFlaw == "cum addict" || $activeSlave.fetish == "cumslut")>>
$He grins madly around the phallus $he stuffed in $his mouth.
<</if>>
<<if $dairyPregSetting > 0 && isFertile($activeSlave) && $activeSlave.vagina > 0>>
	$He gets comfortable around $his cum-bloated belly as the impregnator continues its task.
<</if>>
<<if $activeSlave.lactation > 0>>
	The milking cups <<if $activeSlave.nipples == "fuckable">>over<<else>>on<</if>> $his nipples pulse slower and with less vigor. The lactation never fully subsides. The steady but gentle suction helps increasing milk production without actually draining the breasts.
	<<set $activeSlave.lactationDuration = 2>>
	<<set $activeSlave.boobs -= $activeSlave.boobsMilk, $activeSlave.boobsMilk = 0>>
<</if>>
<<if $activeSlave.dick > 0>>
The suction on $his dick stops, allowing $his abused member to go soft and have some rest.
<</if>>
<<if $activeSlave.balls > 0 && $activeSlave.scrotum > 0>>
$His balls rest, dangling down and relieved. They already started to produce more cum. They seem to wait for their next chance to unload.
<</if>>

The next milking cycle will start soon.
/* MILKING ROUTINE END */