code:
:: Cosmetic Rules Assistant Settings [nobr]

<<set $nextButton to "Back">>
<<set $nextLink to "Rules Assistant">>
<<set $showEncyclopedia to 1>><<set $encyclopedia to "Personal Assistant">>

//Please use the 'no default setting' option to identify areas I should not address.//

__Rule $r Optometry options:__

Eyewear: ''$currentRule.eyewear.''

<<click "No default setting">>
<<set $currentRule.eyewear to "no default setting">>
<<RAChangeEyewear>>
<</click>>
| <<click "Correct with glasses">>
<<set $currentRule.eyewear to "correct with glasses">>
<<RAChangeEyewear>>
<</click>>
| <<click "Correct with contacts">>
<<set $currentRule.eyewear to "correct with contacts">>
<<RAChangeEyewear>>
<</click>>
| <<click "Universal glasses">>
<<set $currentRule.eyewear to "universal glasses">>
<<RAChangeEyewear>>
<</click>>
| <<click "Blur with glasses">>
<<set $currentRule.eyewear to "blur with glasses">>
<<RAChangeEyewear>>
<</click>>
| <<click "Blur with contacts">>
<<set $currentRule.eyewear to "blur with contacts">>
<<RAChangeEyewear>>
<</click>>

__Rule $r Cosmetic options:__

Eye coloring: ''$currentRule.eyeColor.''

<<click "No default eye color setting">>
<<set $currentRule.eyeColor to "no default setting">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Blue">>
<<set $currentRule.eyeColor to "blue">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Black">>
<<set $currentRule.eyeColor to "black">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Brown">>
<<set $currentRule.eyeColor to "brown">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Green">>
<<set $currentRule.eyeColor to "green">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Turquoise">>
<<set $currentRule.eyeColor to "turquoise">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Sky-blue">>
<<set $currentRule.eyeColor to "sky-blue">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Hazel">>
<<set $currentRule.eyeColor to "hazel">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Pale-grey">>
<<set $currentRule.eyeColor to "pale-grey">>
<<RAChangeEyecolor>>
<</click>>
| <<click "White">>
<<set $currentRule.eyeColor to "white">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Pink">>
<<set $currentRule.eyeColor to "pink">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Amber">>
<<set $currentRule.eyeColor to "amber">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Red">>
<<set $currentRule.eyeColor to "red">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Catlike">>
<<set $currentRule.eyeColor to "catlike">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Serpent-like">>
<<set $currentRule.eyeColor to "serpent-like">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Devilish">>
<<set $currentRule.eyeColor to "devilish">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Demonic">>
<<set $currentRule.eyeColor to "demonic">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Hypnotic">>
<<set $currentRule.eyeColor to "hypnotic">>
<<RAChangeEyecolor>>
<</click>>
| <<click "Heart-shaped">>
<<set $currentRule.eyeColor to "heart-shaped">>
<<RAChangeEyecolor>>
<</click>>

Makeup:

''
<<if $currentRule.makeup == 0>>
	makeup-free.
<<elseif $currentRule.makeup == 1>>
	minimal makeup.
<<elseif $currentRule.makeup is 2>>
	luxurious, expensive makeup.
<<elseif $currentRule.makeup is 3>>
	color-coordinated.
<<elseif $currentRule.makeup is 4>>
	garish.
<<else>>
	no default setting.
<</if>>
''

<<click "No default makeup setting">>
<<set $currentRule.makeup to "no default setting">>
<<RAChangeMakeup>>
<</click>>
| <<click "Makeup-free">>
<<set $currentRule.makeup to 0>>
<<RAChangeMakeup>>
<</click>>
| <<click "Nice">>
<<set $currentRule.makeup to 1>>
<<RAChangeMakeup>>
<</click>>
| <<click "Gorgeous">>
<<set $currentRule.makeup to 2>>
<<RAChangeMakeup>>
<</click>>
| <<click "Color-coordinate with hair">>
<<set $currentRule.makeup to 3>>
<<RAChangeMakeup>>
<</click>>
| <<click "Slutty">>
<<set $currentRule.makeup to 4>>
<<RAChangeMakeup>>
<</click>>

Nails:

''
<<if $currentRule.nails == 0>>
	clipped.
<<elseif $currentRule.nails == 1>>
	long and elegant.
<<elseif $currentRule.nails is 2>>
	color-coordinated.
<<elseif $currentRule.nails is 3>>
	sharp and claw-like.
<<elseif $currentRule.nails is 4>>
	bright and glittery.
<<elseif $currentRule.nails is 5>>
	garish.
<<else>>
	no default setting.
<</if>>
''

<<click "No default nails setting">>
<<set $currentRule.nails to "no default setting">>
<<RAChangeNails>>
<</click>>
| <<click "Clipped">>
<<set $currentRule.nails to 0>>
<<RAChangeNails>>
<</click>>
| <<click "Extended">>
<<set $currentRule.nails to 1>>
<<RAChangeNails>>
<</click>>
| <<click "Color-coordinate with hair">>
<<set $currentRule.nails to 2>>
<<RAChangeNails>>
<</click>>
| <<click "Sharp and claw-like">>
<<RAChangeNails>>
<<set $currentRule.nails to 3>>
<</click>>
| <<click "Bright and glittery">>
<<RAChangeNails>>
<<set $currentRule.nails to 4>><</click>>
| <<click "Hooker nails">>
<<RAChangeNails>>
<<set $currentRule.nails to 5>>
<</click>>

Hair color: ''$currentRule.hColor.''

<<click "No default hair color setting">>
<<set $currentRule.hColor to "no default setting">>
<<RAChangeHColor>>
<</click>>
| <<click "Blonde">>
<<set $currentRule.hColor to "blonde">>
<<RAChangeHColor>>
<</click>>
| <<click "Golden">>
<<set $currentRule.hColor to "golden">>
<<RAChangeHColor>>
<</click>>
| <<click "Platinum Blonde">>
<<set $currentRule.hColor to "platinum blonde">>
<<RAChangeHColor>>
<</click>>
| <<click "Strawberry-Blonde">>
<<set $currentRule.hColor to "strawberry-blonde">>
<<RAChangeHColor>>
<</click>>
| <<click "Copper">>
<<set $currentRule.hColor to "copper">>
<<RAChangeHColor>>
<</click>>
| <<click "Ginger">>
<<set $currentRule.hColor to "ginger">>
<<RAChangeHColor>>
<</click>>
| <<click "Red">>
<<set $currentRule.hColor to "red">>
<<RAChangeHColor>>
<</click>>
| <<click "Green">>
<<set $currentRule.hColor to "green">>
<<RAChangeHColor>>
<</click>>
| <<click "Blue">>
<<set $currentRule.hColor to "blue">>
<<RAChangeHColor>>
<</click>>
| <<click "Pink">>
<<set $currentRule.hColor to "pink">>
<<RAChangeHColor>>
<</click>>
| <<click "Dark Brown">>
<<set $currentRule.hColor to "dark brown">>
<<RAChangeHColor>>
<</click>>
| <<click "Brown">>
<<set $currentRule.hColor to "brown">>
<<RAChangeHColor>>
<</click>>
| <<click "Auburn">>
<<set $currentRule.hColor to "auburn">>
<<RAChangeHColor>>
<</click>>
| <<click "Burgundy">>
<<set $currentRule.hColor to "burgundy">>
<<RAChangeHColor>>
<</click>>
| <<click "Chocolate">>
<<set $currentRule.hColor to "chocolate">>
<<RAChangeHColor>>
<</click>>
| <<click "Chestnut">>
<<set $currentRule.hColor to "chestnut">>
<<RAChangeHColor>>
<</click>>
| <<click "Hazel">>
<<set $currentRule.hColor to "hazel">>
<<RAChangeHColor>>
<</click>>
| <<click "Black">>
<<set $currentRule.hColor to "black">>
<<RAChangeHColor>>
<</click>>
| <<click "Grey">>
<<set $currentRule.hColor to "grey">>
<<RAChangeHColor>>
<</click>>
| <<click "Silver">>
<<set $currentRule.hColor to "silver">>
<<RAChangeHColor>>
<</click>>
| <<click "White">>

<<set $currentRule.hColor to "white">>
<<RAChangeHColor>>
<</click>>

Hair style: ''$currentRule.hStyle.''

