:: Lab Report [nobr]

''Lab Report''<hr style="margin:0">
<br>
<<if ($researchLab.hired + $researchLab.menials) != 0>>
	<<if $researchLab.research == "none" && $researchLab.manufacture == "none">>
		Since the lab is currently not working on any projects it takes contract work and earns you @@.yellowgreen;<<print cashFormat((($researchLab.hired * 3 + $researchLab.menials) * $researchLab.aiModule * 20))>>.@@
		<<set $cash += (($researchLab.hired * 3 + $researchLab.menials) * $researchLab.aiModule * 20)>>
	<<elseif $researchLab.research != "none">>
		<<set $researchLab.productionTime -= (($researchLab.hired * 3) + ($researchLab.menials) * ($researchLab.aiModule))>>
		<<if $researchLab.productionTime <= 0>>
			Your lab staff have @@.green;completed@@ their research project, and
			<<switch $researchLab.research>>
			<<case "Basic prosthetics interface">>
				<<set $researchLab.basicPLimbInterface = 1>>
			<<case "Advanced prosthetics interface">>
				<<set $researchLab.advPLimbInterface = 1>>
			<<case "Basic prosthetic limbs">>
				<<set $researchLab.basicPLimb = 1>>
			<<case "Advanced sex limbs">>
				<<set $researchLab.advSexPLimb = 1>>
			<<case "Advanced beauty limbs">>
				<<set $researchLab.advGracePLimb = 1>>
			<<case "Advanced combat limbs">>
				<<set $researchLab.advCombatPLimb = 1>>
			<<case "Cybernetic limbs">>
				<<set $researchLab.cyberneticPLimb = 1>>
			<<case "Ocular implants">>
				<<set $researchLab.ocularImplant = 1>>
			<<case "Cochlear implants">>
				<<set $researchLab.cochlearImplant = 1>>
			<<case "Electrolarynx">>
				<<set $researchLab.electrolarynx = 1>>
			<<case "Erectile implant">>
				<<set $researchLab.erectileImplant = 1>>
			<</switch>>
			they are awaiting your next instruction.
			<<set $researchLab.productionTime = 0, $researchLab.research = "none">>
		<<else>>
			Your lab staff are currently researching @@.yellow;$researchLab.research@@.
		<</if>>
	<<elseif $researchLab.manufacture != "none">>
		<<set $researchLab.productionTime -= (($researchLab.hired * 3) + ($researchLab.menials) * ($researchLab.aiModule))>>
		<<if $researchLab.productionTime <= 0>>
			Your lab staff have @@.green;completed@@ their project, and
			<<switch $researchLab.manufacture>>
			<<case "Basic prosthetics interface">>
				<<set $stockpile.basicPLimbInterface += 1, $researchLab.productionTime = 50>>
			<<case "Advanced prosthetics interface">>
				<<set $stockpile.advPLimbInterface += 1, $researchLab.productionTime = 80>>
			<<case "Basic prosthetic limbs">>
				<<set $stockpile.basicPLimb += 1, $researchLab.productionTime = 20>>
			<<case "Advanced sex limbs">>
				<<set $stockpile.advSexPLimb += 1, $researchLab.productionTime = 100>>
			<<case "Advanced beauty limbs">>
				<<set $stockpile.advGracePLimb += 1, $researchLab.productionTime = 100>>
			<<case "Advanced combat limbs">>
				<<set $stockpile.advCombatPLimb += 1, $researchLab.productionTime = 100>>
			<<case "Cybernetic limbs">>
				<<set $stockpile.cyberneticPLimb += 1, $researchLab.productionTime = 150>>
			<<case "Ocular implants">>
				<<set $stockpile.ocularImplant += 1, $researchLab.productionTime = 80>>
			<<case "Cochlear implants">>
				<<set $stockpile.cochlearImplant += 1, $researchLab.productionTime = 60>>
			<<case "Electrolarynx">>
				<<set $stockpile.electrolarynx += 1, $researchLab.productionTime = 100>>
			<<case "Erectile implant">>
				<<set $stockpile.erectileImplant += 1, $researchLab.productionTime = 50>>
			<</switch>>
			<span id="haltproduction">
				they are starting work on another unit.
				<<link "Halt production">>
					<<set $researchLab.productionTime = 0, $researchLab.manufacture = "none">>
					<<replace "#haltproduction">>
						they are awaiting your next instruction.
					<</replace>>
				<</link>>
			</span>
		<<else>>
			Your lab staff are currently working on @@.yellow;$researchLab.manufacture@@.
		<</if>>
	<</if>>
<</if>>
