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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="WMH_Leshy"]/statBases</xpath>
		<value>
			<AimingAccuracy>1.0</AimingAccuracy>
			<ShootingAccuracyPawn>1</ShootingAccuracyPawn>
			<MeleeDodgeChance>0.25</MeleeDodgeChance>
			<MeleeCritChance>0.22</MeleeCritChance>
			<MeleeParryChance>0.25</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="WMH_Leshy"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>Horn</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>12</power>
					<cooldownTime>0.85</cooldownTime>
					<linkedBodyPartsGroup>HornAttackTool</linkedBodyPartsGroup>
					<armorPenetrationSharp>3</armorPenetrationSharp>
					<armorPenetrationBlunt>5</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>Horn</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>7</power>
					<cooldownTime>0.85</cooldownTime>
					<linkedBodyPartsGroup>HornAttackTool</linkedBodyPartsGroup>
					<armorPenetrationBlunt>5</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>Left Claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>12</power>
					<cooldownTime>0.85</cooldownTime>
					<armorPenetrationSharp>1</armorPenetrationSharp>
					<armorPenetrationBlunt>4</armorPenetrationBlunt>
					<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>Right Claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>11</power>
					<cooldownTime>1</cooldownTime>
					<armorPenetrationSharp>1</armorPenetrationSharp>
					<armorPenetrationBlunt>4</armorPenetrationBlunt>
					<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>13</power>
					<cooldownTime>2.67</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationBlunt>6.55</armorPenetrationBlunt>
					<chanceFactor>0.2</chanceFactor>
				</li>
			</tools>
		</value>
	</Operation>

</Patch>