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

	<!-- ===== Body Type ===== -->
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="RG_WoollyMammoth" or defName="RG_WoollyRhinoceros" or defName="RG_WoollyStegosaurus" or defName="RG_Synthetion" or defName="RG_SabertoothTiger"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Quadruped</bodyShape>
			</li>
		</value>
	</Operation>

	<!-- === Wooly Mammoth === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RG_WoollyMammoth"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.15</MeleeDodgeChance>
			<MeleeCritChance>0.90</MeleeCritChance>
			<MeleeParryChance>0.33</MeleeParryChance>
			<ArmorRating_Blunt>5</ArmorRating_Blunt>
			<ArmorRating_Sharp>0.22</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RG_WoollyMammoth"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>tusk</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>68</power>
					<cooldownTime>3.37</cooldownTime>
					<linkedBodyPartsGroup>TuskAttackTool</linkedBodyPartsGroup>
					<armorPenetrationBlunt>46.226</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>left foot</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>36</power>
					<cooldownTime>2.47</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>28.96</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right foot</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>36</power>
					<cooldownTime>2.47</cooldownTime>
					<linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>28.960</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>56</power>
					<cooldownTime>3.69</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>40</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="RG_WoollyMammoth"]/combatPower</xpath>
		<value>
			<combatPower>280</combatPower>
		</value>
	</Operation>

	<!-- === Wooly Rhino === -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RG_WoollyRhinoceros"]/statBases/MoveSpeed</xpath>
		<value>
			<MoveSpeed>5.1</MoveSpeed>
			<MeleeDodgeChance>0.1</MeleeDodgeChance>
			<MeleeCritChance>0.62</MeleeCritChance>
			<MeleeParryChance>0.3</MeleeParryChance>
			<ArmorRating_Blunt>3</ArmorRating_Blunt>
			<ArmorRating_Sharp>0.4</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RG_WoollyRhinoceros"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>horn</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>28</power>
					<cooldownTime>2.37</cooldownTime>
					<linkedBodyPartsGroup>HornAttackTool</linkedBodyPartsGroup>
					<armorPenetrationBlunt>21</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>horn</label>
					<capacities>
						<li>Scratch</li>
						<li>Poke</li>
					</capacities>
					<power>28</power>
					<cooldownTime>2.37</cooldownTime>
					<linkedBodyPartsGroup>HornAttackTool</linkedBodyPartsGroup>
					<armorPenetrationSharp>2</armorPenetrationSharp>
					<armorPenetrationBlunt>21</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>10</power>
					<cooldownTime>2</cooldownTime>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationBlunt>2</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>24</power>
					<cooldownTime>2.7</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationBlunt>24</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="RG_WoollyRhinoceros"]/combatPower</xpath>
		<value>
			<combatPower>240</combatPower>
		</value>
	</Operation>

	<!-- === Woolly Stegosaurus === -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RG_WoollyStegosaurus"]/statBases/MoveSpeed</xpath>
		<value>
			<MoveSpeed>3</MoveSpeed>
			<MeleeDodgeChance>0.03</MeleeDodgeChance>
			<MeleeCritChance>0.22</MeleeCritChance>
			<MeleeParryChance>0.57</MeleeParryChance>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RG_WoollyStegosaurus"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>14</power>
					<cooldownTime>2.5</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.5</armorPenetrationBlunt>
					<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
					<chanceFactor>0.7</chanceFactor>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>12</power>
					<cooldownTime>2</cooldownTime>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.700</armorPenetrationBlunt>
					<chanceFactor>0.5</chanceFactor>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>left foot</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.2</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>2.25</armorPenetrationBlunt>
					<chanceFactor>0.2</chanceFactor>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right foot</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.2</cooldownTime>
					<linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>2.255</armorPenetrationBlunt>
					<chanceFactor>0.2</chanceFactor>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>tail spikes</label>
					<capacities>
						<li>Scratch</li>
						<li>Stab</li>
						<li>Blunt</li>
					</capacities>
					<power>20</power>
					<cooldownTime>2.8</cooldownTime>
					<linkedBodyPartsGroup>RG_TailAttackTool</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>5</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationBlunt>4.235</armorPenetrationBlunt>
					<chanceFactor>1.2</chanceFactor>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="RG_WoollyStegosaurus"]/combatPower</xpath>
		<value>
			<combatPower>240</combatPower>
		</value>
	</Operation>

	<!-- === Synthetion === -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RG_Synthetion"]/statBases/MoveSpeed</xpath>
		<value>
			<MoveSpeed>6.8</MoveSpeed>
			<MeleeDodgeChance>0.15</MeleeDodgeChance>
			<MeleeCritChance>0.1</MeleeCritChance>
			<MeleeParryChance>0.07</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RG_Synthetion"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left hoof</label>
					<capacities>
						<li>Blunt</li>
						<li>Poke</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.2</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right hoof</label>
					<capacities>
						<li>Blunt</li>
						<li>Poke</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.2</cooldownTime>
					<linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>horn</label>
					<capacities>
						<li>Scratch</li>
						<li>Blunt</li>
						<li>Poke</li>
					</capacities>
					<power>8</power>
					<cooldownTime>2</cooldownTime>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1</armorPenetrationBlunt>
					<armorPenetrationSharp>0.27</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>4</power>
					<cooldownTime>2</cooldownTime>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.700</armorPenetrationBlunt>
					<chanceFactor>0.5</chanceFactor>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>7</power>
					<cooldownTime>2.0</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1.5</armorPenetrationBlunt>
					<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="RG_Synthetion"]/combatPower</xpath>
		<value>
			<combatPower>50</combatPower>
		</value>
	</Operation>

	<!-- === Smilodon === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RG_SabertoothTiger"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.19</MeleeDodgeChance>
			<MeleeCritChance>0.08</MeleeCritChance>
			<MeleeParryChance>0.07</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RG_SabertoothTiger"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>10</power>
					<cooldownTime>0.9</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>20</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationSharp>1.850</armorPenetrationSharp>
					<armorPenetrationBlunt>0.6</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>10</power>
					<cooldownTime>0.9</cooldownTime>
					<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>20</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationSharp>1.850</armorPenetrationSharp>
					<armorPenetrationBlunt>0.6</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>20</power>
					<cooldownTime>1.35</cooldownTime>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>20</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<chanceFactor>0.7</chanceFactor>
					<armorPenetrationSharp>1.3</armorPenetrationSharp>
					<armorPenetrationBlunt>7</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>2</power>
					<cooldownTime>0.97</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>0.423</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

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

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

</Patch>