<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Alpha Animals</li>
		</mods>

		<match Class="PatchOperationSequence">
			<operations>

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

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="GR_BearBug"]/statBases</xpath>
					<value>
						<MeleeDodgeChance>0.09</MeleeDodgeChance>
						<MeleeCritChance>0.4</MeleeCritChance>
						<MeleeParryChance>0.2</MeleeParryChance>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_BearBug"]/statBases/ArmorRating_Blunt</xpath>
					<value>
						<ArmorRating_Blunt>0.5</ArmorRating_Blunt>
					</value>
				</li>
				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_BearBug"]/statBases/ArmorRating_Sharp</xpath>
					<value>
						<ArmorRating_Sharp>0.4</ArmorRating_Sharp>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_BearBug"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>mandibles</label>
								<capacities>
									<li>AA_ParalysingBite</li>
								</capacities>
								<power>28</power>
								<cooldownTime>1.85</cooldownTime>
								<linkedBodyPartsGroup>Mouth</linkedBodyPartsGroup>
								<armorPenetrationSharp>1</armorPenetrationSharp>
								<armorPenetrationBlunt>4</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>10</power>
								<cooldownTime>1.65</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
								<armorPenetrationBlunt>6</armorPenetrationBlunt>
								<chanceFactor>0.1</chanceFactor>
							</li>
						</tools>
					</value>
				</li>

				<!-- Boomspider -->
				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="GR_Boomalisk"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>QuadrupedLow</bodyShape>
						</li>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="GR_Boomalisk"]/statBases</xpath>
					<value>
						<AimingAccuracy>0.65</AimingAccuracy>
						<ShootingAccuracyPawn>0.65</ShootingAccuracyPawn>
						<MeleeDodgeChance>0.13</MeleeDodgeChance>
						<MeleeCritChance>0.18</MeleeCritChance>
						<MeleeParryChance>0.2</MeleeParryChance>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_Boomalisk"]/statBases/ArmorRating_Blunt</xpath>
					<value>
						<ArmorRating_Blunt>1</ArmorRating_Blunt>
					</value>
				</li>
				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_Boomalisk"]/statBases/ArmorRating_Sharp</xpath>
					<value>
						<ArmorRating_Sharp>1</ArmorRating_Sharp>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_Boomalisk"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>left first leg</label>
								<capacities>
									<li>Scratch</li>
								</capacities>
								<power>14</power>
								<cooldownTime>1.25</cooldownTime>
								<linkedBodyPartsGroup>LegAttackTool</linkedBodyPartsGroup>
								<armorPenetrationSharp>0.4</armorPenetrationSharp>
								<armorPenetrationBlunt>3</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>right first leg</label>
								<capacities>
									<li>Scratch</li>
								</capacities>
								<power>14</power>
								<cooldownTime>1.25</cooldownTime>
								<linkedBodyPartsGroup>LegAttackTool</linkedBodyPartsGroup>
								<armorPenetrationSharp>0.4</armorPenetrationSharp>
								<armorPenetrationBlunt>3</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<capacities>
									<li>AA_ToxicSting</li>
								</capacities>
								<power>23</power>
								<cooldownTime>1.65</cooldownTime>
								<linkedBodyPartsGroup>Mouth</linkedBodyPartsGroup>
								<surpriseAttack>
									<extraMeleeDamages>
										<li>
											<def>Stun</def>
											<amount>20</amount>
										</li>
									</extraMeleeDamages>
								</surpriseAttack>
								<armorPenetrationSharp>3</armorPenetrationSharp>
								<armorPenetrationBlunt>6</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>9</power>
								<cooldownTime>1.65</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<armorPenetrationBlunt>1</armorPenetrationBlunt>
								<chanceFactor>0.2</chanceFactor>
							</li>
						</tools>
					</value>
				</li>

				<!-- Chicken Cactus -->
				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="GR_Needlechicken"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>Birdlike</bodyShape>
						</li>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="GR_Needlechicken"]/statBases</xpath>
					<value>
						<AimingAccuracy>0.3</AimingAccuracy>
						<ShootingAccuracyPawn>0.3</ShootingAccuracyPawn>
						<MeleeDodgeChance>0.09</MeleeDodgeChance>
						<MeleeCritChance>0.03</MeleeCritChance>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_Needlechicken"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>stings</label>
								<capacities>
									<li>AA_ToxicSting</li>
								</capacities>
								<power>7</power>
								<cooldownTime>1.2</cooldownTime>
								<armorPenetrationSharp>0.35</armorPenetrationSharp>
								<armorPenetrationBlunt>0.5</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>1</power>
								<cooldownTime>1</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<armorPenetrationBlunt>0.2</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>Bite</label>
								<capacities>
									<li>Bite</li>
								</capacities>
								<power>3</power>
								<cooldownTime>1</cooldownTime>
								<linkedBodyPartsGroup>AA_Mouth</linkedBodyPartsGroup>
								<armorPenetrationSharp>0.12</armorPenetrationSharp>
								<armorPenetrationBlunt>0.25</armorPenetrationBlunt>
							</li>
						</tools>
					</value>
				</li>

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="GR_Beetlefleet"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>Birdlike</bodyShape>
						</li>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="GR_Beetlefleet"]/statBases</xpath>
					<value>
						<MeleeDodgeChance>0.12</MeleeDodgeChance>
						<MeleeCritChance>0.24</MeleeCritChance>
						<MeleeParryChance>0.2</MeleeParryChance>
						<ArmorRating_Sharp>0.8</ArmorRating_Sharp>
						<ArmorRating_Blunt>1.2</ArmorRating_Blunt>
					</value>
				</li>
				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_Beetlefleet"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<capacities>
									<li>Bite</li>
								</capacities>
								<power>21</power>
								<cooldownTime>2.56</cooldownTime>
								<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
								<armorPenetrationSharp>1</armorPenetrationSharp>
								<armorPenetrationBlunt>2.5</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>tentacles</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>16</power>
								<cooldownTime>1.35</cooldownTime>
								<linkedBodyPartsGroup>Arms</linkedBodyPartsGroup>
								<armorPenetrationBlunt>6</armorPenetrationBlunt>
							</li>
						</tools>
					</value>
				</li>

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

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="GR_Groundffalo"]/statBases</xpath>
					<value>
						<MeleeDodgeChance>0.08</MeleeDodgeChance>
						<MeleeCritChance>0.4</MeleeCritChance>
						<MeleeParryChance>0.4</MeleeParryChance>
					</value>
				</li>
				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_Groundffalo"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>left claw</label>
								<capacities>
									<li>Scratch</li>
								</capacities>
								<power>22</power>
								<cooldownTime>2.45</cooldownTime>
								<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
								<surpriseAttack>
									<extraMeleeDamages>
										<li>
											<def>Stun</def>
											<amount>21</amount>
										</li>
									</extraMeleeDamages>
								</surpriseAttack>
								<armorPenetrationSharp>8</armorPenetrationSharp>
								<armorPenetrationBlunt>15</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>right claw</label>
								<capacities>
									<li>Scratch</li>
								</capacities>
								<power>22</power>
								<cooldownTime>2.45</cooldownTime>
								<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
								<surpriseAttack>
									<extraMeleeDamages>
										<li>
											<def>Stun</def>
											<amount>21</amount>
										</li>
									</extraMeleeDamages>
								</surpriseAttack>
								<armorPenetrationSharp>8</armorPenetrationSharp>
								<armorPenetrationBlunt>15</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>horn</label>
								<capacities>
									<li>Scratch</li>
									<li>Stab</li>
								</capacities>
								<power>25</power>
								<cooldownTime>2.85</cooldownTime>
								<linkedBodyPartsGroup>HornAttackTool</linkedBodyPartsGroup>
								<armorPenetrationSharp>2.5</armorPenetrationSharp>
								<armorPenetrationBlunt>10</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>20</power>
								<cooldownTime>3.17</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<armorPenetrationBlunt>10</armorPenetrationBlunt>
							</li>
						</tools>
					</value>
				</li>

				<!-- Birdlizard -->
				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="GR_MeadowLizard"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>Birdlike</bodyShape>
						</li>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="GR_MeadowLizard"]/statBases</xpath>
					<value>
						<MeleeDodgeChance>0.5</MeleeDodgeChance>
						<MeleeCritChance>0.2</MeleeCritChance>
						<MeleeParryChance>0.1</MeleeParryChance>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_MeadowLizard"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>claws</label>
								<capacities>
									<li>Scratch</li>
								</capacities>
								<power>16</power>
								<cooldownTime>1.33</cooldownTime>
								<linkedBodyPartsGroup>Feet</linkedBodyPartsGroup>
								<surpriseAttack>
									<extraMeleeDamages>
										<li>
											<def>Stun</def>
											<amount>15</amount>
										</li>
									</extraMeleeDamages>
								</surpriseAttack>
								<armorPenetrationSharp>0.33</armorPenetrationSharp>
								<armorPenetrationBlunt>0.75</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<capacities>
									<li>AA_ToxicSting</li>
								</capacities>
								<power>21</power>
								<cooldownTime>1.65</cooldownTime>
								<linkedBodyPartsGroup>Beak</linkedBodyPartsGroup>
								<surpriseAttack>
									<extraMeleeDamages>
										<li>
											<def>Stun</def>
											<amount>13</amount>
										</li>
									</extraMeleeDamages>
								</surpriseAttack>
								<armorPenetrationSharp>1.5</armorPenetrationSharp>
								<armorPenetrationBlunt>4</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>7</power>
								<cooldownTime>1.78</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<armorPenetrationBlunt>1</armorPenetrationBlunt>
								<chanceFactor>0.2</chanceFactor>
							</li>
						</tools>
					</value>
				</li>

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="GR_AnimusHare"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>QuadrupedLow</bodyShape>
						</li>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="GR_AnimusHare"]/statBases</xpath>
					<value>
						<MeleeDodgeChance>0.48</MeleeDodgeChance>
						<MeleeCritChance>0.1</MeleeCritChance>
					</value>
				</li>
				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_AnimusHare"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>2</power>
								<cooldownTime>1.65</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<armorPenetrationBlunt>0.2</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<capacities>
									<li>Bite</li>
								</capacities>
								<power>4</power>
								<cooldownTime>1.65</cooldownTime>
								<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
								<armorPenetrationBlunt>0.25</armorPenetrationBlunt>
							</li>
						</tools>
					</value>
				</li>

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="GR_Nighthrumbo"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>QuadrupedLow</bodyShape>
						</li>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="GR_Nighthrumbo"]/statBases</xpath>
					<value>
						<AimingAccuracy>0.9</AimingAccuracy>
						<ShootingAccuracyPawn>0.9</ShootingAccuracyPawn>
						<MeleeDodgeChance>0.25</MeleeDodgeChance>
						<MeleeCritChance>0.7</MeleeCritChance>
						<MeleeParryChance>0.45</MeleeParryChance>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_Nighthrumbo"]/statBases/ArmorRating_Sharp</xpath>
					<value>
						<ArmorRating_Sharp>6</ArmorRating_Sharp>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_Nighthrumbo"]/statBases/ArmorRating_Blunt</xpath>
					<value>
						<ArmorRating_Blunt>10</ArmorRating_Blunt>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_Nighthrumbo"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>horn</label>
								<capacities>
									<li>Cut</li>
									<li>Stab</li>
								</capacities>
								<power>46</power>
								<cooldownTime>2.0</cooldownTime>
								<linkedBodyPartsGroup>HornAttackTool</linkedBodyPartsGroup>
								<armorPenetrationSharp>8</armorPenetrationSharp>
								<armorPenetrationBlunt>10</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<capacities>
									<li>ToxicBite</li>
								</capacities>
								<power>36</power>
								<cooldownTime>1.75</cooldownTime>
								<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
								<surpriseAttack>
									<extraMeleeDamages>
										<li>
											<def>Stun</def>
											<amount>25</amount>
										</li>
									</extraMeleeDamages>
								</surpriseAttack>
								<armorPenetrationSharp>3</armorPenetrationSharp>
								<armorPenetrationBlunt>9</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>18</power>
								<cooldownTime>2</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<armorPenetrationBlunt>12</armorPenetrationBlunt>
								<chanceFactor>0.2</chanceFactor>
							</li>
						</tools>
					</value>
				</li>

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

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="GR_WolfShrimp"]/statBases</xpath>
					<value>
						<MeleeDodgeChance>1</MeleeDodgeChance>
						<MeleeCritChance>0.21</MeleeCritChance>
						<MeleeParryChance>0.33</MeleeParryChance>
						<ArmorRating_Blunt>2</ArmorRating_Blunt>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_WolfShrimp"]/statBases/ArmorRating_Sharp</xpath>
					<value>
						<ArmorRating_Sharp>3</ArmorRating_Sharp>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="GR_WolfShrimp"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>left claw</label>
								<capacities>
									<li>AA_Pierce</li>
								</capacities>
								<power>26</power>
								<cooldownTime>1.12</cooldownTime>
								<linkedBodyPartsGroup>AA_BladeAttackTool</linkedBodyPartsGroup>
								<surpriseAttack>
									<extraMeleeDamages>
										<li>
											<def>Stun</def>
											<amount>20</amount>
										</li>
									</extraMeleeDamages>
								</surpriseAttack>
								<armorPenetrationSharp>7</armorPenetrationSharp>
								<armorPenetrationBlunt>7</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>right claw</label>
								<capacities>
									<li>AA_Pierce</li>
								</capacities>
								<power>26</power>
								<cooldownTime>1.12</cooldownTime>
								<linkedBodyPartsGroup>AA_BladeAttackTool</linkedBodyPartsGroup>
								<surpriseAttack>
									<extraMeleeDamages>
										<li>
											<def>Stun</def>
											<amount>20</amount>
										</li>
									</extraMeleeDamages>
								</surpriseAttack>
								<armorPenetrationSharp>7</armorPenetrationSharp>
								<armorPenetrationBlunt>7</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<capacities>
									<li>Bite</li>
								</capacities>
								<power>24</power>
								<cooldownTime>1.65</cooldownTime>
								<linkedBodyPartsGroup>AA_Mouth</linkedBodyPartsGroup>
								<surpriseAttack>
									<extraMeleeDamages>
										<li>
											<def>Stun</def>
											<amount>20</amount>
										</li>
									</extraMeleeDamages>
								</surpriseAttack>
								<armorPenetrationSharp>2.5</armorPenetrationSharp>
								<armorPenetrationBlunt>7</armorPenetrationBlunt>
							</li>
						</tools>
					</value>
				</li>

			</operations>
		</match>
	</Operation>
</Patch>