<<click "No default hair length setting">>
<<set $currentRule.hStyle to "no default setting">>
<<RAChangeHStyle>>
<</click>>
| <<click "Neat">>
<<set $currentRule.hStyle to "neat">>
<<RAChangeHStyle>>
<</click>>
| <<click "Shaved">>
<<set $currentRule.hStyle to "shaved",$currentRule.hLength to 0>>
<<RAChangeHStyle>>
<</click>>
| <<click "Trimmed short">>
<<set $currentRule.hStyle to "trimmed",$currentRule.hLength to 10>>
<<RAChangeHStyle>>
<</click>>
| <<click "Buzzcut">>
<<set $currentRule.hStyle to "buzzcut",$currentRule.hLength to 1>>
<<RAChangeHStyle>>
<</click>>
| <<click "Up">>
<<set $currentRule.hStyle to "up">>
<<RAChangeHStyle>>
<</click>>
| <<click "In a ponytail">>
<<set $currentRule.hStyle to "ponytail">>
<<RAChangeHStyle>>
<</click>>
| <<click "In a bun">>
<<set $currentRule.hStyle to "bun">>
<<RAChangeHStyle>>
<</click>>
| <<click "Curled">>
<<set $currentRule.hStyle to "curls">>
<<RAChangeHStyle>>
<</click>>
| <<click "Permed">>
<<set $currentRule.hStyle to "permed">>
<<RAChangeHStyle>>
<</click>>
| <<click "Luxurious">>
<<set $currentRule.hStyle to "luxurious">>
<<RAChangeHStyle>>
<</click>>
| <<click "Dreadlocks">>
<<set $currentRule.hStyle to "dreadlocks">>
<<RAChangeHStyle>>
<</click>>
| <<click "Cornrows">>
<<set $currentRule.hStyle to "cornrows">>
<<RAChangeHStyle>>
<</click>>
| <<click "Braided">>
<<set $currentRule.hStyle to "braided">>
<<RAChangeHStyle>>
<</click>>
| <<click "In tails">>
<<set $currentRule.hStyle to "tails">>
<<RAChangeHStyle>>
<</click>>
| <<click "Afro">>
<<set $currentRule.hStyle to "afro">>
<<RAChangeHStyle>>
<</click>>
| <<click "Shaved sides">>
<<set $currentRule.hStyle to "strip">>
<<RAChangeHStyle>>
<</click>>

<<if $currentRule.hStyle != "shaved">>

Hair length: ''$currentRule.hLength.''

<<click "No default hair length setting">>
<<set $currentRule.hLength to "no default setting">>
<<RAChangeHLength>>
<</click>>
| <<click "Very short">>
<<set $currentRule.hLength to 5>>
<<RAChangeHLength>>
<</click>>
| <<click "Short">>
<<set $currentRule.hLength to 10>>
<<RAChangeHLength>>
<</click>>
| <<click "Shoulder length">>
<<set $currentRule.hLength to 30>>
<<RAChangeHLength>>
<</click>>
| <<click "Long">>
<<set $currentRule.hLength to 60>>
<<RAChangeHLength>>
<</click>>
| <<click "Very long">>
<<set $currentRule.hLength = 100>>
<<RAChangeHLength>>
<</click>>
| <<click "Floor length">>
<<set $currentRule.hLength to 150>>
<<RAChangeHLength>>
<</click>>

<</if>>

Pubic hair color, when present: ''$currentRule.pubicHColor.''

<<click "No default pubic hair color setting">>
<<set $currentRule.pubicHColor to "no default setting">>
<<RAChangePHColor>>
<</click>>
| <<click "Blonde">>
<<set $currentRule.pubicHColor to "blonde">>
<<RAChangePHColor>>
<</click>>
| <<click "Golden">>
<<set $currentRule.pubicHColor to "golden">>
<<RAChangePHColor>>
<</click>>
| <<click "Platinum Blonde">>
<<set $currentRule.pubicHColor to "platinum blonde">>
<<RAChangePHColor>>
<</click>>
| <<click "Strawberry-Blonde">>
<<set $currentRule.pubicHColor to "strawberry-blonde">>
<<RAChangePHColor>>
<</click>>
| <<click "Copper">>
<<set $currentRule.pubicHColor to "copper">>
<<RAChangePHColor>>
<</click>>
| <<click "Ginger">>
<<set $currentRule.pubicHColor to "ginger">>
<<RAChangePHColor>>
<</click>>
| <<click "Red">>
<<set $currentRule.pubicHColor to "red">>
<<RAChangePHColor>>
<</click>>
| <<click "Green">>
<<set $currentRule.pubicHColor to "green">>
<<RAChangePHColor>>
<</click>>
| <<click "Blue">>
<<set $currentRule.pubicHColor to "blue">>
<<RAChangePHColor>>
<</click>>
| <<click "Pink">>
<<set $currentRule.pubicHColor to "pink">>
<<RAChangePHColor>>
<</click>>
| <<click "Dark Brown">>
<<set $currentRule.pubicHColor to "dark brown">>
<<RAChangePHColor>>
<</click>>
| <<click "Brown">>
<<set $currentRule.pubicHColor to "brown">>
<<RAChangePHColor>>
<</click>>
| <<click "Auburn">>
<<set $currentRule.pubicHColor to "auburn">>
<<RAChangePHColor>>
<</click>>
| <<click "Burgundy">>
<<set $currentRule.pubicHColor to "burgundy">>
<<RAChangePHColor>>
<</click>>
| <<click "Chocolate">>
<<set $currentRule.pubicHColor to "chocolate">>
<<RAChangePHColor>>
<</click>>
| <<click "Chestnut">>
<<set $currentRule.pubicHColor to "chestnut">>
<<RAChangePHColor>>
<</click>>
| <<click "Hazel">>
<<set $currentRule.pubicHColor to "hazel">>
<<RAChangePHColor>>
<</click>>
| <<click "Black">>
<<set $currentRule.pubicHColor to "black">>
<<RAChangePHColor>>
<</click>>
| <<click "Grey">>
<<set $currentRule.pubicHColor to "grey">>
<<RAChangePHColor>>
<</click>>
| <<click "Silver">>
<<set $currentRule.pubicHColor to "silver">>
<<RAChangePHColor>>
<</click>>
| <<click "White">>
<<set $currentRule.pubicHColor to "white">>
<<RAChangePHColor>>
<</click>>

Pubic hair style: ''$currentRule.pubicHStyle.''

<<click "No default pubic hair style setting">>
<<set $currentRule.pubicHStyle to "no default setting">>
<<RAChangePHStyle>>
<</click>>
| <<click "Hairless">>
<<set $currentRule.pubicHStyle to "hairless">>
<<RAChangePHStyle>>
<</click>>
| <<click "Waxed">>
<<set $currentRule.pubicHStyle to "waxed">>
<<RAChangePHStyle>>
<</click>>
| <<click "Landing strip">>
<<set $currentRule.pubicHStyle to "in a strip">>
<<RAChangePHStyle>>
<</click>>
| <<click "Neat">>
<<set $currentRule.pubicHStyle to "neat">>
<<RAChangePHStyle>>
<</click>>
| <<click "Bushy">>
<<set $currentRule.pubicHStyle to "bushy">>
<<RAChangePHStyle>>
<</click>>
| <<click "Bushy in front and clean in back">>
<<set $currentRule.pubicHStyle to "bushy in the front and neat in the rear">>
<<RAChangePHStyle>>
<</click>>

Underarm hair color, when present: ''$currentRule.underArmHColor.''

<<click "No default underarm hair color setting">>
<<set $currentRule.underArmHColor to "no default setting">>
<<RAChangeAHColor>>
<</click>>
| <<click "Blonde">>
<<set $currentRule.underArmHColor to "blonde">>
<<RAChangeAHColor>>
<</click>>
| <<click "Golden">>
<<set $currentRule.underArmHColor to "golden">>
<<RAChangeAHColor>>
<</click>>
| <<click "Platinum Blonde">>
<<set $currentRule.underArmHColor to "platinum blonde">>
<<RAChangeAHColor>>
<</click>>
| <<click "Strawberry-Blonde">>
<<set $currentRule.underArmHColor to "strawberry-blonde">>
<<RAChangeAHColor>>
<</click>>
| <<click "Copper">>
<<set $currentRule.underArmHColor to "copper">>
<<RAChangeAHColor>>
<</click>>
| <<click "Ginger">>
<<set $currentRule.underArmHColor to "ginger">>
<<RAChangeAHColor>>
<</click>>
| <<click "Red">>
<<set $currentRule.underArmHColor to "red">>
<<RAChangeAHColor>>
<</click>>
| <<click "Green">>
<<set $currentRule.underArmHColor to "green">>
<<RAChangeAHColor>>
<</click>>
| <<click "Blue">>
<<set $currentRule.underArmHColor to "blue">>
<<RAChangeAHColor>>
<</click>>
| <<click "Pink">>
<<set $currentRule.underArmHColor to "pink">>
<<RAChangeAHColor>>
<</click>>
| <<click "Dark Brown">>
<<set $currentRule.underArmHColor to "dark brown">>
<<RAChangeAHColor>>
<</click>>
| <<click "Brown">>
<<set $currentRule.underArmHColor to "brown">>
<<RAChangeAHColor>>
<</click>>
| <<click "Auburn">>
<<set $currentRule.underArmHColor to "auburn">>
<<RAChangeAHColor>>
<</click>>
| <<click "Burgundy">>
<<set $currentRule.underArmHColor to "burgundy">>
<<RAChangeAHColor>>
<</click>>
| <<click "Chocolate">>
<<set $currentRule.underArmHColor to "chocolate">>
<<RAChangeAHColor>>
<</click>>
| <<click "Chestnut">>
<<set $currentRule.underArmHColor to "chestnut">>
<<RAChangeAHColor>>
<</click>>
| <<click "Hazel">>
<<set $currentRule.underArmHColor to "hazel">>
<<RAChangeAHColor>>
<</click>>
| <<click "Black">>
<<set $currentRule.underArmHColor to "black">>
<<RAChangeAHColor>>
<</click>>
| <<click "Grey">>
<<set $currentRule.underArmHColor to "grey">>
<<RAChangeAHColor>>
<</click>>
| <<click "Silver">>
<<set $currentRule.underArmHColor to "silver">>
<<RAChangeAHColor>>
<</click>>
| <<click "White">>
<<set $currentRule.underArmHColor to "white">>
<<RAChangeAHColor>>
<</click>>

