:: Clinic
 
<<nobr>>
<<set $nextButton to "Back to Main", $nextLink to "Main", $returnTo to "Clinic">>

<<if $clinicName != "the Clinic">>
	<<set $clinicNameCaps to $clinicName.replace("the ", "The ")>>
<</if>>

<<set $clinicSlaves to 0>>
<<set $notClinicSlaves to 0>>
<<for _i to 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].assignment is "get treatment in the clinic">>
		<<set $clinicSlaves++>>
		<<if $clinicSpeedGestation == 1>>
			<<if $slaves[_i].preg > 0>>
				<<set $slaves[_i].pregControl = "speed up">>
			<</if>>
		<</if>>
	<<else>>
		<<set $notClinicSlaves++>>
	<</if>>
<</for>>

<<for _i to 0; _i < $slaves.length; _i++>>
	<<if $slaves[_i].preg is "get treatment in the clinic">>
		<<set $clinicSlaves++>>
	<<else>>
		<<set $notClinicSlaves++>>
	<</if>>
<</for>>

$clinicNameCaps
<<switch $clinicDecoration>>
<<case "Roman Revivalist">>
	is open and airy; a breeze wafts through the space, and Roman theories on natural cleanliness are very much on display.
<<case "Egyptian Revivalist">>
	is open and airy; clean rushes are strewn across the floor, making a gentle susurration when anyone crosses the space.
<<case "Edo Revivalist">>
	is clean and spartan to the point of featurelessness. Spotless tatami mats cover the floor, and partitions divide the space into cubicles.
<<case "Arabian Revivalist">>
	is open and airy; a thin trail of smoke wafts through the space on a gentle breeze, coming from a brazier burning incense.
<<case "Chinese Revivalist">>
	is open and airy; a thin trail of smoke wafts through the space on a gentle breeze, coming from a brazier burning medicinal herbs.
<<case "Chattel Religionist">>
	is open and airy; shaded beams of sunlight shine through skylights to bathe each bed in a pool of healing warmth.
<<case "Degradationist">>
	is clean and cold, all scrubbed tile and cool steel. The beds have prominent restraint attachment points to force patients into any position desired.
<<case "Repopulation Focus">>
	is warm and inviting, with wide corridors and ample seating for its pregnant clientele. All the equipement is designed to accommodate heavily pregnant women.
<<case "Eugenics">>
	is warm and inviting on one side, cold and utilitarian on the other. Only the toys of the elite are allowed the best of care.
<<case "Asset Expansionist">>
	is utilitarian, without any concession to style. Every available centimeter of space is used for equipment specialized to support growth.
<<case "Transformation Fetishist">>
	is utilitarian, without any concession to style. Every available centimeter of space is used for equipment specialized to support radical surgery.
<<case "Gender Radicalist">>
	is comfortable and feminine. Its curving walls and soft colors are designed to present slaves coming out of anaesthesia with an impression of girlishness.
<<case "Gender Fundamentalist">>
	is comfortable and feminine. Its curving walls and soft colors are designed to keep slaves here for their female health nice and comfortable.
<<case "Physical Idealist">>
	is utilitarian, without any concession to style. Every available centimeter of space is used for some piece of equipment useful in making the human body faster or stronger.
<<case "Supremacist">>
	is clean and cold, all scrubbed tile and cool steel. The only hint of its radical uses are the pseudoscientific racialist charts on the walls.
<<case "Subjugationist">>
	is clean and cold, all scrubbed tile and cool steel. The only hint of its radical uses are the pseudoscientific racialist charts on the walls.
<<case "Paternalist">>
	is warm and inviting, with curved walls and warm colors designed to put patients at their ease. Each bed is well provided with entertainment options.
<<case "Pastoralist">>
	is utilitarian, without any concession to style. Every available centimeter of space is used for equipment specialized for human veterinary medicine.
<<case "Maturity Preferentialist">>
	is comfortable and soothing, with curved walls and cool colors designed to keep patients relaxed. Each bed is provided with refined yet invariably pornographic entertainment options.
<<case "Youth Preferentialist">>
	is bright and cheerful, with curved walls and pastel colors designed to keep patients in good spirits. Each bed is provided with light entertainment options.
<<case "Body Purist">>
	is utilitarian, without any concession to style. Every available centimeter of space is filled with equipment designed to make medicine as low-impact as possible.
<<case "Slimness Enthusiast">>
	is warm and inviting, with curved walls and warm colors designed to put patients at their ease. Each bed is well provided with entertainment options.
<<default>>
	is a well-equipped modern medical facility. Each patient has her own area, with heavy automation to provide her treatment without any human intervention at all.
<</switch>>

<<if $clinicSlaves > 2>>
	$clinicNameCaps is busy. Patients occupy many of the beds; most are alert, but a few are dozing under medication designed to promote healing through deep rest.
<<elseif $clinicSlaves > 0>>
	$clinicNameCaps is sparsely populated. Patients occupy a few of the beds; most are alert, but a few are dozing under medication designed to promote healing through deep rest.
