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

	<!-- ========== Deer ========== -->

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Deer"]/statBases/MoveSpeed</xpath>
		<value>
			<MoveSpeed>7</MoveSpeed>
			<MeleeDodgeChance>0.26</MeleeDodgeChance>
			<MeleeCritChance>0.14</MeleeCritChance>
			<MeleeParryChance>0.08</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Deer"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left hoof</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>left hoof</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftLeg_2</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right hoof</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right hoof</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>FrontRightLeg_2</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>3</power>
					<cooldownTime>1.66</cooldownTime>
					<chanceFactor>0.7</chanceFactor>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.750</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.97</cooldownTime>
					<restrictedGender>Female</restrictedGender>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>1.5</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>antlers</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>8</power>
					<cooldownTime>1.66</cooldownTime>
					<restrictedGender>Male</restrictedGender>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationSharp>0.03</armorPenetrationSharp>
					<armorPenetrationBlunt>0.750</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- ========== Ibex ========== -->

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Ibex"]/statBases/MoveSpeed</xpath>
		<value>
			<MoveSpeed>4.4</MoveSpeed>
			<MeleeDodgeChance>0.15</MeleeDodgeChance>
			<MeleeCritChance>0.08</MeleeCritChance>
			<MeleeParryChance>0.08</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Ibex"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left hoof</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>left hoof</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftLeg_2</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right hoof</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right hoof</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>FrontRightLeg_2</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>6</power>
					<cooldownTime>1.5</cooldownTime>
					<chanceFactor>0.7</chanceFactor>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.5</armorPenetrationBlunt>
					<armorPenetrationSharp>0.01</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>10</power>
					<cooldownTime>2.13</cooldownTime>
					<restrictedGender>Female</restrictedGender>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>3.630</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>antlers</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>10</power>
					<cooldownTime>2.13</cooldownTime>
					<restrictedGender>Male</restrictedGender>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationBlunt>3.630</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- ========== Elk ========== -->

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Elk"]/statBases/MoveSpeed</xpath>
		<value>
			<MoveSpeed>7.2</MoveSpeed>
			<MeleeDodgeChance>0.21</MeleeDodgeChance>
			<MeleeCritChance>0.33</MeleeCritChance>
			<MeleeParryChance>0.18</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Elk"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left hoof</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>7</power>
					<cooldownTime>1.19</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>2.250</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>left hoof</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>7</power>
					<cooldownTime>1.19</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftLeg_2</linkedBodyPartsGroup>
					<armorPenetrationBlunt>2.250</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right hoof</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>7</power>
					<cooldownTime>1.19</cooldownTime>
					<linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>2.250</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right hoof</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>7</power>
					<cooldownTime>1.19</cooldownTime>
					<linkedBodyPartsGroup>FrontRightLeg_2</linkedBodyPartsGroup>
					<armorPenetrationBlunt>2.250</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>3</power>
					<cooldownTime>1.66</cooldownTime>
					<chanceFactor>0.7</chanceFactor>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.750</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.97</cooldownTime>
					<restrictedGender>Female</restrictedGender>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>4</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>antlers</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>13</power>
					<cooldownTime>1.66</cooldownTime>
					<restrictedGender>Male</restrictedGender>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationSharp>0.24</armorPenetrationSharp>
					<armorPenetrationBlunt>4</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- ========== Caribou ========== -->

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Caribou"]/statBases/MoveSpeed</xpath>
		<value>
			<MoveSpeed>7.2</MoveSpeed>
			<MeleeDodgeChance>0.23</MeleeDodgeChance>
			<MeleeCritChance>0.19</MeleeCritChance>
			<MeleeParryChance>0.08</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Caribou"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left hoof</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>left hoof</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftLeg_2</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right hoof</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right hoof</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1</cooldownTime>
					<linkedBodyPartsGroup>FrontRightLeg_2</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>3</power>
					<cooldownTime>1.66</cooldownTime>
					<chanceFactor>0.7</chanceFactor>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.750</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.97</cooldownTime>
					<restrictedGender>Female</restrictedGender>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>2</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>antlers</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>8</power>
					<cooldownTime>1.66</cooldownTime>
					<restrictedGender>Male</restrictedGender>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationSharp>0.16</armorPenetrationSharp>
					<armorPenetrationBlunt>2.5</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- ========== WildBoar ========== -->

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="WildBoar"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.14</MeleeDodgeChance>
			<MeleeCritChance>0.09</MeleeCritChance>
			<MeleeParryChance>0.07</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="WildBoar"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>tusk</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>11</power>
					<cooldownTime>1.89</cooldownTime>
					<linkedBodyPartsGroup>TuskAttackTool</linkedBodyPartsGroup>
					<armorPenetrationSharp>0.1</armorPenetrationSharp>
					<armorPenetrationBlunt>1.5</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>tusk</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>7</power>
					<cooldownTime>1.41</cooldownTime>
					<chanceFactor>0.65</chanceFactor>
					<linkedBodyPartsGroup>TuskAttackTool_2</linkedBodyPartsGroup>
					<armorPenetrationSharp>0.2</armorPenetrationSharp>
					<armorPenetrationBlunt>2.940</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>8</power>
					<cooldownTime>1.57</cooldownTime>
					<chanceFactor>0.6</chanceFactor>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationSharp>0.05</armorPenetrationSharp>
					<armorPenetrationBlunt>0.6</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>6</power>
					<cooldownTime>2.12</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>2</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- ========== Tortoise ========== -->

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="Tortoise"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.5</ArmorRating_Sharp>
						<parts>
							<li>Leg</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.5</ArmorRating_Blunt>
						<parts>
							<li>Leg</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="Tortoise"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>QuadrupedLow</bodyShape>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Tortoise"]/statBases/MoveSpeed</xpath>
		<value>
			<MoveSpeed>1.0</MoveSpeed>
			<MeleeDodgeChance>0.02</MeleeDodgeChance>
			<MeleeCritChance>0.01</MeleeCritChance>
			<MeleeParryChance>0.05</MeleeParryChance>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Tortoise"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>8</power>
					<cooldownTime>2.23</cooldownTime>
					<linkedBodyPartsGroup>TurtleBeakAttackTool</linkedBodyPartsGroup>
					<armorPenetrationSharp>0.02</armorPenetrationSharp>
					<armorPenetrationBlunt>0.640</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>1</power>
					<cooldownTime>1.39</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>0.096</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="Tortoise"]/comps</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="Tortoise"]</xpath>
			<value>
				<comps />
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Tortoise"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_ArmorDurability">
				<Durability>275</Durability>
				<Regenerates>true</Regenerates>
				<RegenInterval>600</RegenInterval>
				<RegenValue>5</RegenValue>
				<MinArmorPct>0.5</MinArmorPct>
			</li>
		</value>
	</Operation>

</Patch>