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

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Biotech</li>
		</mods>

		<match Class="PatchOperationSequence">
			<operations>

				<!-- ========== Hemolope ========== -->

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="RG_Hemolope"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>Quadruped</bodyShape>
						</li>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="RG_Hemolope"]/statBases</xpath>
					<value>
						<MeleeDodgeChance>0.05</MeleeDodgeChance>
						<MeleeCritChance>0.07</MeleeCritChance>
						<MeleeParryChance>0.16</MeleeParryChance>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="RG_Hemolope"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>14</power>
								<cooldownTime>2.0</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<armorPenetrationBlunt>5.0</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>left hoof</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>8</power>
								<cooldownTime>1.2</cooldownTime>
								<armorPenetrationBlunt>2.250</armorPenetrationBlunt>
								<linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>left hoof</label>
								<capacities>
									<li>Poke</li>
								</capacities>
								<power>8</power>
								<cooldownTime>1.2</cooldownTime>
								<armorPenetrationBlunt>2.250</armorPenetrationBlunt>
								<linkedBodyPartsGroup>FrontLeftLeg_2</linkedBodyPartsGroup>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>right hoof</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>8</power>
								<cooldownTime>1.2</cooldownTime>
								<armorPenetrationBlunt>2.250</armorPenetrationBlunt>
								<linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>right hoof</label>
								<capacities>
									<li>Poke</li>
								</capacities>
								<power>8</power>
								<cooldownTime>1.2</cooldownTime>
								<armorPenetrationBlunt>2.250</armorPenetrationBlunt>
								<linkedBodyPartsGroup>FrontRightLeg_2</linkedBodyPartsGroup>
							</li>
							<li Class="CombatExtended.ToolCE">
								<capacities>
									<li>Bite</li>
								</capacities>
								<power>5</power>
								<cooldownTime>0.8</cooldownTime>
								<chanceFactor>0.5</chanceFactor>
								<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
								<armorPenetrationBlunt>0.5</armorPenetrationBlunt>
							</li>
						</tools>
					</value>
				</li>

			</operations>
		</match>
	</Operation>

</Patch>