<<if ndef $currentRule.underArmHStyle>>
<<set $currentRule.underArmHStyle to "no default setting">>
<</if>>
Underarm hair style: ''$currentRule.underArmHStyle.''

<<click "No default underarm hair style setting">>
<<set $currentRule.underArmHStyle to "no default setting">>
<<RAChangeAHStyle>>
<</click>>
| <<click "Hairless">>
<<set $currentRule.underArmHStyle to "hairless">>
<<RAChangeAHStyle>>
<</click>>
| <<click "Waxed">>
<<set $currentRule.underArmHStyle to "waxed">>
<<RAChangeAHStyle>>
<</click>>
| <<click "Landing strip">>
<<set $currentRule.underArmHStyle to "shaved">>
<<RAChangeAHStyle>>
<</click>>
| <<click "Neat">>
<<set $currentRule.underArmHStyle to "neat">>
<<RAChangeAHStyle>>
<</click>>
| <<click "Bushy">>
<<set $currentRule.underArmHStyle to "bushy">>
<<RAChangeAHStyle>>
<</click>>


code:
:: Costs [nobr]

<<set $costs to ($brothel*$facilityCost)+($arcade*$facilityCost*0.5)+($club*$facilityCost)+($dairy*$facilityCost)+($incubator*$facilityCost*10)>>

<<set $costs += (0.2*$brothelUpgradeDrugs*$brothel*$facilityCost)+(0.2*$arcadeUpgradeInjectors*$arcade*$facilityCost)+(0.2*$arcadeUpgradeCollectors*$arcade*$facilityCost)+(0.2*$clubUpgradePDAs*$club*$facilityCost)+(0.2*$dairyFeedersUpgrade*$dairy*$facilityCost)+(0.1*$dairyPregUpgrade*$dairy*$facilityCost)+(0.2*$dairyStimulatorsUpgrade*$facilityCost)+(0.2*$servantsQuartersUpgradeMonitoring*$servantsQuarters*$facilityCost)+(0.2*$incubatorUpgradeWeight*$incubator*$facilityCost)+(0.2*$incubatorUpgradeMuscles*$incubator*$facilityCost)+(0.2*$incubatorUpgradeReproduction*$incubator*$facilityCost)+(0.5*$incubatorUpgradeSpeed*$incubator*$facilityCost)>>

<<if $dairy > 0>>
	<<set $costs += ($bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren)*100>>
<</if>>

<<if $brothel > 0>>
	<<set $costs += $brothelAdsSpending>>
<</if>>
<<if $club > 0>>
	<<set $costs += $clubAdsSpending>>
<</if>>

<<if $incubator > 0>>
	<<set $costs += ($incubatorWeightSetting+$incubatorMusclesSetting+$incubatorReproductionSetting)*500>>
<</if>>

<<if ($masterSuitePregnancySlaveLuxuries == 1)>>
	<<set $costs += 500>>
<</if>>
<<if ($masterSuitePregnancyFertilitySupplements == 1)>>
	<<set $costs += 1000>>
<</if>>

<<set $costs += ($girls*(250+($economy*500)))>>

<<if $PC.career is "mercenary">>
	<<set $costs += ($mercenaries*500)>>
<<else>>
	<<set $costs += ($mercenaries*1000)>>
<</if>>

<<set $costs += $FSSpending>>

<<for $i to 0; $i < $slaves.length; $i++>>

<<if $slaves[$i].livingRules is "luxurious">>
	<<if $slaves[$i].relationship >= 4>>
	<<set $costs += ($rulesCost*3)>>
	<<else>>
	<<set $costs += ($rulesCost*4)>>
	<</if>>
<<elseif $slaves[$i].livingRules is "normal">>
	<<set $costs += ($rulesCost*2)>>
<<else>>
	<<set $costs += $rulesCost>>
<</if>>

<<set $costs += $foodCost*4>>
<<switch $slaves[$i].diet>>
<<case "fattening" "muscle building">>
	<<set $costs += $foodCost>>
<<case "restricted" "slimming">>
	<<set $costs -= $foodCost>>
<</switch>>
<<if $slaves[$i].weight > 50>>
	<<set $costs += $foodCost>>
<<elseif $slaves[$i].weight < -50>>
	<<set $costs -= $foodCost>>
<</if>>
<<if $slaves[$i].lactation > 0>>
	<<set $costs += $foodCost*$slaves[$i].lactation*(1+Math.trunc($slaves[$i].boobs/10000))>>
<</if>>
<<if $slaves[$i].preg > 5>>
	<<if $slaves[$i].assignment == "work in the dairy" && $dairyFeedersSetting > 0>>
	<<elseif ($slaves[$i].assignment == "serve in the master suite" || $slaves[$i].assignment == "be your concubine") && $masterSuiteUpgradePregnancy == 1>>
	<<else>>
		<<set $costs += $foodCost*$slaves[$i].pregType>>
	<</if>>
<</if>>

<<if ($slaves[$i].diet == "XX") || ($slaves[$i].diet == "XY")>>
	<<set $costs += 25>>
<<elseif ($slaves[$i].diet == "XXY")>>
	<<set $costs += 75>>
<</if>>

<<if $boobAccessibility != 1>>
	<<if ($slaves[$i].boobs > 7500)>>
	<<if ($slaves[$i].assignment != "work in the dairy") || ($dairyRestraintsSetting < 2)>>
	<<set $costs += 50>>
	<</if>>
	<</if>>
<</if>>

<<if $pregAccessibility != 1>>
	<<if ($slaves[$i].preg > 30 && $slaves[$i].pregType >= 2) || ($slaves[$i].preg > 20 and $slaves[$i].pregType >= 10) || ($slaves[$i].preg > 10 and $slaves[$i].pregType >= 20) || $slaves[$i].bellyImplant >= 10000>>
	<<if ($slaves[$i].assignment != "labor in the production line")>>
	<<set $Costs += 100>>
	<</if>>
	<</if>>
<</if>>

<<if $dickAccessibility != 1>>
	<<if ($slaves[$i].dick > 45)>>
	<<set $costs += 50>>
	<</if>>
<</if>>

<<if $ballsAccessibility != 1>>
	<<if ($slaves[$i].balls > 90)>>
	<<set $costs += 50>>
	<</if>>
<</if>>

<<if $buttAccessibility != 1>>
	<<if ($slaves[$i].butt > 15)>>
	<<set $costs += 50>>
	<</if>>
<</if>>

<<if $slaves[$i].boobs > 10000>>
<<if $slaves[$i].boobsImplantType == 1>>
	<<set $costs += 50>>
<</if>>
<</if>>
<<if $slaves[$i].butt > 10>>
<<if $slaves[$i].buttImplantType == 1>>
	<<set $costs += 50>>
<</if>>
<</if>>

<<if $slaves[$i].preg > 25>>
<<if $slaves[$i].universalRulesBirthing == 1>>
	<<set $costs += 50>>
<</if>>
<</if>>

<<if $CitizenRetirement == 1>>
	<<set $costs += 250>>
<</if>>

<<if ($slaves[$i].assignment is "be a servant") || ($slaves[$i].assignment is "work as a servant")>>
	<<if $slaves[$i].trust < -20>>
		<<set $costs -= ($rulesCost*4)>>
	<<elseif $slaves[$i].devotion < -20>>
		<<set $costs -= ($rulesCost*2)>>
	<<elseif $slaves[$i].devotion <= 20>>
		<<set $costs -= ($rulesCost*3)>>
	<<elseif $slaves[$i].devotion <= 50>>
		<<set $costs -= ($rulesCost*4)>>
	<<else>>
		<<set $costs -= ($rulesCost*5)>>
	<</if>>
	<<if ($slaves[$i].fetish is "submissive")>>
		<<set $costs -= ($rulesCost)>>
	<<elseif ($slaves[$i].fetish is "dom")>>
		<<set $costs += ($rulesCost)>>
	<</if>>
	<<if ($slaves[$i].relationship < -1)>>
		<<set $costs -= ($rulesCost)>>
	<</if>>
	<<if ($slaves[$i].energy < 20)>>
		<<set $costs -= ($rulesCost)>>
	<<elseif ($slaves[$i].energy < 40)>>
		<<set $costs -= ($rulesCost/2)>>
	<</if>>
	<<if ($slaves[$i].lactation > 0)>>
		<<set $costs -= 25>>
	<</if>>
<</if>>