<<elseif $Nurse != 0>>
	$Nurse.slaveName is alone in the clinic, and has nothing to do but keep the place spotlessly clean and ready for its next patients.
<<else>>
	$clinicNameCaps is empty and quiet. [[Decommission the Clinic|Main][$clinic to 0, $clinicDecoration to "standard"]]
<</if>>

<br>$clinicNameCaps has room to support $clinic slaves while they receive treatment.
[[Expand the clinic|Clinic][$cash -=  Math.trunc($clinic*1000*$upgradeMultiplierArcology), $clinic += 5]] //Costs ¤<<print Math.trunc($clinic*1000*$upgradeMultiplierArcology)>>//

<br>
<<if $clinicUpgradeScanner == 1>>
	$clinicNameCaps's scanners have been upgraded with a sampling system that can estimate carcinogenic damage to a slave's genome.
<<else>>
	It mounts powerful medical scanning technology. [[Upgrade the scanners to help detect genomic damage|Clinic][$cash -=  Math.trunc(10000*$upgradeMultiplierArcology), $clinicUpgradeScanner to 1]] //Costs ¤<<print Math.trunc(10000*$upgradeMultiplierArcology)>>//
<</if>>

<br>
<<if $clinicUpgradeFilters == 1>>
	<<if $clinicUpgradePurge == 1>>
		The entire floor beneath $clinicName is occupied by a huge filtration plant that constantly cycles out the patients' blood to remove impurities. The blood is intensely cleaned to greatly decrease the presence of impurities at the cost of compatability. Patients will likely be ill for the duration of the treatment.
	<<else>>
		The entire floor beneath $clinicName is occupied by a huge filtration plant that constantly cycles out the patients' blood to remove impurities. [[Increase the effectiveness of the impurity purging|Clinic][$cash -= Math.trunc(150000*$upgradeMultiplierArcology), $clinicUpgradePurge to 1]] //Costs ¤<<print Math.trunc(150000*$upgradeMultiplierArcology)>> and may cause health problems in slaves//
	<</if>>
<<else>>
	It includes standard dialysis equipment. [[Install advanced blood treatment equipment to help address drug side effects|Clinic][$cash -= Math.trunc(50000*$upgradeMultiplierArcology), $clinicUpgradeFilters to 1]] //Costs ¤<<print Math.trunc(50000*$upgradeMultiplierArcology)>>//
<</if>>

<br>
<<if $bellyImplants == 1 && $clinicInflateBelly == 1>>
	$clinicNameCaps is useful for keeping slaves healthy during long term procedures. Slaves in $clinicName with inflantable belly implants will be filled during their time under $Nurse.slaveName's supervision to maximize growth with minimized health complications. [[Do not fill belly implants|Clinic][$clinicInflateBelly = 0]]
<<elseif $bellyImplants == 1 && $Nurse == 0>>
	A resident nurse could be used to safely regulate the rate a slave's fillable belly implant for maximum size with minimum health loss.
<<elseif $bellyImplants == 1 && $Nurse != 0 && $clinicInflateBelly != 1>>
	$clinicNameCaps is useful for keeping slaves healthy during long term procedures. $Nurse.slaveName can supervise weekly filling regiments for clinic slaves with fillable belly implants during their stay to maximize growth with minimal health complications. [[Fill belly implants|Clinic][$clinicInflateBelly = 1]]
<</if>>

<br>
<<if $pregSpeedControl == 1 && $clinicSpeedGestation == 1>>
	It's exceedingly dangerous to speed up gestation without constant supervision. In $clinicName, $Nurse.slaveName will monitor slaves on rapid gestation agents; making sure the growing patients' food demands are met, monitoring their skin and womb and, if need be, perform an emergency c-section should the need arise. [[Limit rapid gestation agents to slected slaves only|Clinic][$clinicSpeedGestation = 0]]
<<elseif $pregSpeedControl == 1 && $Nurse == 0>>
	A resident nurse could be used to supervise patients under rapid gestation agents while minimizing strain and health complications.
<<elseif $pregSpeedControl == 1 && $Nurse != 0 && $clinicSpeedGestation != 1>>
	$clinicNameCaps is currently not applying rapid gestation agents to pregnant patients. Only individually selected slaves will undergo this procedure [[Speed up gestation for all pregnant patients|Clinic][$clinicSpeedGestation = 1]]
<</if>>

<br><br>
<<if $Nurse != 0>>
	<<set $Flag to 2>>
	<<include "Slave Summary">>
<<else>>
	You do not have a slave serving as a clinical Nurse. [[Appoint one|Nurse Select]]
<</if>>

<<if $clinicSlaves > 0>>
	<br><br>''Take a slave out of the clinic:''
	<<set $Flag to 1>>
	<<include "Slave Summary">>
<</if>>

<<if $notClinicSlaves > 0>>
	<br><br>''Send a slave to get treatment in the clinic:''
	<<set $Flag to 0>>
	<<include "Slave Summary">>
<</if>>
<<unset $Flag>>

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