:: Dispensary [nobr]

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

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

<<if ($dispensaryUpgrade == 0)>>
	<<if ($rep > 5000)>>
		[[Upgrade the pharmaceutical fabricator|Dispensary][$cash -= Math.trunc(30000*$upgradeMultiplierArcology), $dispensaryUpgrade = 1, $drugsCost = (($drugsCost*2)/3)]]
		//Costs <<print cashFormat(Math.trunc(30000*$upgradeMultiplierArcology))>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will improve production efficiency further decreasing costs.//
		<br>
	<<else>>
		//You lack the reputation to obtain cutting-edge pharmaceutical fabricator upgrades//
		<br>
	<</if>>
<</if>>

<br>
The Organ Farm
<hr>
<<if ($organFarmUpgrade < 3) && ($rep <= 10000*_PCSkillCheck)>>
	//You lack the reputation to access experimental organ farm parts//
	<br>
<<elseif $dispensaryUpgrade == 0 && $organFarmUpgrade == 2>>
	//The fabricator must upgraded before it can be fitted with perfected organ farm parts//
	<br>
<<elseif $organs.length > 0>>
	//The organ farm cannot be upgraded while it is use//
	<br>
<<elseif ($organFarmUpgrade == 2) && ($rep > 10000*_PCSkillCheck)>>
	[[Upgrade to the organ farm to the cutting edge model|Dispensary][$cash -= 150000*_PCSkillCheck, $organFarmUpgrade = 3]]
	//Costs <<print cashFormat(150000*_PCSkillCheck)>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the organ farm to rapidly grow organs without risk to the implantee's health.//
	<br>
<<elseif ($organFarmUpgrade == 1) && ($rep > 10000*_PCSkillCheck)>>
	[[Upgrade the organ farm with an experimental growth accelerator|Dispensary][$cash -= 50000*_PCSkillCheck, $organFarmUpgrade = 2]]
	//Costs <<print cashFormat(50000*_PCSkillCheck)>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the organ farm to quickly grow organs. Implanted organs may cause health issues.//
	<br>
<<elseif ($organFarmUpgrade == 0) && ($rep > 10000*_PCSkillCheck)>>
	[[Upgrade the fabricator with an experimental organ farm|Dispensary][$cash -= 50000*_PCSkillCheck, $organFarmUpgrade = 1]]
	//Costs <<print cashFormat(50000*_PCSkillCheck)>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the fabrication of tailored organs using the autosurgery.//
	<br>
<</if>>
<<if $organFarmUpgrade > 2>>
	The fabricator is capable of rapidly growing organs.
	<br>
<<elseif $organFarmUpgrade > 1>>
	The fabricator is capable of quickly growing organs, though not without side effects.
	<br>
<<elseif ($organFarmUpgrade > 0)>>
	The fabricator is capable of growing organs.
	<br>
<</if>>
<<if $organs.length > 0>>
It is currently working on the following organs:
	<<for $i = 0; $i < $organs.length; $i++>>
		<<set $j = $slaveIndices[$organs[$i].ID]>>
		<<if def $j>>
			<br>
			$slaves[$j].slaveName's $organs[$i].type,
			<<if $organFarmUpgrade == 1>>
				<<print $organs[$i].weeksToCompletion>>
			<<elseif $organFarmUpgrade == 2>>
				<<print Math.ceil($organs[$i].weeksToCompletion/2)>>
			<<elseif $organFarmUpgrade == 3>>
				<<print Math.ceil($organs[$i].weeksToCompletion/4)>>
			<</if>> weeks from completion.
		<<else>>
			@@.red;Error: organID not found.@@
		<</if>>
	<</for>>
	<br>
<</if>>
<<if $incubatorSlaves > 0>>
	<<for $x = 0; $x < $incubatorOrgans.length; $x++>>
		<<for _w = 0; _w < $incubatorSlaves; _w++>>
			<<if $tanks[_w].ID == $incubatorOrgans[$x].ID>>
				<br>
				$tanks[_w].slaveName's $incubatorOrgans[$x].type,
				<<if $incubatorOrgans[$x].weeksToCompletion <= 0>>
					ready to be implanted as soon as she exits the incubator.
				<<else>>
					<<if $organFarmUpgrade == 1>>
						<<print $incubatorOrgans[$x].weeksToCompletion>>
					<<elseif $organFarmUpgrade == 2>>
						<<print Math.ceil($incubatorOrgans[$x].weeksToCompletion/2)>>
					<<elseif $organFarmUpgrade == 3>>
						<<print Math.ceil($incubatorOrgans[$x].weeksToCompletion/4)>>
					<</if>> weeks from completion.
				<</if>>
				<<break>>
			<</if>>
		<</for>>
	<</for>>
	<br>
