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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[
			defName="TM_LesserEarth_ElementalR" or
			defName="TM_GreaterEarth_ElementalR" or
			defName="TM_Earth_ElementalR" or
			defName="TM_LesserFire_ElementalR" or
			defName="TM_GreaterFire_ElementalR" or
			defName="TM_Fire_ElementalR" or
			defName="TM_LesserWater_ElementalR" or
			defName="TM_GreaterWater_ElementalR" or
			defName="TM_Water_ElementalR" or
			defName="TM_LesserWind_ElementalR" or
			defName="TM_GreaterWind_ElementalR" or
			defName="TM_Wind_ElementalR"
			] </xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Humanoid</bodyShape>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[
			defName="TM_LesserEarth_ElementalR" or
			defName="TM_GreaterEarth_ElementalR" or
			defName="TM_Earth_ElementalR" or
			defName="TM_LesserFire_ElementalR" or
			defName="TM_GreaterFire_ElementalR" or
			defName="TM_Fire_ElementalR" or
			defName="TM_LesserWater_ElementalR" or
			defName="TM_GreaterWater_ElementalR" or
			defName="TM_Water_ElementalR" or
			defName="TM_LesserWind_ElementalR" or
			defName="TM_GreaterWind_ElementalR" or
			defName="TM_Wind_ElementalR"
			]/statBases </xpath>
		<value>
			<CarryWeight>50</CarryWeight>
			<CarryBulk>20</CarryBulk>
			<AimingAccuracy>1.0</AimingAccuracy>
			<ShootingAccuracyPawn>1</ShootingAccuracyPawn>
			<MeleeDodgeChance>0.19</MeleeDodgeChance>
			<MeleeCritChance>0.22</MeleeCritChance>
			<MeleeParryChance>0.09</MeleeParryChance>
			<MaxHitPoints>200</MaxHitPoints>
			<SmokeSensitivity>0</SmokeSensitivity>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="TM_LesserEarth_ElementalR" or
			defName="TM_GreaterEarth_ElementalR" or
			defName="TM_Earth_ElementalR"
			]/statBases/ArmorRating_Blunt </xpath>
		<value>
			<ArmorRating_Blunt>2</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="TM_LesserEarth_ElementalR" or
			defName="TM_GreaterEarth_ElementalR" or
			defName="TM_Earth_ElementalR"
			]/statBases/ArmorRating_Sharp </xpath>
		<value>
			<ArmorRating_Sharp>6</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="TM_LesserFire_ElementalR" or
			defName="TM_GreaterFire_ElementalR" or
			defName="TM_Fire_ElementalR"
			]/statBases/ArmorRating_Blunt </xpath>
		<value>
			<ArmorRating_Blunt>1.5</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="TM_LesserFire_ElementalR" or
			defName="TM_GreaterFire_ElementalR" or
			defName="TM_Fire_ElementalR"
			]/statBases/ArmorRating_Sharp </xpath>
		<value>
			<ArmorRating_Sharp>4</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="TM_LesserWater_ElementalR" or
			defName="TM_GreaterWater_ElementalR" or
			defName="TM_Water_ElementalR"
			]/statBases/ArmorRating_Sharp </xpath>
		<value>
			<ArmorRating_Sharp>5</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="TM_LesserWater_ElementalR" or
			defName="TM_GreaterWater_ElementalR" or
			defName="TM_Water_ElementalR"
			]/statBases/ArmorRating_Blunt </xpath>
		<value>
			<ArmorRating_Blunt>1</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="TM_LesserWind_ElementalR" or
			defName="TM_GreaterWind_ElementalR" or
			defName="TM_Wind_ElementalR"
			]/statBases/ArmorRating_Sharp </xpath>
		<value>
			<ArmorRating_Sharp>3.65</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="TM_LesserWind_ElementalR" or
			defName="TM_GreaterWind_ElementalR" or
			defName="TM_Wind_ElementalR"
			]/statBases/ArmorRating_Blunt </xpath>
		<value>
			<ArmorRating_Blunt>1.5</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="TM_LesserEarth_ElementalR"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left arm</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>10</power>
					<cooldownTime>1.8</cooldownTime>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>6</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_LeftArm</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right arm</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>16</power>
					<cooldownTime>2.2</cooldownTime>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>6</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_RightArm</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>horn</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>22</power>
					<cooldownTime>2.8</cooldownTime>
					<armorPenetrationSharp>1.4</armorPenetrationSharp>
					<armorPenetrationBlunt>3.4</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_Horn</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="TM_Earth_ElementalR"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left arm</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>14</power>
					<cooldownTime>1.8</cooldownTime>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>8.4</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_LeftArm</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right arm</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>22</power>
					<cooldownTime>2.2</cooldownTime>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>8.4</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_RightArm</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>horn</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>34</power>
					<cooldownTime>2.8</cooldownTime>
					<armorPenetrationSharp>2.16</armorPenetrationSharp>
					<armorPenetrationBlunt>5.25</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_Horn</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="TM_GreaterEarth_ElementalR"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left arm</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>18</power>
					<cooldownTime>1.8</cooldownTime>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>10.8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_LeftArm</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right arm</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>26</power>
					<cooldownTime>2.2</cooldownTime>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>9.93</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_RightArm</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>horn</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>38</power>
					<cooldownTime>2.8</cooldownTime>
					<armorPenetrationSharp>2.41</armorPenetrationSharp>
					<armorPenetrationBlunt>5.87</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_Horn</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="TM_LesserFire_ElementalR" or
			defName="TM_LesserWater_ElementalR" or
			defName="TM_LesserWind_ElementalR"
			]/tools </xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left arm</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1</cooldownTime>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>2</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_LeftArm</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right arm</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>9</power>
					<cooldownTime>1.4</cooldownTime>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>2</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_RightArm</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>horn</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>20</power>
					<cooldownTime>2.2</cooldownTime>
					<armorPenetrationSharp>1.4</armorPenetrationSharp>
					<armorPenetrationBlunt>3.4</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_Horn</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="TM_Fire_ElementalR" or
			defName="TM_Water_ElementalR" or
			defName="TM_Wind_ElementalR"
			]/tools </xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left arm</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>6</power>
					<cooldownTime>.9</cooldownTime>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>2</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_LeftArm</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right arm</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>12</power>
					<cooldownTime>1.3</cooldownTime>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>2</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_RightArm</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>horn</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>22</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationSharp>1.54</armorPenetrationSharp>
					<armorPenetrationBlunt>3.74</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_Horn</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="TM_GreaterFire_ElementalR" or
			defName="TM_GreaterWater_ElementalR" or
			defName="TM_GreaterWind_ElementalR"
			]/tools </xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left arm</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>7</power>
					<cooldownTime>.9</cooldownTime>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>2</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_LeftArm</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right arm</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>14</power>
					<cooldownTime>1.2</cooldownTime>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>2</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_RightArm</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>horn</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>25</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationSharp>1.7</armorPenetrationSharp>
					<armorPenetrationBlunt>4.1</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Ele_Horn</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

</Patch>