<<if ($slaves[$i].amp != 0)>>
  <<if ($slaves[$i].amp == 1)>>
	<<set $costs += $rulesCost>>
  <<else>>
	<<set $costs += $rulesCost/2>>
  <</if>>
<<elseif !canWalk($slaves[$i])>>
  <<set $costs += $rulesCost>>
<</if>>

<<if !canSee($slaves[$i])>>
	<<set $costs += 50>>
<<elseif $slaves[$i].eyes <= -1>>
	<<if $slaves[$i].eyewear != "corrective glasses">>
	<<if $slaves[$i].eyewear != "corrective contacts">>
	<<set $costs += 25>>
	<</if>>
	<</if>>
<<elseif ($slaves[$i].eyewear is "blurring glasses") || ($slaves[$i].eyewear is "blurring contacts")>>
	<<set $costs += 25>>
<</if>>

<<if ($servantsQuartersUpgradeMonitoring == 1)>>
	<<if ($slaves[$i].assignment is "work as a servant")>>
	<<set $costs -= ($rulesCost)>>
	<</if>>
<</if>>

<<if ($slaves[$i].inflation == 3)>>
	<<if ($slaves[$i].inflationType == "water")>>
		<<set $costs += 100>>
	<</if>>
<<elseif ($slaves[$i].inflation == 2)>>
	<<if ($slaves[$i].inflationType == "water")>>
		<<set $costs += 50>>
	<</if>>
<<elseif ($slaves[$i].inflation == 1)>>
	<<if ($slaves[$i].inflationType == "water")>>
		<<set $costs += 25>>
	<</if>>
<</if>>

<<if ($slaves[$i].drugs is "female hormone injections") || ($slaves[$i].drugs is "male hormone injections")>>
	<<set $costs += ($drugsCost*5)>>
<<elseif ($slaves[$i].drugs is "anti-aging cream")>>
	<<set $costs += ($drugsCost*10)>>
<<elseif ($slaves[$i].drugs != "no drugs")>>
	<<set $costs += ($drugsCost*2)>>
<</if>>
<<if ($slaves[$i].curatives > 0)>>
	<<set $costs += $drugsCost+($slaves[$i].curatives*$drugsCost)>>
<<elseif ndef $slaves[$i].curatives>>
	<<set $slaves[$i].curatives to 0>>
<</if>>
<<if ($slaves[$i].aphrodisiacs > 0)>>
	<<set $costs += $drugsCost*$slaves[$i].aphrodisiacs>>
<<elseif ndef $slaves[$i].aphrodisiacs>>
	<<set $slaves[$i].aphrodisiacs to 0>>
<</if>>

<<set $costs += $drugsCost*Math.abs($slaves[$i].hormones)*0.5>>

<<if ($slaves[$i].preg == -1) && isFertile($slaves[$i])>>
	<<set $costs += $drugsCost*0.5>>
<</if>>

<<if ($studio == 1)>>
	<<set $costs += $slaves[$i].pornFameSpending>>
<</if>>

<</for>>

<<if $Recruiter != 0>>
	<<set $costs += 250>>
<</if>>
<<if $TSS.schoolPresent == 1>>
	<<set $costs += 1000>>
<</if>>
<<if $GRI.schoolPresent == 1>>
	<<set $costs += 1000>>
<</if>>
<<if $SCP.schoolPresent == 1>>
	<<set $costs += 1000>>
<</if>>
<<if $LDE.schoolPresent == 1>>
	<<set $costs += 1000>>
<</if>>
<<if $TGA.schoolPresent == 1>>
	<<set $costs += 1000>>
<</if>>
<<if
($TFS.schoolPresent == 1) && (($PC.dick == 0) || ($PC.vagina == 0) || ($PC.boobs == 0))>>
	<<set $costs += 1000>>
<</if>>
<<if $TSS.subsidize != 0>>
	<<set $costs += 1000>>
<</if>>
<<if $GRI.subsidize != 0>>
	<<set $costs += 1000>>
<</if>>
<<if $SCP.subsidize != 0>>
	<<set $costs += 1000>>
<</if>>
<<if $LDE.subsidize != 0>>
	<<set $costs += 1000>>
<</if>>
<<if $TGA.subsidize != 0>>
	<<set $costs += 1000>>
<</if>>
<<if $TFS.subsidize != 0>>
	<<set $costs += 1000>>
<</if>>

<<if $alwaysSubsidizeGrowth == 1>>
	<<set $costs += $policyCost>>
<</if>>
<<if $alwaysSubsidizeRep == 1>>
	<<set $costs += $policyCost>>
<</if>>

<<if $ProImmigrationCash == 1>>
	<<set $costs += $policyCost>>
<</if>>
<<if $AntiEnslavementCash == 1>>
	<<set $costs += $policyCost>>
<</if>>

<<if $CoursingAssociation == 1>>
	<<set $costs += 1000>>
<</if>>

<<if $PC.preg == -1>>
	<<set $costs += 25>>
<<elseif $PC.preg >= 16>>
	<<set $costs += 100>>
<</if>>

<<if $PC.career is "servant">>
	<<if $personalAttention == "upkeep">>
		<<if $PC.preg >= 20>>
			<<set $costs = ($costs*0.80)>>
		<<else>>
			<<set $costs = ($costs*0.75)>>
		<</if>>
	<<else>>
	<<set $costs = ($costs*0.90)>>
	<</if>>
<</if>>

<<if $costs < 0>>
	<<set $costs to 0>>
<<else>>
	<<set $costs = Math.trunc($costs)>>
<</if>>

repo_name: Welptard/fc


code:
:: Costs Report

<<set $nextButton to "Back to Main">>\
<<set $nextLink to "Main">>\
\
//Your weekly costs are as follows.//
<<nobr>>

<<if $girls is 3>>
	Since you are accustomed to luxury, your __personal living expenses__ are ¤<<print ($girls*(250+($economy*500)))>>.
<<elseif $girls is 2>>
	Since you are used to living well, your __personal living expenses__ are ¤<<print ($girls*(250+($economy*500)))>>.
<<else>>
	Since you are used to a fairly normal life, your __personal living expenses__ are ¤<<print ($girls*(250+($economy*500)))>>.
<</if>>

<<if $PC.preg == -1>>

Your Contraceptives expenses: ¤25>>
<<elseif $PC.preg >= 16>>

Increased living expenses due to being pregnant : ¤100>>
<</if>>
<<if $mercenaries > 0>>
	<<if $PC.career is "mercenary">>

__Mercenary__ expenses: ¤<<print ($mercenaries*500)>> //Reduced by your @@color:springgreen;mercenary contacts@@//
	<<else>>

__Mercenary__ expenses: ¤<<print ($mercenaries*1000)>>
	<</if>>
<</if>>
<<if $brothel > 0>>
	<<set $seed to 0>>
	<<if $brothel > 0>>
		<<set $seed to $brothelAdsSpending>>
	<</if>>

__Brothel__ maintenance: ¤<<print ($brothel*$facilityCost)+(0.2*$brothelUpgradeDrugs*$brothel*$facilityCost)>>
<</if>>
<<if $club > 0>>
	<<set $seed to 0>>
	<<if $club > 0>>
		<<set $seed to $clubAdsSpending>>
	<</if>>

__Club__ maintenance: ¤<<print ($club*$facilityCost)+(0.2*$clubUpgradePDAs*$club*$facilityCost)>>
<</if>>
<<if $arcade > 0>>

__Arcade__ maintenance: ¤<<print (0.5*$arcade*$facilityCost)+(0.2*$arcadeUpgradeInjectors*$arcade*$facilityCost)+(0.2*$arcadeUpgradeCollectors*$arcade*$facilityCost)>>
<</if>>
<<if $dairy > 0>>

__Dairy__ maintenance: ¤<<print ($dairy*$facilityCost)+(0.2*$dairyFeedersUpgrade*$dairy*$facilityCost)+(0.1*$dairyPregUpgrade*$dairy*$facilityCost)>>
	<<if $bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren > 0>>

    Additional maintenance for milking machines upgraded with biological components: ¤<<print ($bioreactorsXY+$bioreactorsXX+$bioreactorsHerm+$bioreactorsBarren)*100>>
	<</if>>
<</if>>
<<if $collectionFacility > 0>>

__Collection Facility__ maintenance: ¤<<print ($collectionFacility*$facilityCost)+(0.2*$dairyStimulatorsUpgrade*$collectionFacility*$facilityCost)+(0.2*$collectionFacilityUpgradeMilkers*$collectionFacility*$facilityCost)>>
<</if>>
<<if ($servantsQuarters > 0) && ($servantsQuartersUpgradeMonitoring > 0)>>

__Servants' Quarters__ maintenance: ¤<<print (0.2*$servantsQuartersUpgradeMonitoring*$servantsQuarters*$facilityCost)>>
<</if>>
<<if $incubator > 0>>

