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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="VFEI2_Ironclad"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<canParry>true</canParry>
				<maxParry>3</maxParry>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VFEI2_Ironclad"]/statBases/MoveSpeed</xpath>
		<value>
			<MoveSpeed>2.0</MoveSpeed>
			<PainShockThreshold>0.95</PainShockThreshold>
			<MeleeDodgeChance>0.03</MeleeDodgeChance>
			<MeleeCritChance>0.26</MeleeCritChance>
			<MeleeParryChance>0.38</MeleeParryChance>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VFEI2_Ironclad"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>head claw</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>36</power>
					<cooldownTime>1.33</cooldownTime>
					<linkedBodyPartsGroup>HeadClaw</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>14</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationSharp>50</armorPenetrationSharp>
					<armorPenetrationBlunt>25</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head claw</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>62</power>
					<cooldownTime>2.48</cooldownTime>
					<linkedBodyPartsGroup>HeadClaw</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>14</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationSharp>2.5</armorPenetrationSharp>
					<armorPenetrationBlunt>10</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>60</power>
					<cooldownTime>1.33</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>27</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="VFEI2_Ironclad"]/comps/li[@Class="VEF.AnimalBehaviours.CompProperties_HediffAfterHealthLoss"]</xpath>
	</Operation>

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

</Patch>