<</if>>
<<if $completedOrgans.length > 0>>
	<br>
	Currently the following organs are completed and ready for implantation:
	<<for $i = 0; $i < $completedOrgans.length; $i++>>
		<<set $j = $slaveIndices[$completedOrgans[$i].ID]>>
		<<if def $j>>
			<br>$slaves[$j].slaveName's $completedOrgans[$i].type.
		<<else>>
			@@.red;Error: completedOrganID not found.@@
		<</if>>
	<</for>>
	<br>
<</if>>

<<if $organFarmUpgrade > 0>>
	<<if ($youngerOvaries != 1) && ($rep <= 10000*_PCSkillCheck)>>
		//You lack the reputation to access designs for cloning fertile ovaries for menopausal slaves.//
		<br>
	<<elseif ($youngerOvaries != 1) && ($rep > 10000*_PCSkillCheck)>>
		[[Purchase designs for cloning fertile ovaries for menopausal slaves|Dispensary][$cash -= 30000*_PCSkillCheck, $youngerOvaries = 1]]
		//Costs <<print cashFormat(30000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the growth of younger, fertile ovaries for menopausal slaves. Restored fertility will only last for a couple years at most.//
		<br>
	<<elseif ($youngerOvaries > 0)>>
		The fabricator is capable of growing fertile ovaries for postmenopausal slaves.
		<br>
	<</if>>
<</if>>

<br>
Hormones Upgrades
<hr>
The fabricator is producing
<<if $injectionUpgrade == 0>>
	standard growth hormones.
	<<if $rep > 6000>>
		[[Purchase data on prototype growth hormone tests|Dispensary][$cash -= 25000*_PCSkillCheck, $injectionUpgrade = 1]]
		//Costs <<print cashFormat(25000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Should improve the reliability of growth injections of all kinds.//
		<br>
	<<else>>
		//You lack the reputation to obtain prototype medicines//
		<br>
	<</if>>