__Incubation Facility__ maintenance and resource drain: ¤<<print (10*$incubator*$facilityCost)+(0.2*$incubatorUpgradeWeight*$incubator*$facilityCost)+(0.2*$incubatorUpgradeMuscles*$incubator*$facilityCost)+(0.2*$incubatorUpgradeReproduction*$incubator*$facilityCost)+(0.5*$incubatorUpgradeSpeed*$incubator*$facilityCost)>>
	<<if $incubatorWeightSetting+$incubatorMusclesSetting+$incubatorReproductionSetting > 0>>

    Additional monitoring and maintenance costs for growing children: ¤<<print (($incubatorWeightSetting+$incubatorMusclesSetting+$incubatorReproductionSetting)*500)>>
	<</if>>
<</if>>
<<if ($masterSuiteUpgradePregnancy == 1)>>

__Master Suite__ maintenance: ¤<<print ((500*$masterSuiteUpgradePregnancy) + (1000*$masterSuitePregnancyFertilitySupplements))>>
<</if>>
<<if $FSSpending != 0>>

__Society Shaping__ expenses: ¤$FSSpending
<</if>>
<<if $Recruiter != 0>>

__Recruiting__ expenses: ¤250
<</if>>
<<if $TSS.schoolPresent == 1>>

__The Slavegirl School__ branch campus upkeep: ¤1000
<</if>>
<<if $GRI.schoolPresent == 1>>

__Growth Research Institute__ subsidiary lab upkeep: ¤1000
<</if>>
<<if $SCP.schoolPresent == 1>>

__St. Claver Preparatory__ branch campus upkeep: ¤1000
<</if>>
<<if $LDE.schoolPresent == 1>>

__L'Encole des Enculees__ branch campus upkeep: ¤1000
<</if>>
<<if $TGA.schoolPresent == 1>>

__The Gymnasium-Academy__ branch campus upkeep: ¤1000
<</if>>
<<if ($TFS.schoolPresent == 1) && (($PC.dick == 0) || ($PC.vagina == 0) || ($PC.boobs == 0))>>

__The Futanari Sisters__ community upkeep: ¤1000
<</if>>
<<if $TSS.subsidize != 0>>

__The Slavegirl School__ branch campus influence: ¤1000
<</if>>
<<if $GRI.subsidize != 0>>

__Growth Research Institute__ subsidiary lab influence: ¤1000
<</if>>
<<if $SCP.subsidize != 0>>

__St. Claver Preparatory__ branch campus influence: ¤1000
<</if>>
<<if $LDE.subsidize != 0>>

__L'Encole des Enculees__ branch campus influence: ¤1000
<</if>>
<<if $TGA.subsidize != 0>>

__The Gymnasium-Academy__ branch campus influence: ¤1000
<</if>>
<<if $TFS.subsidize != 0>>

__The Futanari Sisters__ community influence: ¤1000
<</if>>

<<if $alwaysSubsidizeGrowth == 1>>

Weekly arcology growth subsidy: ¤$policyCost
<</if>>
<<if $alwaysSubsidizeRep == 1>>

Weekly self-promotion budget: $policyCost
<</if>>

<<if $ProImmigrationCash == 1>>

Pro-immigration promotion budget: $policyCost
<</if>>
<<if $AntiEnslavementCash == 1>>

Anti-enslavement charity budget: $policyCost
<</if>>

<<if $CoursingAssociation == 1>>

Coursing Association membership: ¤1000
<</if>>

<<set $girlsCosts to 0>>

<<for $i to 0; $i < $slaves.length; $i++>>
	<<set $individualCosts to 0>>
	''$slaves[$i].slaveName'':
	<<if $slaves[$i].livingRules is "luxurious">>
	<<if $slaves[$i].relationship >= 4>>

    Living expenses: ¤<<print ($rulesCost*3)>>
		<<set $individualCosts += ($rulesCost*3)>>
	<<else>>

    Living expenses: ¤<<print ($rulesCost*4)>>
		<<set $individualCosts += ($rulesCost*4)>>
	<</if>>
	<<elseif $slaves[$i].livingRules is "normal">>

    Living expenses: ¤<<print ($rulesCost*2)>>
		<<set $individualCosts += ($rulesCost*2)>>
	<<else>>

    Living expenses: ¤<<print ($rulesCost)>>
		<<set $individualCosts += $rulesCost>>
	<</if>>

    Basic slave food cost: ¤<<print $foodCost*4>>
	<<set $individualCosts += $foodCost*4>>
	<<switch $slaves[$i].diet>>
	<<case "fattening" "muscle building">>

    Heavy diet: ¤<<print $foodCost>>
		<<set $individualCosts += $foodCost>>
	<<case "restricted" "slimming">>

    Light diet: //reduced by// ¤<<print $foodCost>>
		<<set $individualCosts -= $foodCost>>
	<</switch>>
	<<if $slaves[$i].weight > 50>>

    Caloric adjustment for heavy weight: ¤<<print $foodCost>>
		<<set $individualCosts += $foodCost>>
	<<elseif $slaves[$i].weight < -50>>

    Caloric adjustment for light weight: //reduced by// ¤<<print $foodCost>>
		<<set $individualCosts -= $foodCost>>
	<</if>>
	<<if $slaves[$i].lactation > 0>>
	<<set $individualCosts += $foodCost>>
	<<if $slaves[$i].lactation > 0>>

    Food to support
		<<if $slaves[$i].lactation > 1>>heavy<<else>>natural<</if>> lactation from
		<<if Math.trunc($slaves[$i].boobs/10000) > 2>>absurd udders<<elseif Math.trunc($slaves[$i].boobs/10000) > 1>>enormous boobs<<else>>reasonable breasts<</if>>:
		¤<<print $foodCost*$slaves[$i].lactation*(1+Math.trunc($slaves[$i].boobs/10000))>>
		<<set $individualCosts += $foodCost*$slaves[$i].lactation*(1+Math.trunc($slaves[$i].boobs/10000))>>
	<</if>>
	<</if>>
	<<if $slaves[$i].preg > 5>>
		<<if $slaves[$i].assignment == "work in the dairy" && $dairyFeedersSetting > 0>>

    Extra feeding costs to support pregnancy are covered by dairy feeders.
		<<elseif ($slaves[$i].assignment == "serve in the master suite" || $slaves[$i].assignment == "be your concubine") && $masterSuiteUpgradePregnancy == 1>>

    Extra feeding costs to support pregnancy are covered by $masterSuiteName luxuries.
		<<else>>

    Extra feeding to support pregnancy: ¤<<print $foodCost*$slaves[$i].pregType>>
			<<set $individualCosts += $foodCost*$slaves[$i].pregType>>
		<</if>>
	<</if>>
	<<if ($slaves[$i].diet == "XX") || ($slaves[$i].diet == "XY")>>

    Hormone enriched diet: ¤25
		<<set $individualCosts += 25>>
	<<elseif ($slaves[$i].diet == "XXY")>>

    Specialized hermaphrodite diet: ¤75
		<<set $individualCosts += 75>>
	<</if>>
	<<if $boobAccessibility != 1>>
	<<if ($slaves[$i].boobs > 7500)>>
	<<if ($slaves[$i].assignment != "work in the dairy") || ($dairyRestraintsSetting < 2)>>

    Increased living expenses due to inconveniently huge boobs: ¤50
		<<set $individualCosts += 50>>
	<</if>>
	<</if>>
	<</if>>
	<<if $pregAccessibility != 1>>
	<<if ($slaves[$i].preg > 30 && $slaves[$i].pregType >= 2) || ($slaves[$i].preg > 20 && $slaves[$i].pregType >= 10) || ($slaves[$i].preg > 10 && $slaves[$i].pregType >= 20) || $slaves[$i].bellyImplant >= 10000>>
	<<if ($slaves[$i].assignment != "labor in the production line")>>

    Increased living expenses due to an inconveniently huge belly: ¤100
	  <<set $individualCosts += 100>>
	<</if>>
	<</if>>
	<</if>>
	<<if $dickAccessibility != 1>>
	<<if ($slaves[$i].dick > 45)>>

    Increased living expenses due to an inconveniently huge penis: ¤50
		<<set $individualCosts += 50>>
	<</if>>
	<</if>>
	<<if $ballsAccessibility != 1>>
	<<if ($slaves[$i].balls > 90)>>

    Increased living expenses due to inconveniently huge balls: ¤50
		<<set $individualCosts += 50>>
	<</if>>
	<</if>>
	<<if $buttAccessibility != 1>>
	<<if ($slaves[$i].butt > 15)>>

    Increased living expenses due to an inconveniently huge butt: ¤50
		<<set $individualCosts += 50>>
	<</if>>
	<</if>>
	<<if !canSee($slaves[$i])>>

    Increased living expenses due to lack of sight: ¤50
		<<set $individualCosts += 50>>
	<<elseif $slaves[$i].eyes <= -1>>

    Increased living expenses due to poor vision: ¤25
		<<set $individualCosts += 25>>
	<<elseif ($slaves[$i].eyewear is "blurring glasses") || ($slaves[$i].eyewear is "blurring contacts")>>

    Increased living expenses due to blurred vision: ¤25
		<<set $individualCosts += 25>>
	<</if>>
	<<if ($slaves[$i].amp != 0)>>
	  <<if ($slaves[$i].amp == 1)>>

    Increased living expenses due to limblessness: ¤$rulesCost
		<<set $individualCosts += $rulesCost>>
	  <<else>>

    Increased living expenses due to prosthetics: ¤<<print $rulesCost/2>>
		<<set $individualCosts += $rulesCost/2>>
	  <</if>>
	<<elseif !canWalk($slaves[$i])>>

    Increased living expenses due to immobility: ¤<<print $rulesCost>>
	  <<set $individualCosts += $rulesCost>>
	<</if>>
	<<if $slaves[$i].boobs > 10000>>
	<<if $slaves[$i].boobsImplantType == 1>>

    Maintenance cost for oversized string implants: ¤50
		<<set $individualCosts += 50>>
	<</if>>
	<</if>>
	<<if $slaves[$i].butt > 10>>
	<<if $slaves[$i].buttImplantType == 1>>

    Maintenance cost for oversized string implants: ¤50
		<<set $individualCosts += 50>>
	<</if>>
	<</if>>
	<<if $slaves[$i].preg > 25>>
	<<if $slaves[$i].universalRulesBirthing == 1>>

    Coverage cost for daily pregnancy scanning: ¤50
		<<set $individualCosts += 50>>
	<</if>>
	<</if>>
	<<if $CitizenRetirement == 1>>

    Retirement account payments: ¤250
	<<set $individualCosts += 250>>
	<</if>>
	<<if ($slaves[$i].inflation == 3)>>
	<<if ($slaves[$i].inflationType == "water")>>

    Costs of specially formulated water for enemas; 2 gallons: ¤100
		<<set $individualCosts += 100>>
	<</if>>
	<<elseif ($slaves[$i].inflation == 2)>>
	<<if ($slaves[$i].inflationType == "water")>>

    Costs of specially formulated water for enemas; 1 gallon: ¤50
		<<set $individualCosts += 50>>
	<</if>>
	<<elseif ($slaves[$i].inflation == 1)>>
	<<if ($slaves[$i].inflationType == "water")>>

    Costs of specially formulated water for enemas; 2 liters: ¤25
		<<set $individualCosts += 25>>
	<</if>>
	<</if>>
	<<if ($slaves[$i].drugs is "anti-aging cream")>>

    Anti-aging creams: ¤<<print ($drugsCost*10)>>
	<<elseif ($slaves[$i].drugs is "female hormone injections") || ($slaves[$i].drugs is "male hormone injections")>>

    Hormonal injections: ¤<<print ($drugsCost*5)>>
		<<set $individualCosts += ($drugsCost*3)>>
	<<elseif ($slaves[$i].drugs != "no drugs")>>

    Standard drugs: ¤<<print ($drugsCost*2)>>
		<<set $individualCosts += ($drugsCost*2)>>
	<</if>>
	<<if ($slaves[$i].curatives > 0)>>

    Health drugs: ¤<<print $drugsCost+($slaves[$i].curatives*$drugsCost)>>
		<<set $individualCosts += $drugsCost+($slaves[$i].curatives*$drugsCost)>>
	<</if>>
	<<if ($slaves[$i].aphrodisiacs > 0)>>

    Aphrodisiacs: ¤<<print ($drugsCost*$slaves[$i].aphrodisiacs)>>
		<<set $individualCosts += $drugsCost*$slaves[$i].aphrodisiacs>>
	<</if>>
	<<if ($slaves[$i].hormones != 0)>>

    Hormones: ¤<<print (Math.trunc($drugsCost*Math.abs($slaves[$i].hormones)*0.5))>>
		<<set $individualCosts += Math.trunc($drugsCost*Math.abs($slaves[$i].hormones)*0.5)>>
	<</if>>
	<<if ($slaves[$i].preg == -1) && isFertile($slaves[$i])>>

    Contraceptives: ¤<<print (Math.trunc($drugsCost*0.5))>>
		<<set $individualCosts += Math.trunc($drugsCost*0.5)>>
	<</if>>
	<<if ($studio == 1)>>
	<<if ($slaves[$i].pornFameSpending > 0)>>

    Publicity: ¤$slaves[$i].pornFameSpending
		<<set $individualCosts += $slaves[$i].pornFameSpending>>
	<</if>>
	<</if>>

        __Total__: ¤<<print ($individualCosts)>>
	<<set $girlsCosts += $individualCosts>>

