<?xml version="1.0" encoding="utf-8" ?>

<Defs>
	<!--Pawns with ovi's plant egg.-->
	<rjw.HediffDef_InsectEgg Name="RJW_ImplantEgg" Abstract="True">
		<defName>RJW_InsectEgg</defName>
		<label>Egg</label>
		<hediffClass>rjw.Hediff_InsectEgg</hediffClass>
		<defaultLabelColor>(0.8, 0.8, 0.35)</defaultLabelColor>
		<initialSeverity>0.1</initialSeverity>
		<isBad>false</isBad>
		<tendable>false</tendable>
		<eggsize>1</eggsize>							<!--eggsize 1 = 100%, 0 - can hold unlimited eggs, up to 100 eggs per sex-->
		<selffertilized>false</selffertilized>			<!--egg will be implanted fertilized-->
		<stages>
			<li>
				<minSeverity>0.01</minSeverity>
				<capMods>
					<li>
						<capacity>Moving</capacity>
						<offset>-0.01</offset>
					</li>
				</capMods>
			</li>
			<li>
				<minSeverity>0.02</minSeverity>
				<capMods>
					<li>
						<capacity>Moving</capacity>
						<offset>-0.02</offset>
					</li>
				</capMods>
			</li>
			<li>
				<minSeverity>0.05</minSeverity>
				<capMods>
					<li>
						<capacity>Moving</capacity>
						<offset>-0.05</offset>
					</li>
				</capMods>
			</li>
			<li>
				<minSeverity>0.10</minSeverity>
				<capMods>
					<li>
						<capacity>Moving</capacity>
						<offset>-0.10</offset>
					</li>
				</capMods>
			</li>
			<li>
				<minSeverity>0.15</minSeverity>
				<capMods>
					<li>
						<capacity>Moving</capacity>
						<offset>-0.15</offset>
					</li>
				</capMods>
			</li>
			<li>
				<minSeverity>0.20</minSeverity>
				<capMods>
					<li>
						<capacity>Moving</capacity>
						<offset>-0.20</offset>
					</li>
				</capMods>
			</li>
			<li>
				<minSeverity>0.25</minSeverity>
				<capMods>
					<li>
						<capacity>Moving</capacity>
						<offset>-0.25</offset>
					</li>
				</capMods>
			</li>
			<li>
				<minSeverity>0.30</minSeverity>
				<capMods>
					<li>
						<capacity>Moving</capacity>
						<offset>-0.30</offset>
					</li>
				</capMods>
			</li>
			<li>
				<minSeverity>0.40</minSeverity>
				<capMods>
					<li>
						<capacity>Moving</capacity>
						<offset>-0.40</offset>
					</li>
				</capMods>
			</li>
			<li>
				<minSeverity>0.50</minSeverity>
				<capMods>
					<li>
						<capacity>Moving</capacity>
						<offset>-0.50</offset>
					</li>
				</capMods>
			</li>
			<li>
				<minSeverity>0.75</minSeverity>
				<capMods>
					<li>
						<capacity>Moving</capacity>
						<offset>-0.75</offset>
					</li>
				</capMods>
			</li>
			<li>
				<minSeverity>0.9</minSeverity>
				<capMods>
					<li>
						<capacity>Moving</capacity>
						<offset>-1.0</offset>
					</li>
				</capMods>
			</li>
		</stages>
	</rjw.HediffDef_InsectEgg>
	
	<!--Placeholder egg/unsupported/any races-->
	<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
		<defName>RJW_UnknownEgg</defName>
		<parentDef>Unknown</parentDef> 				<!-- exact match-->
	</rjw.HediffDef_InsectEgg>

	<!--vanilla insects, can fertilize each other -->
	<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
		<defName>RJW_InsectHiveEgg</defName>
		<parentDefs>	 							<!-- partial match of pawn.kindDef.defName-->
			<li>Megascarab</li>
			<li>Spelopede</li>
			<li>Megaspider</li>
			<li>Queen</li> 							<!-- Better infestations-->
		</parentDefs>
	</rjw.HediffDef_InsectEgg>

	<!--Used for JobDriver_RapeEnemyByMech. Mechs implant things when success rape.-->
	<rjw.HediffDef_MechImplants Name="RJW_ImplantMech" Abstract="True">
		<hediffClass>rjw.Hediff_MechImplants</hediffClass>
		<defaultLabelColor>(0.8, 0.8, 0.35)</defaultLabelColor>
		<initialSeverity>0.1</initialSeverity>
		<parentDefs>
			<li>Mech_Lancer</li>
			<li>Mech_Scyther</li>
			<li>Mech_Centipede</li>
		</parentDefs>
		<tendable>false</tendable>
	</rjw.HediffDef_MechImplants>

	<rjw.HediffDef_MechImplants ParentName="RJW_ImplantMech">
		<hediffClass>rjw.Hediff_MicroComputer</hediffClass>
		<defName>RJW_MicroComputer</defName>
		<tendable>false</tendable>
		<isBad>true</isBad>
		<label>MicroComputer</label>
		<minEventInterval>30000</minEventInterval>
		<maxEventInterval>90000</maxEventInterval>
		<randomHediffDefs>
			<li>RJW_Orgasm</li>
			<li>TransportCums</li>
			<li>TransportEggs</li>
		</randomHediffDefs>
	</rjw.HediffDef_MechImplants>
	
	<rjw.HediffDef_EnemyImplants>
		<defName>Parasite</defName>
		<hediffClass>rjw.Hediff_Parasite</hediffClass>
		<defaultLabelColor>(0.7, 1.0, 0.7)</defaultLabelColor>
		<initialSeverity>0.1</initialSeverity>
		<isBad>true</isBad>
		<label>pregnant</label>
		<comps>
			<li Class="HediffCompProperties_Discoverable">
				<sendLetterWhenDiscovered>true</sendLetterWhenDiscovered>
				<discoverLetterLabel>{0} Parasited</discoverLetterLabel>
				<discoverLetterText>{0} is parasited!</discoverLetterText>
			</li>
		</comps>
		<stages>
			<li>
				<label>early-stage-hidden</label>
				<becomeVisible>false</becomeVisible>
				<vomitMtbDays>2.5</vomitMtbDays>
			</li>
			<li>
				<label>middle-stage</label>
				<minSeverity>0.333</minSeverity>
				<capMods>
					<li>
						<capacity>Moving</capacity>
						<offset>-0.15</offset>
					</li>
				</capMods>
			</li>
			<li>
				<label>late-stage</label>
				<minSeverity>0.666</minSeverity>
				<vomitMtbDays>2</vomitMtbDays>
				<capMods>
					<li>
						<capacity>Moving</capacity>
						<offset>-0.30</offset>
					</li>
				</capMods>
			</li>
		</stages>
	</rjw.HediffDef_EnemyImplants>
</Defs>