<<elseif $injectionUpgrade == 1>>
	prototype growth hormones.
	<<if $rep > 10000>>
		[[Upgrade the fabricator to customize each slave's growth hormones|Dispensary][$cash -= 50000*_PCSkillCheck, $injectionUpgrade = 2]]
		//Costs <<print cashFormat(50000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Should improve the reliability of growth injections of all kinds.//
	<<else>>
		//You lack the reputation to obtain prototype fabricator upgrades//
	<</if>>
<<elseif $injectionUpgrade == 2>>
	prototype growth hormones.
	<<if $rep > 14000>>
		[[Upgrade the fabricator with prototype biomechanical microfactories|Dispensary][$cash -= 100000*_PCSkillCheck, $injectionUpgrade = 3]]
		//Costs <<print cashFormat(100000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Should improve the reliability of growth injections of all kinds.//
		<br>
	<<else>>
		//You lack the reputation to obtain prototype biomechanical microfactories//
		<br>
	<</if>>
<<else>>
	the world's most effective growth hormones.
	<br>
<</if>>

The fabricator is producing
<<if $hormoneUpgradeMood == 0>>
	standardized hormone replacement therapies.
	<<if $rep > 2000>>
		[[Upgrade for individualized therapy|Dispensary][$cash -= 10000*_PCSkillCheck, $hormoneUpgradeMood = 1]]
		//Costs <<print cashFormat(10000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Should eliminate the occasional moodiness and sexual disinterest caused by generalized therapy.//
		<br>
	<<else>>
		//You lack the reputation to obtain advanced drug manufacturing components//
		<br>
	<</if>>
<<else>>
	individualized hormone replacement therapies.
	<br>
<</if>>

The hormone replacement therapies
<<if $hormoneUpgradePower == 0>>
	are traditional: they're formulated to mimic natural hormones.
	<<if $rep > 4000>>
		[[Purchase data on advanced HRT|Dispensary][$cash -= 25000*_PCSkillCheck, $hormoneUpgradePower = 1]]
		//Costs <<print cashFormat(25000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Should increase the power of hormone therapies.//
		<br>
	<<else>>
		//You lack the reputation to obtain prototype medicines//
		<br>
	<</if>>
<<else>>
	are advanced: they're formulated to improve on natural hormones.
	<br>
<</if>>

The hormone replacement therapies
<<if $hormoneUpgradeShrinkage == 0>>
	are broad-spectrum.
	<<if $rep > 4000>>
		[[Purchase data on targeted HRT|Dispensary][$cash -= 25000*_PCSkillCheck, $hormoneUpgradeShrinkage = 1]]
		//Costs <<print cashFormat(25000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Should reduce atrophy of organs corresponding to original sex.//
		<br>
	<<else>>
		//You lack the reputation to obtain prototype medicines//
		<br>
	<</if>>
<<else>>
	are targeted, reducing atrophy of organs corresponding to original sex.
	<br>
<</if>>

<<if $precociousPuberty == 1>>
	<<if ($pubertyHormones == 0) && ($rep <= 4500*_PCSkillCheck)>>
		//You lack the reputation to fund forced puberty drugs//
		<br>
	<<elseif ($pubertyHormones == 0) && ($rep > 4500*_PCSkillCheck)>>
		[[Fund research into powerful hormonal injections to jumpstart puberty|Dispensary][$cash -= 30000*_PCSkillCheck, $pubertyHormones = 1]]
		//Costs <<print cashFormat(30000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the production of powerful hormonal drugs designed to force a slave through puberty without regard for side effects. //
		<br>
	<<elseif ($pubertyHormones == 1)>>
		The fabricator is producing extra strong hormonal drugs designed to force a slave through puberty.
		<br>
	<</if>>
<</if>>

<br>
Dietary Upgrades
<hr>
<<if $feeder == 1>>
	<<if ($dietXXY == 0) && ($rep <= 3500*_PCSkillCheck)>>
		//You lack the reputation to fund research into hermaphrodite hormones//
		<br>
	<<elseif ($dietXXY == 0) && ($rep > 3500*_PCSkillCheck)>>
		[[Fund research into developing hermaphrodite hormone therapies|Dispensary][$cash -= 10000*_PCSkillCheck, $dietXXY = 1]]
		//Costs <<print cashFormat(10000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow for specially balanced meals to be served in the cafeteria designed to promote both halves of a herm's sexuality. //
		<br>
	<<elseif ($dietXXY == 1)>>
		The fabricator is producing meals to be served in the cafeteria designed to promote both halves of a herm's sexuality.
		<br>
	<</if>>
<<else>>
	The feeders are incapable of modifying slave diets well enough to adjust hormones for hermaphrodite meals.
	<br>
<</if>>

<<if $seePreg == 1>>
<<if $feeder == 1>>
	<<if ($reproductionFormula == 0) && ($rep <= 10000*_PCSkillCheck)>>
		//You lack the reputation to access breeders' dietary blends//
		<br>
	<<elseif ($reproductionFormula == 0) && ($rep > 10000*_PCSkillCheck)>>
		[[Purchase reputable breeders' dietary blends|Dispensary][$cash -= 25000*_PCSkillCheck, $reproductionFormula = 1]]
		//Costs <<print cashFormat(25000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow for specially refined meals to be served in the cafeteria designed to promote energetic sperm and robust pregnancies. Side effects may include an increased number of twins being conceived.//
		<br>
	<<elseif ($reproductionFormula == 1)>>
		The fabricator is producing meals to be served in the cafeteria that promote energetic sperm and robust pregnancies.
		<br>
	<</if>>
<<else>>
	The feeders are incapable of modifying slave diets well enough to manage to enhance reproductive ability.
	<br>
<</if>>
<</if>>

<<if $cumProDiet == 0>>
	[[Purchase recipes to encourage cum production|Dispensary][$cash -= 5000*_PCSkillCheck, $cumProDiet = 1]]
	//Costs <<print cashFormat(5000*_PCSkillCheck)>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow for specially designed meals to be served in the cafeteria to promote cum production.//
	<br>
<<elseif $cumProDiet == 1>>
	The fabricator is producing meals to be served in the cafeteria designed to promote cum production.
	<br>
<</if>>

<<if $seePreg == 1>>
	<<if $dietFertility != 1>>
		[[Purchase recipes to encourage ovulation|Dispensary][$cash -= 5000*_PCSkillCheck, $dietFertility = 1]]
		//Costs <<print cashFormat(5000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow for specially designed meals to be served in the cafeteria to promote slave fertility.//
		<br>
	<<elseif $dietFertility == 1>>
		The fabricator is producing meals to be served in the cafeteria designed to promote slave fertility.
		<br>
	<</if>>
<</if>>

<<if $dietCleanse == 0>>
	[[Purchase cleansing recipes to lessen carcinogen buildup|Dispensary][$cash -= 10000*_PCSkillCheck, $dietCleanse = 1]]
	//Costs <<print cashFormat(10000*_PCSkillCheck)>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow for specially designed meals to be served in the cafeteria to counteract excessive drug use.//
	<br>
<<elseif $dietCleanse == 1>>
	The fabricator is producing meals to be served in the cafeteria designed to counteract excessive drug use and good health. They smell awful and taste worse than they look, but they're healthy.
	<br>
<</if>>

<br>
Pharmacological Upgrades
<hr>
<<if ($curativeUpgrade == 0) && ($rep > 6000*_PCSkillCheck)>>
	[[Purchase data on advanced curatives|Dispensary][$cash -= 25000*_PCSkillCheck, $curativeUpgrade = 1]]
	//Costs <<print cashFormat(25000*_PCSkillCheck)>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;//Should improve the effectiveness of curative treatment.//
	<br>
<<elseif ($curativeUpgrade == 1)>>
	The fabricator is producing highly effective curative cocktails.
	<br>
<</if>>

<<if ($growthStim == 0) && ($rep > 6000*_PCSkillCheck)>>
	[[Purchase data on growth stimulants|Dispensary][$cash -= 20000*_PCSkillCheck, $growthStim = 1]]
	//Costs <<print cashFormat(20000*_PCSkillCheck)>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the manufacturing of drugs to encourage growth in slave height.//
	<br>
<<elseif ($growthStim == 1)>>
	The fabricator is able to produce growth stimulants.
	<br>
<</if>>

<<if ($aphrodisiacUpgradeRefine == 0) && ($rep > 6000*_PCSkillCheck)>>
	[[Purchase data on refined aphrodisiacs|Dispensary][$cash -= 20000*_PCSkillCheck, $aphrodisiacUpgradeRefine = 1]]
	//Costs <<print cashFormat(20000*_PCSkillCheck)>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will prevent most physical side effects of aphrodisiacs. Once the formulas are changed they cannot be changed back.//
	<br>
<<elseif ($aphrodisiacUpgradeRefine == 1)>>
	The fabricator is producing refined aphrodisiacs with limited hormonal effects.
	<br>
<</if>>

<<if ($aphrodisiacUpgrade == 0) && ($rep > 6000*_PCSkillCheck)>>
	[[Purchase data on aphrodisiac withdrawal treatment|Dispensary][$cash -= 10000*_PCSkillCheck, $aphrodisiacUpgrade = 1]]
	//Costs <<print cashFormat(10000*_PCSkillCheck)>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;//Should prevent most negative effects of withdrawal.//
	<br>
<<elseif ($aphrodisiacUpgrade == 1)>>
	The fabricator is producing a substitute that will protect slaves from aphrodisiac withdrawal.
	<br>
<</if>>

<<if ($healthyDrugsUpgrade == 0)>>
	<<if (($organFarmUpgrade >= 1) && ($injectionUpgrade != 0) && ($curativeUpgrade == 1) && ($aphrodisiacUpgrade == 1))>>
		<<if ($rep >= 15000*_PCSkillCheck)>>
			[[Fund research into drug formulations without negative physical side effects|Dispensary][$cash -= 500000*_PCSkillCheck,$healthyDrugsUpgrade = 1]]
			//Costs <<print cashFormat(500000*_PCSkillCheck)>>//
			<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will prevent the negative side effects of excessive drug usage on your slaves.//
			<br>
		<<else>>
			// You lack the reputation to access the technology necessary to develop advanced drug formulations. //
			<br>
		<</if>>
	<<else>>
		// You must purchase all other upgrades before developing advanced drug formulations. //
		<br>
	<</if>>
<<else>>
	The fabricator has been upgraded to optimize the structures of your other drugs, eliminating their negative side effects.
	<br>
<</if>>
/* Code [draft] contributed by Anon1888 */

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

<<if $seePreg != 0>>
<br>
Fertility Focused Pharmacology
<hr>
<<if $seeHyperPreg == 1>>
	<<if $superFertilityDrugs == 1 && ($rep > 10000*_PCSkillCheck) && $pregSpeedControl != 1>>
		[[Fund research pregnancy speed control methods|Dispensary][$cash -= 200000*_PCSkillCheck, $pregSpeedControl = 1, $clinicSpeedGestation = 0]]
		//Costs <<print cashFormat(200000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;// Fund underground research labs to develop methods for controlling pregnancy progress. //
		<br>
	<<elseif ($rep <= 10000*_PCSkillCheck) && $pregSpeedControl != 1>>
		//You lack the reputation required to contact underground research labs to develop methods for controlling pregnancy progress.//
		<br>
	<<elseif ($pregSpeedControl == 1)>>
		The fabricator is producing extremely complex gestation control agents. They can be used to control gestation speed, and even suppress labor for some time. //
		<br>
	<</if>>
<<elseif $birthsTotal > 10>>
	<<if ($rep > 10000*_PCSkillCheck) && $pregSpeedControl != 1>>
		[[Fund research pregnancy speed control methods|Dispensary][$cash -= 200000*_PCSkillCheck, $pregSpeedControl = 1, $clinicSpeedGestation = 0]]
		//Costs <<print cashFormat(200000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;// Fund underground research labs to develop methods for controlling pregnancy progress. //
		<br>
	<<elseif ($rep <= 10000*_PCSkillCheck) && $pregSpeedControl != 1>>
		//You lack the reputation required to contact underground research labs to develop methods for controlling pregnancy progress.//
		<br>
	<<elseif ($pregSpeedControl == 1)>>
		The fabricator is producing extremely complex gestation control agents. They can be used to control gestation speed, and even suppress labor for some time. //
		<br>
	<</if>>
<<else>>
	//You lack the experience handling pregnant slaves required to convince underground research labs to do business with you in the development of controlled fetal development.//
	<br>
<</if>>

<<if ($superFertilityDrugs == 0) && ($rep > 2500*_PCSkillCheck) && $seeHyperPreg == 1>>
	[[Purchase data on powerful fertility drugs|Dispensary][$cash -= 20000*_PCSkillCheck, $superFertilityDrugs = 1]]
	//Costs <<print cashFormat(20000*_PCSkillCheck)>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;//Should improve the likelihood of conception and multiples. //
	<br>
<<elseif ($superFertilityDrugs == 1)>>
	The fabricator is producing highly effective fertility agents. There is a warning present involving overdosing and instances of ten or more children.
	<br>
<</if>>
<</if>>

<br>
Implant Production
<hr>
<<if ($ImplantProductionUpgrade == 0) && ($rep <= 2000*_PCSkillCheck)>>
	//You lack the reputation to access advanced implant manufacturer parts//
	<br>
<</if>>

<<if ($ImplantProductionUpgrade == 0) && ($rep > 2000*_PCSkillCheck)>>
	[[Upgrade the fabricator with an advanced implant manufacturer|Dispensary][$cash -= 10000*_PCSkillCheck, $ImplantProductionUpgrade = 1]]
	//Costs <<print cashFormat(10000*_PCSkillCheck)>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the fabrication of advanced implants using the autosurgery.//
	<br>
<<elseif ($ImplantProductionUpgrade > 0)>>
	The fabricator is capable of crafting advanced implants.
	<br>
<</if>>

<<if $ImplantProductionUpgrade == 1 && $seeHyperPreg == 1 && $seeExtreme == 1 && $seePreg != 0>>
	<<if ($permaPregImplant == 0) && ($rep <= 4000*_PCSkillCheck)>>
		//You lack the reputation to access experimental pregnancy generator schematics//
		<br>
	<</if>>
	<<if ($permaPregImplant == 0) && ($rep > 4000*_PCSkillCheck)>>
		[[Purchase schematics for an experimental implantable pregnancy generator|Dispensary][$cash -= 40000*_PCSkillCheck, $permaPregImplant = 1]]
		//Costs <<print cashFormat(40000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the fabrication of implants that force perpetual pregnancy.//
		<br>
	<<elseif ($permaPregImplant > 0)>>
		The fabricator is capable of crafting pregnancy generators.
		<br>
	<</if>>
<</if>>

<<if $ImplantProductionUpgrade == 1>>
	<<if ($bellyImplants == 0) && ($rep <= 2000*_PCSkillCheck)>>
		//You lack the reputation to access experimental fillable abdominal implants//
		<br>
	<</if>>

	<<if ($bellyImplants == 0) && ($rep > 2000*_PCSkillCheck)>>
		[[Purchase schematics for fillable abdominal implants|Dispensary][$cash -= 30000*_PCSkillCheck, $bellyImplants = 1]]
		//Costs <<print cashFormat(30000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the fabrication of fillable abdominal implants using the autosurgery.//
		<br>
	<<elseif ($bellyImplants > 0)>>
		The fabricator is capable of crafting fillable abdominal implants.
		<br>
	<</if>>

	<<if ($bellyImplants == 1) && ($cervixImplants != 1) && ($rep <= 6000*_PCSkillCheck)>> /* show only after belly implants already researched */
		//You lack the reputation to access experimental cervix filter micropumps schematics for abdominal implants//
		<br>
	<</if>>

	<<if ($bellyImplants == 1) && ($cervixImplants != 1) && ($rep >6000*_PCSkillCheck)>> /* nanotech like technology much more impressive and costly than simple implant */
		[[Purchase schematics for cervix filter micropumps|Dispensary][$cash -= 70000*_PCSkillCheck, $cervixImplants = 1]]
		//Costs <<print cashFormat(70000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the fabrication of cervix filter micropumps for fillable abdominal implants using the autosurgery.//
		<br>
	<<elseif ($cervixImplants > 0)>>
		The fabricator is capable of crafting cervix filter micropumps for fillable abdominal implants.
		<br>
	<</if>>

	<<if ($prostateImplants != 1) && ($rep <= 3000*_PCSkillCheck)>>
		//You lack the reputation to access plans for prostate implants//
		<br>
	<</if>>
	<<if ($prostateImplants != 1) && ($rep > 3000*_PCSkillCheck)>>
		[[Purchase plans for ejaculation enhancing prostate implants|Dispensary][$cash -= 30000*_PCSkillCheck, $prostateImplants = 1]]
		//Costs <<print cashFormat(30000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the fabrication of a prostate implant designed to stimulate fluid production for massive ejaculations. Beware of leaking and dehydration.//
		<br>
	<<elseif ($prostateImplants > 0)>>
		The fabricator is capable of producing ejaculation enhancing prostate implants.
		<br>
	<</if>>

	<<if ($meshImplants != 1) && ($rep <= 10000*_PCSkillCheck)>>
		//You lack the reputation to access plans for supportive breast implants//

	<</if>>
	<<if ($meshImplants != 1) && ($rep > 10000*_PCSkillCheck)>>
		[[Purchase plans for supportive mesh breast implants|Dispensary][$cash -= 40000*_PCSkillCheck, $meshImplants = 1]]
		//Costs <<print cashFormat(40000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the fabrication of organic and supportive mesh breast implants.//
		<br>
	<<elseif ($meshImplants > 0)>>
		The fabricator is capable of producing supportive mesh breast implants.
		<br>
	<</if>>

<</if>>

<br>
Future Societies Research
<hr>

<<if $seePreg != 0>>
<<if $arcologies[0].FSGenderRadicalistDecoration == 100 && $organFarmUpgrade > 0>>
	<<if ($arcologies[0].FSGenderRadicalistResearch == 0)>>
		<<if ($rep >= 10000*_PCSkillCheck)>>
			[[Fund research into developing male pregnancy methods|Dispensary][$cash -= 50000*_PCSkillCheck,$arcologies[0].FSGenderRadicalistResearch = 1]] //Costs <<print cashFormat(50000*_PCSkillCheck)>>. Will allow cloning and production of anal uteri and ovaries.//
			<br>
		<<else>>
			// You lack the reputation to access the research necessary to develop anal uteri and ovaries. //
			<br>
		<</if>>
	<<else>>
		The organ farm has been upgraded with schematics for modified uteri and ovaries.
		<br>
	<</if>>
<<elseif $arcologies[0].FSGenderRadicalistResearch == 1>>
	The organ farm has been upgraded with schematics for modified uteri and ovaries.
	<br>
<<else>>
	// Gender Radicalist focused research unavailable. //
	<br>
<</if>>
<</if>>

<<if ($ImplantProductionUpgrade == 1) && ($arcologies[0].FSTransformationFetishistDecoration >= 100)>>
	<<if ($arcologies[0].FSTransformationFetishistResearch == 0) && ($rep <= 5000*_PCSkillCheck)>>
		//You lack the reputation to access experimental gigantic implants and elasticizing filler.//
		<br>
	<<elseif ($arcologies[0].FSTransformationFetishistResearch == 0)>>
		[[Purchase data on gigantic implants and elasticizing filler|Dispensary][$cash -= 20000*_PCSkillCheck, $arcologies[0].FSTransformationFetishistResearch = 1]]
		//Costs <<print cashFormat(20000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the fabrication of gigantic implants using the autosurgery and filler capable of overfilling existing fillable implants.//
		<br>
	<<elseif ($arcologies[0].FSTransformationFetishistResearch > 0)>>
		The fabricator is capable of crafting gigantic implants and elasticizing filler designed to overfill existing implants.
		<br>
	<</if>>
<<elseif $arcologies[0].FSTransformationFetishistResearch == 1>>
	The fabricator is capable of crafting gigantic implants and elasticizing filler designed to overfill existing implants.
	<br>
<<else>>
	// Transformation Fetishist focused research unavailable. //
	<br>
<</if>>

<<if $arcologies[0].FSAssetExpansionistDecoration == 100>>
	<<if ($arcologies[0].FSAssetExpansionistResearch == 0)>>
		<<if ($rep >= 5000*_PCSkillCheck)>>
			[[Fund research into drug formulations for growth without limit|Dispensary][$cash -= 30000*_PCSkillCheck,$arcologies[0].FSAssetExpansionistResearch = 1]] //Costs <<print cashFormat(30000*_PCSkillCheck)>>. Will allow creation of drugs to push assets to unthinkable sizes.//
			<br>
		<<else>>
			// You lack the reputation to access the research necessary to develop advanced growth drug formulations. //
			<br>
		<</if>>
	<<else>>
		The fabricator has been upgraded to manufacture extremely powerful growth drugs.
		<br>
	<</if>>
<<elseif $arcologies[0].FSAssetExpansionistResearch == 1>>
	The fabricator has been upgraded to manufacture extremely powerful growth drugs.
	<br>
<<else>>
	// Asset Expansionist focused research unavailable. //
	<br>
<</if>>

<<if $arcologies[0].FSSlimnessEnthusiastDecoration == 100>>
	<<if ($arcologies[0].FSSlimnessEnthusiastResearch == 0)>>
		<<if ($rep >= 5000*_PCSkillCheck)>>
			[[Fund research into drug formulations for slimming slaves|Dispensary][$cash -= 30000*_PCSkillCheck,$arcologies[0].FSSlimnessEnthusiastResearch = 1]] //Costs <<print cashFormat(30000*_PCSkillCheck)>>. Will allow creation of drugs to shrink assets.//
			<br>
		<<else>>
			// You lack the reputation to access the research necessary to develop asset reducing drug formulations. //
			<br>
		<</if>>
	<<else>>
		The fabricator has been upgraded to manufacture growth reversing drugs.
		<br>
	<</if>>
<<elseif $arcologies[0].FSSlimnessEnthusiastResearch == 1>>
	The fabricator has been upgraded to manufacture growth reversing drugs.
	<br>
<<else>>
	// Slimness Enthusiast focused research unavailable. //
	<br>
<</if>>

<<if $arcologies[0].FSYouthPreferentialistDecoration == 100>>
	<<if ($arcologies[0].FSYouthPreferentialistResearch == 0)>>
		<<if ($rep >= 5000*_PCSkillCheck)>>
			[[Fund research into skin care designed to reverse the effects of aging|Dispensary][$cash -= 30000*_PCSkillCheck,$arcologies[0].FSYouthPreferentialistResearch = 1]] //Costs <<print cashFormat(30000*_PCSkillCheck)>>. Will allow creation of beauty creams designed to make slaves look young again.//
			<br>
		<<else>>
			// You lack the reputation to access the research necessary to develop beauty creams designed to make slaves look young again. //
			<br>
		<</if>>
	<<else>>
		The fabricator has been upgraded to manufacture extremely effective beauty creams designed to combat aging.
		<br>
	<</if>>
<<elseif $arcologies[0].FSYouthPreferentialistResearch == 1>>
	The fabricator has been upgraded to manufacture extremely effective beauty creams designed to combat aging.
	<br>
<<else>>
	// Youth Preferentialist focused research unavailable. //
	<br>
<</if>>

<<if $arcologies[0].FSHedonisticDecadenceDecoration == 100>>
	<<if ($arcologies[0].FSHedonisticDecadenceResearch == 0)>>
		<<if ($rep >= 5000*_PCSkillCheck)>>
			[[Purchase recipes for concentrated, shaped slave food|Dispensary][$cash -= 50000*_PCSkillCheck,$arcologies[0].FSHedonisticDecadenceResearch = 1]] //Costs <<print cashFormat(50000*_PCSkillCheck)>>. Will allow production of solid slave food in various familiar shapes and flavors. Addictive and a little fatty.<<if $arcologies[0].FSDegradationist != "unset">> Since your slaves don't deserve luxuries, a modified recipe formulated to cause severe stomach cramps minutes after ingestion will be developed.<</if>> //
			<br>
		<<else>>
			// You lack the reputation to access the research necessary to purchase concentrated, shaped slave food recipes. //
			<br>
		<</if>>
	<<else>>
		The fabricator has been upgraded to manufacture tasty, extremely addictive, solid slave food in various familiar shapes and flavors. While they look and taste like real food, their consistency is all wrong. Slaves gorging on them are likely to experience steady weight gain.<<if $arcologies[0].FSDegradationist != "unset">> Since your slaves don't deserve luxuries, all food crafted will cause severe stomach cramps minutes after ingestion. Coupled with their addictive nature, it ought to be quite torturous.<</if>>
		<<if $arcologies[0].FSSlimnessEnthusiast > 50 && $arcologies[0].FSHedonisticDecadenceDietResearch == 0>>
			<br>&nbsp;&nbsp;&nbsp;&nbsp;
			[[Purchase diet recipes|Dispensary][$cash -= 10000*_PCSkillCheck,$arcologies[0].FSHedonisticDecadenceDietResearch = 1]]
			//Costs <<print cashFormat(10000*_PCSkillCheck)>>//
			<br>&nbsp;&nbsp;&nbsp;&nbsp;
			Will prevent rampant weight gain from ruining your slim slaves.
			<br>
		<<elseif $arcologies[0].FSHedonisticDecadenceDietResearch == 1>>
			A diet recipe is being utilized to prevent unwanted weight gain.
			<br>
		<</if>>
	<</if>>
<<elseif $arcologies[0].FSHedonisticDecadenceResearch == 1>>
	The fabricator has been upgraded to manufacture tasty, extremely addictive, solid slave food in various familiar shapes and flavors. While they look and taste like real food, their consistency is all wrong. Slaves gorging on them are likely to experience steady weight gain.<<if $arcologies[0].FSDegradationist != "unset">> Since your slaves don't deserve luxuries, all food crafted will cause severe stomach cramps minutes after ingestion. Coupled with their addictive nature, it ought to be quite torturous.<</if>>
	<<if $arcologies[0].FSHedonisticDecadenceDietResearch == 0>>
		<br>&nbsp;&nbsp;&nbsp;&nbsp;
		[[Purchase diet recipes|Dispensary][$cash -= 10000*_PCSkillCheck,$arcologies[0].FSHedonisticDecadenceDietResearch = 1]]
		//Costs <<print cashFormat(10000*_PCSkillCheck)>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		Will prevent rampant unwanted weight gain from ruining your <<if $arcologies[0].FSSlimnessEnthusiast > 20>>slim <</if>>slaves.
		<br>
	<<elseif $arcologies[0].FSHedonisticDecadenceDietResearch == 1>>
		A diet recipe is being utilized to prevent unwanted weight gain.
		<br>
	<</if>>
	&nbsp;&nbsp;&nbsp;&nbsp;
	<<link "Cancel solid slave food production" "Dispensary">><<set $arcologies[0].FSHedonisticDecadenceResearch = 0>><<set $merchantFSWares.push("HedonisticDecadenceResearch")>><</link>>
	<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	Will //completely// remove this research.
	<br>
<<else>>
	// Hedonistic Decadence focused research unavailable. //
	<br>
<</if>>
