﻿<?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>
		<description>Parasitic egg(s) that enter the host's body and feeds off their nutrients until ready to hatch. Just be glad they don't hatch by bursting out of your chest.</description>
		<defaultLabelColor>(0.8, 0.8, 0.35)</defaultLabelColor>
		<initialSeverity>0.01</initialSeverity>
		<preventsPregnancy>true</preventsPregnancy>
		<pregnant>true</pregnant>
		<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-->
		<UnFertEggDef>RJW_EggUnfertilized</UnFertEggDef>				 	<!-- egg props: color, desc etc-->
		<FertEggDef>RJW_EggFertilized</FertEggDef>							<!-- egg props: color, desc etc-->
	</rjw.HediffDef_InsectEgg>

	<!--vanilla insects, can fertilize each other -->
	<rjw.HediffDef_InsectEgg ParentName="RJW_ImplantEgg">
		<defName>RJW_InsectHiveEgg</defName>
		<parentDefs>	 							<!-- partial string match of pawn.kindDef.defName-->
			<li>Megascarab</li>
			<li>Spelopede</li>
			<li>Megaspider</li>
			<li>Queen</li> 							<!-- Better infestations-->
		</parentDefs>
		<childrenDefs>	 							<!-- list of pawnkinds to spawn from/ doesn't match implanter egg type(RJW_InsectEgg) =( , maybe needs self-fertilized eggs or something-->
			<li>Megascarab</li>
			<li>Megascarab</li>
			<li>Megascarab</li>
			<li>Megascarab</li>
			<li>Megascarab</li>
			<li>Spelopede</li>
			<li>Spelopede</li>
			<li>Spelopede</li>
			<li>Spelopede</li>
			<li>Megaspider</li>
		</childrenDefs>
		<UnFertEggDef>RJW_EggInsectUnfertilized</UnFertEggDef>
		<FertEggDef>RJW_EggInsectFertilized</FertEggDef>
	</rjw.HediffDef_InsectEgg>



	<!--vanilla mechanoids. Mechs implant things.-->
	<rjw.HediffDef_MechImplants Name="RJW_ImplantMech" Abstract="True">
		<hediffClass>rjw.Hediff_MechImplants</hediffClass>
		<defaultLabelColor>(0.8, 0.8, 0.35)</defaultLabelColor>
		<description>A small computer that enters a host through one of their orifices. Can analyze vital signs and location data, and relay that information back to mechanoid ai.</description>
		<initialSeverity>0.01</initialSeverity>
		<isBad>false</isBad>
		<tendable>false</tendable>
		<preventsPregnancy>true</preventsPregnancy>
		<pregnant>true</pregnant>
	</rjw.HediffDef_MechImplants>

	<rjw.HediffDef_MechImplants ParentName="RJW_ImplantMech">
		<defName>RJW_MechanoidImplant</defName>
		<parentDefs>
			<li>Mech_Lancer</li>
			<li>Mech_Scyther</li>
			<li>Mech_Centipede</li>
			<li>Mech_Pikeman</li>
			<li>Mech_Termite</li>
			<li>Mech_Tunneler</li>
			<li>Mech_Militor</li>
			<li>Mech_Lifter</li>
			<li>Mech_Constructoid</li>
			<li>Mech_Fabricor</li>
			<li>Mech_Agrihand</li>
			<li>Mech_Cleansweeper</li>
			<li>Mech_WarUrchin</li>
			<li>Mech_Paramedic</li>
			<li>Mech_Legionary</li>
			<li>Mech_Tesseron</li>
			<li>Mech_Scorcher</li>
			<li>Mech_Apocriton</li>
			<li>Mech_Centurion</li>
			<li>Mech_Warqueen</li>
			<li>Mech_Diabolus</li>
		</parentDefs>
		<childrenDefs>
			<li>Mech_Scyther</li>
		</childrenDefs>
	</rjw.HediffDef_MechImplants>



	<!--deprecated-->
	<!--rip-->
	<!--maybe re-add someday?-->
	<rjw.HediffDef_MechImplants ParentName="RJW_ImplantMech">
		<hediffClass>rjw.Hediff_MicroComputer</hediffClass>
		<defName>RJW_MicroComputer</defName>
		<tendable>false</tendable>
		<isBad>true</isBad>
		<label>MicroComputer</label>
		<description>A small computer that enters a host through one of their orifices. Can analyze vital signs and location data, and relay that information back to its implanter.</description>
		<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>
		<description>A organism that lives inside a host and feeds off its nutrients, giving the host severe discomfort.</description>
		<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>