<</for>>

<<if $PC.career is "servant">>

Using your prior experience, you managed to lower your home's upkeep by <<if $personalAttention == "upkeep">><<if $PC.preg >= 20>>20%<<else>>25%<</if>><<else>>10%<</if>>.
<</if>>

<</nobr>>


code:
:: Coursing Association

<<nobr>>
<<set $nextButton to "Back to Main">>
<<set $nextLink to "Main">>
<<set $returnTo to "Coursing Association">>

You are a member of $arcologies[0].name's Coursing Association. Coursing is a Free Cities revival of the old sport of hunting rabbits and hares with sighthounds, with the typically Free Cities amendments that the hares are replaced by newly enslaved people, the sighthounds are replaced by trained slaves, and the killing of the hare is replaced by rape. Truly, a sport of gentlemen.

The chasing slaves are known as lurchers, the term once used for the sighthounds. They require speed most of all, but must also be able to tackle their quarry; lurchers with the ability and willingness to make a spectacle of molesting the hares can improve their owners' reputations.

<<if $Lurcher != 0>>
	$Lurcher.slaveName is assigned to compete as your lurcher.
<<else>>
	You have not selected a lurcher, meaning that you will not participate in coursing events.
<</if>>
//
<<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title != 0>>Sir<<else>>Ma'am<</if>>, slaves assigned here can continue their usual duties.//

<<if $Lurcher != 0>>

''Fire your Lurcher:''
	<<set $Flag to 1>>
	<<display "Slave Summary">>
<</if>>

''Select a slave to course as a Lurcher:''
<<set $Flag to 0>>
<<display "Slave Summary">>
<<unset $Flag>>

<</nobr>>


code:
:: Custom Slave

<<set $nextButton to "Back">>\
<<set $nextLink to "Buy Slaves">>\
<<set $returnTo to "Buy Slaves">>\
<<set $showEncyclopedia to 1>><<set $encyclopedia to "Kidnapped Slaves">>\
<<if ($customSlave.dick == 0) && ($customSlave.vagina is -1)>><<set $customSlave.vagina to 0>><</if>>\
\
<<if $customSlaveOrdered == 0>>You work up a new slave order for posting where slave merchants can work to fulfill it.<<else>>You review your posted slave order.<</if>> <<if $assistant == 1>>As you work, $assistantName makes lewd comments about what she looks forward to doing to this new slave. <</if>>Your order requests a slave with the following characteristics:

<<nobr>>

<<if $customSlave.actualAge < 5>>3-4 years old.
<<elseif $customSlave.actualAge < 7>>5-6 years old.
<<elseif $customSlave.actualAge < 10>>7-9 years old.
<<elseif $customSlave.actualAge < 13>>10-12 years old.
<<elseif $customSlave.actualAge < 15>>13-14 years old.
<<elseif $customSlave.actualAge < 18>>15-17 years old.
<<elseif $customSlave.actualAge < 20>>18-19 years old.
<<elseif $customSlave.actualAge < 30>>20-29 years old.
<<elseif $customSlave.actualAge < 40>>30-39 years old.
<<else>>40+ years old.
<</if>>

<<if $minimumSlaveAge <= 3>>
<<click "3-4">>
	<<set $customSlave.actualAge to random(3,4)>>
	<<set $customSlave.physicalAge to $customSlave.actualAge>>
	<<set $customSlave.visualAge to $customSlave.actualAge>>
	<<CustomSlaveAge>>
<</click>>
|
<</if>>
<<if $minimumSlaveAge <= 5>>
<<click "5-6">>
	<<set $customSlave.actualAge to random(5,6)>>
	<<set $customSlave.physicalAge to $customSlave.actualAge>>
	<<set $customSlave.visualAge to $customSlave.actualAge>>
	<<CustomSlaveAge>>
<</click>>
|
<</if>>
<<if $minimumSlaveAge <= 7>>
<<click "7-9">>
	<<set $customSlave.actualAge to random(7,9)>>
	<<set $customSlave.physicalAge to $customSlave.actualAge>>
	<<set $customSlave.visualAge to $customSlave.actualAge>>
	<<CustomSlaveAge>>
<</click>>
|
<</if>>
<<if $minimumSlaveAge <= 10>>
<<click "10-12">>
	<<set $customSlave.actualAge to random(10,12)>>
	<<set $customSlave.physicalAge to $customSlave.actualAge>>
	<<set $customSlave.visualAge to $customSlave.actualAge>>
	<<CustomSlaveAge>>
<</click>>
|
<</if>>
<<if $minimumSlaveAge <= 13>>
<<click "13-14">>
	<<set $customSlave.actualAge to random(13,14)>>
	<<set $customSlave.physicalAge to $customSlave.actualAge>>
	<<set $customSlave.visualAge to $customSlave.actualAge>>
	<<CustomSlaveAge>>
