:: Dispensary [nobr]

<<set $nextButton = "Back">>
<<set $nextLink = "Manage Arcology">>
<<set $showEncyclopedia = 1>><<set $encyclopedia = "The Pharmaceutical Fab.">>

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

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

<br><br>

<<if ($organFarmUpgrade < 3) && ($rep <= 10000*$upgradeMultiplierMedicine)>>
	//You lack the reputation to access experimental organ farm parts//
<<elseif $dispensaryUpgrade == 0 && $organFarmUpgrade == 2>>
	//The fabricator must updgraded before it can be fitted with perfected organ farm parts//
<<elseif $organs.length > 0>>
	//The organ farm can not be upgraded while it is use//
<<elseif ($organFarmUpgrade == 2) && ($rep > 10000*$upgradeMultiplierMedicine)>>
	[[Upgrade to the organ farm to the cutting edge model|Dispensary][$cash -= 150000*$upgradeMultiplierMedicine, $organFarmUpgrade = 3]]
	//Costs ¤<<print 150000*$upgradeMultiplierMedicine>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the organ farm to rapidly grow organs without risk to the implantee's health.//
<<elseif ($organFarmUpgrade == 1) && ($rep > 10000*$upgradeMultiplierMedicine)>>
	[[Upgrade the organ farm with an experimental growth accelerator|Dispensary][$cash -= 50000*$upgradeMultiplierMedicine, $organFarmUpgrade = 2]]
	//Costs ¤<<print 50000*$upgradeMultiplierMedicine>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the organ farm to quickly grow organs. Implanted organs may cause health issues.//
<<elseif ($organFarmUpgrade == 0) && ($rep > 10000*$upgradeMultiplierMedicine)>>
	[[Upgrade the fabricator with an experimental organ farm|Dispensary][$cash -= 50000*$upgradeMultiplierMedicine, $organFarmUpgrade = 1]]
	//Costs ¤<<print 50000*$upgradeMultiplierMedicine>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the fabrication of tailored organs using the autosurgery.//
<</if>>
<br>
<<if $organFarmUpgrade > 2>>
	The fabricator is capable of rapidly growing organs.
<<elseif $organFarmUpgrade > 1>>
	The fabricator is capable of quickly growing organs, though not without side effects.
<<elseif ($organFarmUpgrade > 0)>>
	The fabricator is capable of growing organs.
<</if>>

<<if $organs.length > 0>>
It is currently working on the following organs:
	<<for $i = 0; $i < $organs.length; $i++>>
	<<for $j = 0; $j < $slaves.length; $j++>>
		<<if $slaves[$j].ID == $organs[$i].ID>>
		<br>
		$slaves[$j].slaveName's $organs[$i].type,
		<<if $organs[$i].weeksToCompletion <= 0>>
			ready for implantation.
		<<else>>
			<<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.
		<</if>>
		<<break>>
		<</if>>
	<</for>>
	<</for>>
<</if>>

<br><br>

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

<br><br>

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

<br>

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*$upgradeMultiplierMedicine, $hormoneUpgradePower = 1]]
		//Costs ¤<<print 25000*$upgradeMultiplierMedicine>>//
		<br>&nbsp;&nbsp;&nbsp;&nbsp;//Should increase the power of hormone therapies.//
	<<else>>
		//You lack the reputation to obtain prototype medicines//
	<</if>>
<<else>>
	are advanced: they're formulated to improve on natural hormones.
<</if>>

<br>

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

<<if $precociousPuberty == 1>>
<br><br>

<<if ($pubertyHormones == 0) && ($rep <= 4500*$upgradeMultiplierMedicine)>>
	//You lack the reputation to fund forced puberty drugs//
<<elseif ($pubertyHormones == 0) && ($rep > 4500*$upgradeMultiplierMedicine)>>
	[[Fund research into powerful hormonal injections to jumpstart puberty|Dispensary][$cash -= 30000*$upgradeMultiplierMedicine, $pubertyHormones = 1]]
	//Costs ¤<<print 30000*$upgradeMultiplierMedicine>>//
	<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. //
<<elseif ($pubertyHormones == 1)>>
	The fabricator is producing extra strong hormonal drugs designed to force a slave through puberty.
<</if>>
<</if>>

<br><br>

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

<br><br>

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

<br><br>

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

<br><br>

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

<br><br>

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

<br><br>

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


<<if ($ImplantProductionUpgrade == 0) && ($rep <= 2000*$upgradeMultiplierMedicine)>>
	//You lack the reputation to access experimental implant manufacturer parts//
	<br><br>
<</if>>

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

<br><br>

<<if $ImplantProductionUpgrade == 1 && $seeHyperPreg == 1 && $seeExtreme == 1>>
<<if ($permaPregImplant == 0) and ($rep <= 4000*$upgradeMultiplierMedicine)>>
	//You lack the reputation to access experimental pregnancy generator schematics//
<</if>>

<<if ($permaPregImplant == 0) && ($rep > 4000*$upgradeMultiplierMedicine)>>
    [[Purchase schematics for an experimental implantable pregnancy generator|Dispensary][$cash -= 30000*$upgradeMultiplierMedicine, $permaPregImplant = 1]]
	//Costs ¤<<print 30000*$upgradeMultiplierMedicine>>//
    <br>&nbsp;&nbsp;&nbsp;&nbsp;//Will allow the fabrication of implants that force perpetual pregnancy.//
<<elseif ($permaPregImplant > 0)>>
	The fabricator is capable of crafting pregnancy generators.
<</if>>
<br><br>
<</if>>

<<if $seeHyperPreg == 1>>
<<if $superFertilityDrugs == 1 && ($rep > 10000*$upgradeMultiplierMedicine) && $pregSpeedControl != 1>>
	[[Fund research pregnancy speed control methods|Dispensary][$cash -= 200000*$upgradeMultiplierMedicine, $pregSpeedControl = 1, $clinicSpeedGestation = 0]]
	//Costs ¤<<print 200000*$upgradeMultiplierMedicine>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;// Fund underground research labs to develop methods for controlling pregnancy progress. //
<<elseif ($rep > 10000*$upgradeMultiplierMedicine) && $pregSpeedControl != 1>>
	//You lack the reputation required to contact underground research labs to develop methods for controlling pregnancy progress.//
<<elseif ($pregSpeedControl == 1)>>
	The fabricator is producing extremely complex gestation control agents. They can be used to control gestation speed, and even supress labor for some time. //
<</if>>
<br><br>
<<elseif $birthsTotal > 10>>
<<if ($rep > 10000*$upgradeMultiplierMedicine) && $pregSpeedControl != 1>>
	[[Fund research pregnancy speed control methods|Dispensary][$cash -= 200000*$upgradeMultiplierMedicine, $pregSpeedControl = 1, $clinicSpeedGestation = 0]]
	//Costs ¤<<print 200000*$upgradeMultiplierMedicine>>//
	<br>&nbsp;&nbsp;&nbsp;&nbsp;// Fund underground research labs to develop methods for controlling pregnancy progress. //
<<elseif ($rep > 10000*$upgradeMultiplierMedicine) && $pregSpeedControl != 1>>
	//You lack the reputation required to contact underground research labs to develop methods for controlling pregnancy progress.//
<<elseif ($pregSpeedControl == 1)>>
	The fabricator is producing extremely complex gestation control agents. They can be used to control gestation speed, and even supress labor for some time. //
<</if>>
<br><br>
<</if>>

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

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


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

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

<br><br>
__Societal Focused Research__
<br><br>

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

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

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

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

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

