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

	<!-- ========== Base Mutant pawn ========== -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="Base_RHN4Mutant"]/statBases</xpath>
		<value>
			<SmokeSensitivity>-1</SmokeSensitivity>
		</value>
	</Operation>

	<!-- ========== Mother ========== -->

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="RH_DF_Mother"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Humanoid</bodyShape>
				<canParry>true</canParry>
				<maxParry>4</maxParry>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RH_DF_Mother"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.08</MeleeDodgeChance>
			<MeleeCritChance>0.8</MeleeCritChance>
			<MeleeParryChance>1.33</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF_Mother"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>23</power>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>30</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<cooldownTime>5</cooldownTime>
					<linkedBodyPartsGroup>RH_LeftClaw</linkedBodyPartsGroup>
					<armorPenetrationBlunt>25</armorPenetrationBlunt>
					<armorPenetrationSharp>5</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>27</power>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>30</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<cooldownTime>4.5</cooldownTime>
					<linkedBodyPartsGroup>RH_RightClaw</linkedBodyPartsGroup>
					<armorPenetrationBlunt>30</armorPenetrationBlunt>
					<armorPenetrationSharp>6</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>ToxicBite</li>
					</capacities>
					<power>40</power>
					<cooldownTime>14</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>15</armorPenetrationBlunt>
					<armorPenetrationSharp>2</armorPenetrationSharp>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF_Mother"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>8</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF_Mother"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>15</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="RH_DF_Mother"]/combatPower</xpath>
		<value>
			<combatPower>600</combatPower>
		</value>
	</Operation>

	<!-- ========== Titan ========== -->

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="RH_DF_Titan"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Humanoid</bodyShape>
				<canParry>true</canParry>
				<maxParry>5</maxParry>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RH_DF_Titan"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.18</MeleeDodgeChance>
			<MeleeCritChance>2.0</MeleeCritChance>
			<MeleeParryChance>1.4</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF_Titan"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>52</power>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>45</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<cooldownTime>4.2</cooldownTime>
					<linkedBodyPartsGroup>RH_N4LeftHand</linkedBodyPartsGroup>
					<armorPenetrationBlunt>25</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>57</power>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>45</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<cooldownTime>4</cooldownTime>
					<linkedBodyPartsGroup>RH_N4RightHand</linkedBodyPartsGroup>
					<armorPenetrationBlunt>27</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>60</power>
					<cooldownTime>15</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>15</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF_Titan"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>9</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF_Titan"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>15</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="RH_Titan"]/combatPower</xpath>
		<value>
			<combatPower>600</combatPower>
		</value>
	</Operation>

	<!-- ========== Wraith ========== -->

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="RH_DF_Wraith"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Humanoid</bodyShape>
				<canParry>true</canParry>
				<maxParry>4</maxParry>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RH_DF_Wraith"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.33</MeleeDodgeChance>
			<MeleeCritChance>2.0</MeleeCritChance>
			<MeleeParryChance>1.11</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF_Wraith"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>tentacle</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>48</power>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>85</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<cooldownTime>3.7</cooldownTime>
					<linkedBodyPartsGroup>RH_LeftTentacle</linkedBodyPartsGroup>
					<armorPenetrationBlunt>50</armorPenetrationBlunt>
					<armorPenetrationSharp>18</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>tentacle</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>52</power>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>85</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<cooldownTime>3.9</cooldownTime>
					<linkedBodyPartsGroup>RH_RightTentacle</linkedBodyPartsGroup>
					<armorPenetrationBlunt>50</armorPenetrationBlunt>
					<armorPenetrationSharp>20</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>ToxicBite</li>
					</capacities>
					<power>45</power>
					<cooldownTime>13</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>15</armorPenetrationBlunt>
					<armorPenetrationSharp>3</armorPenetrationSharp>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF_Wraith"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>7</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF_Wraith"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>13</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="RH_Wraith"]/combatPower</xpath>
		<value>
			<combatPower>540</combatPower>
		</value>
	</Operation>

	<!-- ========== Giant Spider ========== -->

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="RH_DF_GiantSpider"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Quadruped</bodyShape>
				<canParry>true</canParry>
				<maxParry>3</maxParry>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RH_DF_GiantSpider"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.36</MeleeDodgeChance>
			<MeleeCritChance>2.0</MeleeCritChance>
			<MeleeParryChance>1.4</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF_GiantSpider"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>23</power>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>20</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<cooldownTime>3.7</cooldownTime>
					<linkedBodyPartsGroup>RH_LeftClaw</linkedBodyPartsGroup>
					<armorPenetrationBlunt>25</armorPenetrationBlunt>
					<armorPenetrationSharp>5</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>27</power>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>20</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<cooldownTime>3.3</cooldownTime>
					<linkedBodyPartsGroup>RH_RightClaw</linkedBodyPartsGroup>
					<armorPenetrationBlunt>30</armorPenetrationBlunt>
					<armorPenetrationSharp>6</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>ToxicBite</li>
					</capacities>
					<power>40</power>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>50</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<cooldownTime>9.7</cooldownTime>
					<linkedBodyPartsGroup>RH_GSTeeth</linkedBodyPartsGroup>
					<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
					<chanceFactor>0.95</chanceFactor>
					<armorPenetrationBlunt>15</armorPenetrationBlunt>
					<armorPenetrationSharp>2</armorPenetrationSharp>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF_GiantSpider"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>7</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF_GiantSpider"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>13</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="RH_DFGiantSpider"]/combatPower</xpath>
		<value>
			<combatPower>600</combatPower>
		</value>
	</Operation>

	<!-- ========== Stalker ========== -->

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="RH_DF2_Stalker"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Humanoid</bodyShape>
				<canParry>true</canParry>
				<maxParry>4</maxParry>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RH_DF2_Stalker"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.08</MeleeDodgeChance>
			<MeleeCritChance>0.48</MeleeCritChance>
			<MeleeParryChance>0.37</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF2_Stalker"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>16</power>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>30</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<cooldownTime>4.9</cooldownTime>
					<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
					<armorPenetrationBlunt>15</armorPenetrationBlunt>
					<armorPenetrationSharp>3</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>18</power>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>30</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<cooldownTime>3.1</cooldownTime>
					<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>
					<armorPenetrationBlunt>17.5</armorPenetrationBlunt>
					<armorPenetrationSharp>3.5</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>ToxicBite</li>
					</capacities>
					<power>25</power>
					<cooldownTime>6.0</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>5</armorPenetrationBlunt>
					<armorPenetrationSharp>1</armorPenetrationSharp>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF2_Stalker"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>7.5</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RH_DF2_Stalker"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>15</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="RH_DF2_Stalker"]/combatPower</xpath>
		<value>
			<combatPower>600</combatPower>
		</value>
	</Operation>
</Patch>