<</click>>
|
<</if>>
<<if $minimumSlaveAge <= 15>>
<<click "15-17">>
	<<set $customSlave.actualAge to random(15,17)>>
	<<set $customSlave.physicalAge to $customSlave.actualAge>>
	<<set $customSlave.visualAge to $customSlave.actualAge>>
	<<CustomSlaveAge>>
<</click>>
|
<</if>>
<<click "18-19">>
	<<set $customSlave.actualAge to random(18,19)>>
	<<set $customSlave.physicalAge to $customSlave.actualAge>>
	<<set $customSlave.visualAge to $customSlave.actualAge>>
	<<CustomSlaveAge>>
<</click>>
|
<<click "20-29">>
	<<set $customSlave.actualAge to random(20,29)>>
	<<set $customSlave.physicalAge to $customSlave.actualAge>>
	<<set $customSlave.visualAge to $customSlave.actualAge>>
	<<CustomSlaveAge>>
<</click>>
|
<<click "30-39">>
	<<set $customSlave.actualAge to random(30,39)>>
	<<set $customSlave.physicalAge to $customSlave.actualAge>>
	<<set $customSlave.visualAge to $customSlave.actualAge>>
	<<CustomSlaveAge>>
<</click>>
|
<<click "40+">>
	<<set $customSlave.actualAge to random(40,42)>>
	<<set $customSlave.physicalAge to $customSlave.actualAge>>
	<<set $customSlave.visualAge to $customSlave.actualAge>>
	<<CustomSlaveAge>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.health == 0>>Healthy.
<<else>>Extremely healthy.
<</if>>

<<click "Healthy">>
	<<set $customSlave.health = 0>>
	<<CustomSlaveHealth>>
<</click>>
|
<<click "Extremely healthy">>
	<<set $customSlave.health = 80>>
	<<CustomSlaveHealth>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.muscles <= 5>>Normal musculature.
<<elseif $customSlave.muscles <= 30>>Toned.
<<else>>Ripped.
<</if>>

<<click "Normal">>
	<<set $customSlave.muscles = 0>>
	<<CustomSlaveMuscles>>
<</click>>
|
<<click "Toned">>
	<<set $customSlave.muscles = 20>>
	<<CustomSlaveMuscles>>
<</click>>
|
<<click "Ripped">>
	<<set $customSlave.muscles = 50>>
	<<CustomSlaveMuscles>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.lips == 15>>Normal lips.
<<elseif $customSlave.lips == 35>>Plush lips.
<</if>>

<<click "Normal">>
	<<set $customSlave.lips to 15>>
	<<CustomSlaveLips>>
<</click>>
|
<<click "Plush">>
	<<set $customSlave.lips to 35>>
	<<CustomSlaveLips>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.height < 130>>Tiny.
<<elseif $customSlave.height < 150>>Petite.
<<elseif $customSlave.height < 160>>Short.
<<elseif $customSlave.height < 170>>Average height.
<<elseif $customSlave.height < 185>>Tall.
<<else>>Very tall.
<</if>>

<<click "Tiny">>
	<<set $customSlave.height to 125>>
	<<CustomSlaveHeight>>
<</click>>
|
<<click "Petite">>
	<<set $customSlave.height to 145>>
	<<CustomSlaveHeight>>
<</click>>
|
<<click "Short">>
	<<set $customSlave.height to 155>>
	<<CustomSlaveHeight>>
<</click>>
|
<<click "Average height">>
	<<set $customSlave.height to 165>>
	<<CustomSlaveHeight>>
<</click>>
|
<<click "Tall">>
	<<set $customSlave.height to 175>>
	<<CustomSlaveHeight>>
<</click>>
|
<<click "Very tall">>
	<<set $customSlave.height to 190>>
	<<CustomSlaveHeight>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.face < -1>>Very unattractive face.
<<elseif $customSlave.face is -1>>Unattractive face.
<<elseif $customSlave.face == 0>>Average face.
<<elseif $customSlave.face == 1>>Attractive face.
<<elseif $customSlave.face > 1>>Very attractive face.
<</if>>

<<click "Very unattractive">>
	<<set $customSlave.face to -2>>
	<<CustomSlaveFace>>
<</click>>
|
<<click "Unattractive">>
	<<set $customSlave.face to -1>>
	<<CustomSlaveFace>>
<</click>>
|
<<click "Average">>
	<<set $customSlave.face to 0>>
	<<CustomSlaveFace>>
<</click>>
|
<<click "Attractive">>
	<<set $customSlave.face to 1>>
	<<CustomSlaveFace>>
<</click>>
|
<<click "Very attractive">>
	<<set $customSlave.face to 2>>
	<<CustomSlaveFace>>
<</click>>
<</nobr>>
<<nobr>>

<<textbox "$customSlave.race" $customSlave.race "Custom Slave">>

<<click "White">>
	<<set $customSlave.race to "white">>
	<<CustomSlaveRace>>
<</click>>
|
<<click "Asian">>
	<<set $customSlave.race to "asian">>
	<<CustomSlaveRace>>
<</click>>
|
<<click "Latina">>
	<<set $customSlave.race to "latina">>
	<<CustomSlaveRace>>
<</click>>
|
<<click "Middle Eastern">>
	<<set $customSlave.race to "middle eastern">>
	<<CustomSlaveRace>>
<</click>>
|
<<click "Black">>
	<<set $customSlave.race to "black">>
	<<CustomSlaveRace>>
<</click>>
|
<<click "Semitic">>
	<<set $customSlave.race to "semitic">>
	<<CustomSlaveRace>>
<</click>>
|
<<click "Southern European">>
	<<set $customSlave.race to "southern European">>
	<<CustomSlaveRace>>
<</click>>
|
<<click "Indo-aryan">>
	<<set $customSlave.race to "indo-aryan">>
	<<CustomSlaveRace>>
<</click>>
|
<<click "Amerindian">>
	<<set $customSlave.race to "amerindian">>
	<<CustomSlaveRace>>
<</click>>
|
<<click "Pacific Islander">>
	<<set $customSlave.race to "pacific islander">>
	<<CustomSlaveRace>>
<</click>>
|
<<click "Malay">>
	<<set $customSlave.race to "malay">>
	<<CustomSlaveRace>>
<</click>>
|
<<click "Mixed race">>
	<<set $customSlave.race to "mixed race">>
	<<CustomSlaveRace>>
<</click>>
<</nobr>>
<<nobr>>

<<textbox "$customSlave.skin" $customSlave.skin "Custom Slave">>

<<click "White">>
	<<set $customSlave.skin to "white">>
	<<CustomSlaveSkin>>
<</click>>
|
<<click "Black">>
	<<set $customSlave.skin to "black">>
	<<CustomSlaveSkin>>
<</click>>
|
<<click "Tanned">>
	<<set $customSlave.skin to "tanned">>
	<<CustomSlaveSkin>>
<</click>>
|
<<click "Fair">>
	<<set $customSlave.skin to "fair">>
	<<CustomSlaveSkin>>
<</click>>
|
<<click "Light brown">>
	<<set $customSlave.skin to "light brown">>
	<<CustomSlaveSkin>>
<</click>>
|
<<click "Brown">>
	<<set $customSlave.skin to "brown">>
	<<CustomSlaveSkin>>
<</click>>
|
<<click "Dark">>
	<<set $customSlave.skin to "dark">>
	<<CustomSlaveSkin>>
<</click>>
|
<<click "Light">>
	<<set $customSlave.skin to "light">>
	<<CustomSlaveSkin>>
<</click>>
|
<<click "Olive">>
	<<set $customSlave.skin to "olive">>
	<<CustomSlaveSkin>>
<</click>>
|
<<click "Pale">>
	<<set $customSlave.skin to "pale">>
	<<CustomSlaveSkin>>
<</click>>
|
<<click "Extremely pale">>
	<<set $customSlave.skin to "extremely pale">>
	<<CustomSlaveSkin>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.boobs is 200>>Flat chest.
<<elseif $customSlave.boobs <= 500>>Healthy breasts.
<<else>>Big breasts.
<</if>>

<<click "Flat">>
	<<set $customSlave.boobs to 200>>
	<<CustomSlaveBoobs>>
<</click>>
|
<<click "Healthy">>
	<<set $customSlave.boobs to 500>>
	<<CustomSlaveBoobs>>
<</click>>
|
<<click "Big">>
	<<set $customSlave.boobs to 800>>
	<<CustomSlaveBoobs>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.butt == 1>>Flat buttocks.
<<elseif $customSlave.butt < 4>>Healthy buttocks.
<<else>>Huge buttocks.
<</if>>

<<click "Flat">>
	<<set $customSlave.butt to 1>>
	<<CustomSlaveButt>>
<</click>>
|
<<click "Healthy">>
	<<set $customSlave.butt to 3>>
	<<CustomSlaveButt>>
<</click>>
|
<<click "Huge">>
	<<set $customSlave.butt to 5>>
	<<CustomSlaveButt>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.vagina is -1>>No vagina.
