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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="TM_ElephantSpear"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>shaft</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>7</power>
					<cooldownTime>2.24</cooldownTime>
					<armorPenetrationBlunt>2.5</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Shaft</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>59</power>
					<cooldownTime>4.71</cooldownTime>
					<chanceFactor>1.165</chanceFactor>
					<armorPenetrationBlunt>10</armorPenetrationBlunt>
					<armorPenetrationSharp>1.25</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>23</power>
					<cooldownTime>1.87</cooldownTime>
					<chanceFactor>1.165</chanceFactor>
					<armorPenetrationBlunt>3.6</armorPenetrationBlunt>
					<armorPenetrationSharp>2.4</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_ElephantSpear"]/statBases</xpath>
		<value>
			<Bulk>10</Bulk>
			<MeleeCounterParryBonus>1.68</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_ElephantSpear"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.17</MeleeCritChance>
				<MeleeParryChance>1.45</MeleeParryChance>
				<MeleeDodgeChance>0.9</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- Gladius with better stats (like crit and parry) -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="TM_ElephantTusk"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.32</cooldownTime>
					<armorPenetrationBlunt>0.675</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>15</power>
					<cooldownTime>0.88</cooldownTime>
					<armorPenetrationBlunt>0.675</armorPenetrationBlunt>
					<armorPenetrationSharp>0.85</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>20</power>
					<cooldownTime>0.83</cooldownTime>
					<armorPenetrationBlunt>1.2</armorPenetrationBlunt>
					<armorPenetrationSharp>0.04</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_ElephantTusk"]/statBases</xpath>
		<value>
			<Bulk>3.5</Bulk>
			<MeleeCounterParryBonus>0.75</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_ElephantTusk"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.6</MeleeCritChance>
				<MeleeParryChance>0.5</MeleeParryChance>
				<MeleeDodgeChance>0.4</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_ElephantTusk"]/weaponTags</xpath>
		<value>
			<li>CE_OneHandedWeapon</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="TM_ThrumboSaber"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.5</cooldownTime>
					<armorPenetrationBlunt>0.5</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>16</power>
					<cooldownTime>0.94</cooldownTime>
					<armorPenetrationBlunt>1.25</armorPenetrationBlunt>
					<armorPenetrationSharp>15.06</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>35</power>
					<cooldownTime>0.83</cooldownTime>
					<chanceFactor>1.33</chanceFactor>
					<armorPenetrationBlunt>1.28</armorPenetrationBlunt>
					<armorPenetrationSharp>9</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_ThrumboSaber"]/statBases</xpath>
		<value>
			<Bulk>3.5</Bulk>
			<MeleeCounterParryBonus>0.75</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_ThrumboSaber"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.6</MeleeCritChance>
				<MeleeParryChance>0.5</MeleeParryChance>
				<MeleeDodgeChance>0.4</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_ThrumboSaber"]/weaponTags</xpath>
		<value>
			<li>CE_OneHandedWeapon</li>
		</value>
	</Operation>

	<!-- VWE Battleaxe with double the sharp penetration -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_ThrumboAxe"]/statBases</xpath>
		<value>
			<Bulk>13</Bulk>
			<MeleeCounterParryBonus>1.5</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_ThrumboAxe"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.3</MeleeCritChance>
				<MeleeParryChance>1.6</MeleeParryChance>
				<MeleeDodgeChance>0.56</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="TM_ThrumboAxe"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>59</power>
					<cooldownTime>4.71</cooldownTime>
					<chanceFactor>1.165</chanceFactor>
					<armorPenetrationBlunt>10</armorPenetrationBlunt>
					<armorPenetrationSharp>16.13</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>20</power>
					<cooldownTime>1.87</cooldownTime>
					<chanceFactor>1.165</chanceFactor>
					<armorPenetrationBlunt>3.6</armorPenetrationBlunt>
					<armorPenetrationSharp>18</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Longsword with much higher crit chance -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="TM_Ruunbled"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>3</power>
					<cooldownTime>1.69</cooldownTime>
					<chanceFactor>0.05</chanceFactor>
					<armorPenetrationBlunt>0.8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>25</power>
					<cooldownTime>0.94</cooldownTime>
					<chanceFactor>0.60</chanceFactor>
					<armorPenetrationBlunt>2.048</armorPenetrationBlunt>
					<armorPenetrationSharp>32</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>47</power>
					<cooldownTime>0.83</cooldownTime>
					<chanceFactor>0.30</chanceFactor>
					<armorPenetrationBlunt>4.608</armorPenetrationBlunt>
					<armorPenetrationSharp>24</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_Ruunbled"]/statBases</xpath>
		<value>
			<Bulk>8</Bulk>
			<MeleeCounterParryBonus>1</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_Ruunbled"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>1.4</MeleeCritChance>
				<MeleeParryChance>0.75</MeleeParryChance>
				<MeleeDodgeChance>0.4</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="TM_DemonFang"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.32</cooldownTime>
					<armorPenetrationBlunt>0.3</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>stab</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>13</power>
					<cooldownTime>.88</cooldownTime>
					<armorPenetrationBlunt>0.675</armorPenetrationBlunt>
					<armorPenetrationSharp>8.44</armorPenetrationSharp>
					<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>19</power>
					<cooldownTime>0.83</cooldownTime>
					<chanceFactor>1.33</chanceFactor>
					<armorPenetrationBlunt>1.2</armorPenetrationBlunt>
					<armorPenetrationSharp>6</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_DemonFang"]/statBases</xpath>
		<value>
			<Bulk>1</Bulk>
			<MeleeCounterParryBonus>0.15</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_DemonFang"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.5</MeleeCritChance>
				<MeleeParryChance>0.15</MeleeParryChance>
				<MeleeDodgeChance>0.05</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- Add tags -->

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TM_DemonFang"]/weaponTags</xpath>
		<value>
			<li>CE_OneHandedWeapon</li>
		</value>
	</Operation>

</Patch>