<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- === bodyShape === -->
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[
		defName="ERN_Greyfox" or
		defName="ERN_Redpanda" or
		defName="ERN_Hedgehog" or
		defName="ERN_Mink" or
		defName="ERN_Armadillo"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>QuadrupedLow</bodyShape>
			</li>
		</value>
	</Operation>

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

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

	<!-- === Grey Fox === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ERN_Greyfox"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.24</MeleeDodgeChance>
			<MeleeCritChance>0.01</MeleeCritChance>
			<MeleeParryChance>0.02</MeleeParryChance>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ERN_Greyfox"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>2</power>
					<cooldownTime>0.91</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>15</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationBlunt>0.198</armorPenetrationBlunt>
					<armorPenetrationSharp>0.04</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>2</power>
					<cooldownTime>0.91</cooldownTime>
					<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>15</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationBlunt>0.198</armorPenetrationBlunt>
					<armorPenetrationSharp>0.04</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>6</power>
					<cooldownTime>1.49</cooldownTime>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>15</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationBlunt>1.440</armorPenetrationBlunt>
					<armorPenetrationSharp>0.1</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>1</power>
					<cooldownTime>1.26</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>0.250</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === Mink === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ERN_Mink"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.27</MeleeDodgeChance>
			<MeleeCritChance>0.15</MeleeCritChance>
			<MeleeParryChance>0.02</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ERN_Mink"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.67</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.036</armorPenetrationBlunt>
					<armorPenetrationSharp>0.01</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.67</cooldownTime>
					<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.036</armorPenetrationBlunt>
					<armorPenetrationSharp>0.01</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>4</power>
					<cooldownTime>0.88</cooldownTime>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.675</armorPenetrationBlunt>
					<armorPenetrationSharp>0.07</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>1</power>
					<cooldownTime>3.00</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>0.125</armorPenetrationBlunt>
					<armorPenetrationSharp>0</armorPenetrationSharp>
				</li>
			</tools>
		</value>	
	</Operation>

	<!-- === Hedgehog === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ERN_Hedgehog"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.17</MeleeDodgeChance>
			<MeleeCritChance>0.05</MeleeCritChance>
			<MeleeParryChance>0</MeleeParryChance>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ERN_Hedgehog"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.67</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.036</armorPenetrationBlunt>
					<armorPenetrationSharp>0.01</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.67</cooldownTime>
					<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.036</armorPenetrationBlunt>
					<armorPenetrationSharp>0.01</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>4</power>
					<cooldownTime>0.88</cooldownTime>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.675</armorPenetrationBlunt>
					<armorPenetrationSharp>0.07</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>1</power>
					<cooldownTime>3.00</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>0.125</armorPenetrationBlunt>
					<armorPenetrationSharp>0</armorPenetrationSharp>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === Garter Snake === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ERN_Gartersnake"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.20</MeleeDodgeChance>
			<MeleeCritChance>0.01</MeleeCritChance>
			<MeleeParryChance>0.01</MeleeParryChance>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ERN_Gartersnake"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>fangs</label>
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>4</power>
					<cooldownTime>2.4</cooldownTime>
					<armorPenetrationSharp>0.3</armorPenetrationSharp>
					<armorPenetrationBlunt>0.1</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Mouth</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>9</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>3</power>
					<cooldownTime>2</cooldownTime>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>0.1</armorPenetrationBlunt>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === ERN_Armadillo === -->
	<Operation Class="PatchOperationRemove">
		<xpath>
			Defs/ThingDef[defName="ERN_Armadillo"]/statBases/ArmorRating_Blunt |
			Defs/ThingDef[defName="ERN_Armadillo"]/statBases/ArmorRating_Sharp
		</xpath>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ERN_Armadillo"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.17</MeleeDodgeChance>
			<MeleeCritChance>0.05</MeleeCritChance>
			<MeleeParryChance>0.13</MeleeParryChance>
			<ArmorRating_Blunt>0.36</ArmorRating_Blunt>
			<ArmorRating_Sharp>0.36</ArmorRating_Sharp>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ERN_Armadillo"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>4</power>
					<cooldownTime>0.55</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.042</armorPenetrationBlunt>
					<armorPenetrationSharp>0.01</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>4</power>
					<cooldownTime>0.55</cooldownTime>
					<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.042</armorPenetrationBlunt>
					<armorPenetrationSharp>0.01</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>5</power>
					<cooldownTime>0.85</cooldownTime>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>8</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationBlunt>0.254</armorPenetrationBlunt>
					<armorPenetrationSharp>0.03</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>2</power>
					<cooldownTime>0.55</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>0.042</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === Red Panda === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ERN_Redpanda"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.16</MeleeDodgeChance>
			<MeleeCritChance>0.03</MeleeCritChance>
			<MeleeParryChance>0.02</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ERN_Redpanda"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>4</power>
					<cooldownTime>0.55</cooldownTime>
					<armorPenetrationBlunt>0.042</armorPenetrationBlunt>
					<armorPenetrationSharp>0.01</armorPenetrationSharp>
					<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>4</power>
					<cooldownTime>0.55</cooldownTime>
					<armorPenetrationBlunt>0.042</armorPenetrationBlunt>
					<armorPenetrationSharp>0.01</armorPenetrationSharp>
					<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>5</power>
					<cooldownTime>0.85</cooldownTime>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>8</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationBlunt>0.254</armorPenetrationBlunt>
					<armorPenetrationSharp>0.03</armorPenetrationSharp>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>2</power>
					<cooldownTime>0.55</cooldownTime>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>0.042</armorPenetrationBlunt>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === Ptarmigan === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ERN_ptarmigan"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.22</MeleeDodgeChance>
			<MeleeCritChance>0.05</MeleeCritChance>
			<MeleeParryChance>0</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ERN_ptarmigan"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1.85</cooldownTime>
					<armorPenetrationBlunt>0.096</armorPenetrationBlunt>
					<armorPenetrationSharp>0.01</armorPenetrationSharp>
					<linkedBodyPartsGroup>Beak</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>1</power>
					<cooldownTime>1.65</cooldownTime>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>0.480</armorPenetrationBlunt>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>
</Patch>