<<elseif $customSlave.vagina == 0>>Vaginal virgin.
<<else>>Normal vagina.
<</if>>
<<if $customSlave.dick > 0>>
<<click "No vagina">>
	<<set $customSlave.vagina to -1, $customSlave.preg to -2, $customSlave.ovaries to 0>>
	<<CustomSlaveVagina>>
<</click>>
<<else>>//No vagina//
<</if>>

|
<<click "Vaginal virgin">>
	<<set $customSlave.vagina to 0, $customSlave.preg to -1, $customSlave.ovaries to 1>>
	<<CustomSlaveVagina>>
<</click>>
|
<<click "Normal">>
	<<set $customSlave.vagina to 1, $customSlave.preg to -1, $customSlave.ovaries to 1>>
	<<CustomSlaveVagina>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.dick == 0>>No penis.
<<elseif $customSlave.dick is 2>>Small penis.
<<else>>Large penis.
<</if>>

<<click "No penis">>
	<<set $customSlave.dick to 0,$customSlave.balls to 0,$customSlave.clit to 0>>
	<<CustomSlaveDick>>
	<<CustomSlaveClitBalls>>
	<<CustomSlaveVagina>>
<</click>>
|
<<click "Small penis">>
	<<set $customSlave.dick to 2,$customSlave.clit to 0>>
	<<CustomSlaveDick>>
	<<CustomSlaveClitBalls>>
	<<CustomSlaveVagina>>
<</click>>
|
<<click "Large penis">>
	<<set $customSlave.dick to 4,$customSlave.clit to 0>>
	<<CustomSlaveDick>>
	<<CustomSlaveClitBalls>>
	<<CustomSlaveVagina>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.dick > 0>>
<<if $customSlave.balls == 0>>No testicles.<<elseif $customSlave.balls is 3>>Small testicles.<<else>>Large testicles.<</if>>
<<click "No testicles">>
	<<set $customSlave.balls to 0,$customSlave.clit to 0>>
	<<CustomSlaveClitBalls>>
<</click>>
|
<<click "Small testicles">>
	<<set $customSlave.balls to 2,$customSlave.clit to 0>>
	<<CustomSlaveClitBalls>>
<</click>>
|
<<click "Large testicles">>
	<<set $customSlave.balls to 4,$customSlave.clit to 0>>
	<<CustomSlaveClitBalls>>
<</click>>
<<else>>
<<if $customSlave.clit == 0>>Normal clitoris.<<elseif $customSlave.clit == 0>>Big clitoris.<<else>>Enormous clitoris.<</if>>
<<click "Normal clitoris">>
	<<set $customSlave.clit to 0>>
	<<CustomSlaveClitBalls>>
<</click>>
|
<<click "Big clitoris">>
	<<set $customSlave.clit to 1>>
	<<CustomSlaveClitBalls>>
<</click>>
|
<<click "Enormous clitoris">>
	<<set $customSlave.clit to 2>>
	<<CustomSlaveClitBalls>>
<</click>>

<<if $customSlave.labia == 0>>Minimal labia<<elseif $customSlave.labia == 1>>Normal labia<<elseif $customSlave.labia is 2>>Huge labia.<<else>>Enormous labia.<</if>>
<<click "Minimal labia">>
	<<set $customSlave.labia to 0>>
	<<CustomSlaveClitBalls>>
<</click>>
|
<<click "Normal labia">>
	<<set $customSlave.labia to 1>>
	<<CustomSlaveClitBalls>>
<</click>>
|
<<click "Huge labia">>
	<<set $customSlave.labia to 2>>
	<<CustomSlaveClitBalls>>
<</click>>
|
<<click "Enormous labia">>
	<<set $customSlave.labia to 3>>
	<<CustomSlaveClitBalls>>
<</click>>
<</if>>

<</nobr>>
<<nobr>>

<<if $customSlave.anus == 0>>Anal virgin.
<<else>>Normal anus.
<</if>>

<<click "Anal virgin">>
	<<set $customSlave.anus to 0>>
	<<CustomSlaveAnus>>
<</click>>
|
<<click "Normal anus">>
	<<set $customSlave.anus to 1>>
	<<CustomSlaveAnus>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.analSkill <= 10>>Sexually unskilled.
<<elseif $customSlave.analSkill <= 10>>Basic sex skills.
<<else>>Sexual skilled.
<</if>>

<<click "Unskilled">>
	<<set $customSlave.analSkill = 0,$customSlave.oralSkill = 0,$customSlave.vaginalSkill = 0>>
	<<CustomSlaveSkills>>
<</click>>
|
<<click "Skilled">>
	<<set $customSlave.analSkill = 15,$customSlave.oralSkill = 15,$customSlave.vaginalSkill = 15>>
	<<CustomSlaveSkills>>
<</click>>
|
<<click "Expert">>
	<<set $customSlave.analSkill = 35,$customSlave.oralSkill = 35,$customSlave.vaginalSkill = 35>>
	<<CustomSlaveSkills>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.whoreSkill <= 10>>Unskilled at prostitution and entertainment.
<<elseif $customSlave.whoreSkill <= 10>>Basic skills at prostitution and entertainment.
<<else>>Skilled at prostitution and entertainment.
<</if>>

<<click "Unskilled">>
	<<set $customSlave.whoreSkill = 0,$customSlave.entertainSkill = 0>>
	<<CustomSlaveWhoreSkills>>
<</click>>
|
<<click "Skilled">>
	<<set $customSlave.whoreSkill = 15,$customSlave.entertainSkill = 15>>
	<<CustomSlaveWhoreSkills>>
<</click>>
|
<<click "Expert">>
	<<set $customSlave.whoreSkill = 35,$customSlave.entertainSkill = 35>>
	<<CustomSlaveWhoreSkills>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.combatSkill == 0>>Unskilled at combat.
<<else>>Skilled at combat.
<</if>>

<<click "Unskilled">>
	<<set $customSlave.combatSkill = 0>>
	<<CustomSlaveCombatSkills>>
<</click>>
|
<<click "Skilled">>
	<<set $customSlave.combatSkill = 1>>
	<<CustomSlaveCombatSkills>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.intelligence >= 3>>Brilliant.
<<elseif $customSlave.intelligence is 2>>Very smart..
<<elseif $customSlave.intelligence == 1>>Smart.
<<elseif $customSlave.intelligence == 0>>Average intelligence.
<<elseif $customSlave.intelligence is -1>>Stupid.
<<elseif $customSlave.intelligence is -2>>Very stupid.
<<else>>Moronic.
<</if>>

<<click "Brilliant">>
	<<set $customSlave.intelligence to 3>>
	<<CustomSlaveIntelligence>>
<</click>>
|
<<click "Very smart">>
	<<set $customSlave.intelligence to 2>>
	<<CustomSlaveIntelligence>>
<</click>>
|
<<click "Smart">>
	<<set $customSlave.intelligence to 1>>
	<<CustomSlaveIntelligence>>
<</click>>
|
<<click "Average intelligence">>
	<<set $customSlave.intelligence to 0>>
	<<CustomSlaveIntelligence>>
<</click>>
|
<<click "Stupid">>
	<<set $customSlave.intelligence to -1>>
	<<CustomSlaveIntelligence>>
<</click>>
|
<<click "Very stupid">>
	<<set $customSlave.intelligence to -2>>
	<<CustomSlaveIntelligence>>
<</click>>
|
<<click "Moronic">>
	<<set $customSlave.intelligence to -3>>
	<<CustomSlaveIntelligence>>
<</click>>
<</nobr>>
<<nobr>>

<<if $customSlave.intelligenceImplant == 1>>Educated.
<<else>>Uneducated.
<</if>>

<<click "Educated">>
	<<set $customSlave.intelligenceImplant to 1>>
	<<CustomSlaveEducation>>
<</click>>
|
<<click "Uneducated">>
	<<set $customSlave.intelligenceImplant to 0>>
	<<CustomSlaveEducation>>
<</click>>
<</nobr>>
<<nobr>>

Nationality: $customSlave.nationality.

<<for _i = 0; _i < $basenationalities.length; _i++>>
<<set _nation to $basenationalities[_i]>>

<<print "
<<click _nation>>
	<<set $customSlave.nationality to $basenationalities[" + _i + "]>>
	<<CustomSlaveNationality>>
<</click>>
">>
<<if _i < $basenationalities.length-1>>
|
<</if>>
<</for>>
<</nobr>>

<<nobr>>
<<if $customSlaveOrdered == 1>>
[[Withdraw custom slave order|Main][$customSlaveOrdered to 0]]
<<else>>
[[Post custom slave order|Main][$customSlaveOrdered to 1]]
<</if>>
<</nobr>>


code:
:: Dairy

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

<<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) && (($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>>
<</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>>
			$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">>
			<<set $slaves[_i].assignmentVisible to 1>>
			$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">>
				<<set $slaves[_i].assignmentVisible to 1>>
				$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">>
				<<set $slaves[_i].assignmentVisible to 1>>
				$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 Societies 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>>
	<<display "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>>
	<<display "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>>
	<<display "Slave Summary">>
<</if>>
<<unset $Flag>>

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