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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="BMT_Rimebeak"]/statBases</xpath>
		<value>
			<ArmorRating_Blunt>0.15</ArmorRating_Blunt>
			<ArmorRating_Sharp>0.1</ArmorRating_Sharp>
			<MeleeDodgeChance>0.23</MeleeDodgeChance>
			<MeleeCritChance>0.20</MeleeCritChance>
			<MeleeParryChance>0.11</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="BMT_Rimebeak"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>11</power>
					<cooldownTime>1.19</cooldownTime>
					<linkedBodyPartsGroup>Feet</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>20</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationBlunt>2.250</armorPenetrationBlunt>
					<armorPenetrationSharp>0.75</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>11</power>
					<cooldownTime>1.19</cooldownTime>
					<linkedBodyPartsGroup>Feet</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>20</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationBlunt>2.250</armorPenetrationBlunt>
					<armorPenetrationSharp>0.75</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>beak</label>
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>24</power>
					<cooldownTime>1.46</cooldownTime>
					<linkedBodyPartsGroup>Beak</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>20</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<chanceFactor>2</chanceFactor>
					<armorPenetrationSharp>1.6</armorPenetrationSharp>
					<armorPenetrationBlunt>8.863</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>4</power>
					<cooldownTime>3.2</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>1.225</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

</Patch>