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

	<!-- ========== RBSFE_Muffalope ========== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RBSFE_Muffalope"]/statBases/MoveSpeed</xpath>
		<value>
			<MoveSpeed>5</MoveSpeed>
			<MeleeDodgeChance>0.36</MeleeDodgeChance>
			<MeleeCritChance>0.12</MeleeCritChance>
			<MeleeParryChance>0.15</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RBSFE_Muffalope"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>antlers</label>
					<capacities>
						<li>Scratch</li>
						<li>Stab</li>
					</capacities>
					<power>15</power>
					<cooldownTime>2</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationSharp>0.45</armorPenetrationSharp>
					<armorPenetrationBlunt>15.8</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>24</power>
					<cooldownTime>3.17</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationBlunt>10</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>left hoof</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>9</power>
					<cooldownTime>1.2</cooldownTime>
					<armorPenetrationBlunt>2.250</armorPenetrationBlunt>
					<linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>left hoof</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>1.2</cooldownTime>
					<armorPenetrationBlunt>2.250</armorPenetrationBlunt>
					<linkedBodyPartsGroup>FrontLeftLeg_2</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right hoof</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>9</power>
					<cooldownTime>1.2</cooldownTime>
					<armorPenetrationBlunt>2.250</armorPenetrationBlunt>
					<linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right hoof</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>1.2</cooldownTime>
					<armorPenetrationBlunt>2.250</armorPenetrationBlunt>
					<linkedBodyPartsGroup>FrontRightLeg_2</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>5</power>
					<cooldownTime>0.8</cooldownTime>
					<chanceFactor>0.5</chanceFactor>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.5</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

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

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

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

</Patch>