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

	<!-- ========== Elephant ========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Elephant"]/statBases/MoveSpeed</xpath>
		<value>
			<MoveSpeed>5</MoveSpeed>
			<MeleeDodgeChance>0.08</MeleeDodgeChance>
			<MeleeCritChance>0.79</MeleeCritChance>
			<MeleeParryChance>0.51</MeleeParryChance>
			<ArmorRating_Blunt>0.35</ArmorRating_Blunt>
			<ArmorRating_Sharp>0.15</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Elephant"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>tusk</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>67</power>
					<cooldownTime>3.37</cooldownTime>
					<linkedBodyPartsGroup>TuskAttackTool</linkedBodyPartsGroup>
					<armorPenetrationBlunt>40.226</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>left foot</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>33</power>
					<cooldownTime>2.37</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>25.960</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right foot</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>33</power>
					<cooldownTime>2.37</cooldownTime>
					<linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>25.960</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>55</power>
					<cooldownTime>3.69</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>36</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="Elephant"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Quadruped</bodyShape>
				<canParry>true</canParry>
				<maxParry>1</maxParry>
			</li>
		</value>
	</Operation>

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

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

	<!-- ========== Megasloth ========== -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Megasloth"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.09</MeleeDodgeChance>
			<MeleeCritChance>0.67</MeleeCritChance>
			<MeleeParryChance>0.48</MeleeParryChance>
			<ArmorRating_Blunt>0.1125</ArmorRating_Blunt>
			<ArmorRating_Sharp>0.075</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Megasloth"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>56</power>
					<cooldownTime>2.34</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
					<armorPenetrationSharp>1.25</armorPenetrationSharp>
					<armorPenetrationBlunt>10</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>56</power>
					<cooldownTime>2.34</cooldownTime>
					<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
					<armorPenetrationSharp>1.25</armorPenetrationSharp>
					<armorPenetrationBlunt>10</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>15</power>
					<cooldownTime>1.5</cooldownTime>
					<chanceFactor>0.7</chanceFactor>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationSharp>0.08</armorPenetrationSharp>
					<armorPenetrationBlunt>2.0</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>24</power>
					<cooldownTime>3.07</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>16</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

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

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

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

	<!-- ========== Thrumbo ========== -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Thrumbo"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.1</MeleeDodgeChance>
			<MeleeCritChance>0.82</MeleeCritChance>
			<MeleeParryChance>0.48</MeleeParryChance>
			<Flammability>0.6</Flammability>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Thrumbo"]/statBases/ArmorRating_Heat</xpath>
		<value>
			<ArmorRating_Heat>0.6</ArmorRating_Heat>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Thrumbo"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>horn</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>46</power>
					<cooldownTime>2.52</cooldownTime>
					<linkedBodyPartsGroup>HornAttackTool</linkedBodyPartsGroup>
					<armorPenetrationSharp>3</armorPenetrationSharp>
					<armorPenetrationBlunt>16</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>horn</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>41</power>
					<cooldownTime>2.52</cooldownTime>
					<chanceFactor>0.65</chanceFactor>
					<linkedBodyPartsGroup>HornAttackTool_2</linkedBodyPartsGroup>
					<armorPenetrationSharp>10</armorPenetrationSharp>
					<armorPenetrationBlunt>8</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>left foot</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>22</power>
					<cooldownTime>2.13</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>14.640</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right foot</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>22</power>
					<cooldownTime>2.13</cooldownTime>
					<linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>14.640</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>19</power>
					<cooldownTime>1.62</cooldownTime>
					<chanceFactor>0.7</chanceFactor>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationSharp>0.09</armorPenetrationSharp>
					<armorPenetrationBlunt>2.016</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>11</power>
					<cooldownTime>2.52</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>6</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

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

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

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

</Patch>