<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- Torch Sword-->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="MeleeWeapon_TorchSword"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>2</power>
					<chanceFactor>0.33</chanceFactor>
					<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>26</power>
					<cooldownTime>1.3</cooldownTime>
					<armorPenetrationBlunt>1.352</armorPenetrationBlunt>
					<armorPenetrationSharp>18</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>41</power>
					<cooldownTime>1.52</cooldownTime>
					<armorPenetrationBlunt>3.2</armorPenetrationBlunt>
					<armorPenetrationSharp>12.8</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="MeleeWeapon_TorchSword"]/statBases</xpath>
		<value>
			<MeleeCounterParryBonus>0.8</MeleeCounterParryBonus>
			<Bulk>6.5</Bulk>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="MeleeWeapon_TorchSword"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>1</MeleeCritChance>
				<MeleeParryChance>0.6</MeleeParryChance>
				<MeleeDodgeChance>0.4</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>
	<!--			
<li Class="PatchOperationAdd">
	<xpath>Defs/ThingDef[defName="MeleeWeapon_TorchSword"]/weaponTags</xpath>
	<value>
		<li>CE_OneHandedWeapon</li>
	</value>
</li>
-->
	<!-- GD - Sabertooth -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="GD_Sabertooth"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>3</power>
					<chanceFactor>0.33</chanceFactor>
					<cooldownTime>1.65</cooldownTime>
					<armorPenetrationBlunt>0.71</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>31</power>
					<cooldownTime>1.54</cooldownTime>
					<armorPenetrationSharp>3.63</armorPenetrationSharp>
					<armorPenetrationBlunt>2.174</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="GD_Sabertooth"]/statBases</xpath>
		<value>
			<MeleeCounterParryBonus>0.25</MeleeCounterParryBonus>
			<Bulk>3.5</Bulk>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="GD_Sabertooth"]/equippedStatOffsets</xpath>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="GD_Sabertooth"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.28</MeleeCritChance>
				<MeleeParryChance>0.25</MeleeParryChance>
				<MeleeDodgeChance>0.15</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="GD_Sabertooth"]/weaponTags</xpath>
		<value>
			<li>CE_OneHandedWeapon</li>
		</value>
	</Operation>

	<!-- YP Vibroknife -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="YP_BingJu"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>1</power>
					<chanceFactor>0.33</chanceFactor>
					<cooldownTime>1.26</cooldownTime>
					<armorPenetrationBlunt>0.250</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>blade</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>15</power>
					<cooldownTime>0.6</cooldownTime>
					<armorPenetrationBlunt>0.36</armorPenetrationBlunt>
					<armorPenetrationSharp>6</armorPenetrationSharp>
					<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>11</power>
					<cooldownTime>0.6</cooldownTime>
					<armorPenetrationBlunt>0.25</armorPenetrationBlunt>
					<armorPenetrationSharp>15</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="YP_BingJu"]/statBases</xpath>
		<value>
			<MeleeCounterParryBonus>1.2</MeleeCounterParryBonus>
			<Bulk>2.5</Bulk>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="YP_BingJu"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.75</MeleeCritChance>
				<MeleeParryChance>0.94</MeleeParryChance>
				<MeleeDodgeChance>0.20</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="YP_BingJu"]/weaponTags</xpath>
		<match Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="YP_BingJu"]/weaponTags</xpath>
			<value>
				<li>CE_OneHandedWeapon</li>
			</value>
		</match>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="YP_BingJu"]</xpath>
			<value>
				<weaponTags>
					<li>CE_OneHandedWeapon</li>
				</weaponTags>
			</value>
		</nomatch>
	</Operation>

	<!-- JI Assault Hammer -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="JI_Ormbane"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>5</power>
					<chanceFactor>0.33</chanceFactor>
					<cooldownTime>1.97</cooldownTime>
					<armorPenetrationBlunt>1.5</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>32</power>
					<cooldownTime>3.2</cooldownTime>
					<armorPenetrationBlunt>250</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="JI_Ormbane"]/statBases</xpath>
		<value>
			<MeleeCounterParryBonus>1.21</MeleeCounterParryBonus>
			<Bulk>9</Bulk>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="JI_Ormbane"]/equippedStatOffsets</xpath>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="JI_Ormbane"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>2.5</MeleeCritChance>
				<MeleeParryChance>0.16</MeleeParryChance>
				<MeleeDodgeChance>0.27</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- TE - Impact Knuckle -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="TE_Eris"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>knuckle</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>10</power>
					<cooldownTime>0.7</cooldownTime>
					<armorPenetrationBlunt>25</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>discharger</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>12</power>
					<extraMeleeDamages>
						<li>
							<def>Stun</def>
							<amount>4</amount>
							<chance>0.5</chance>
						</li>
					</extraMeleeDamages>
					<cooldownTime>1.00</cooldownTime>
					<armorPenetrationBlunt>45</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TE_Eris"]/statBases</xpath>
		<value>
			<Bulk>1</Bulk>
			<MeleeCounterParryBonus>0.15</MeleeCounterParryBonus>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TE_Eris"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.5</MeleeCritChance>
				<MeleeParryChance>0.15</MeleeParryChance>
				<MeleeDodgeChance>0.45</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TE_Eris"]/weaponTags</xpath>
		<value>
			<li>CE_OneHandedWeapon</li>
		</value>
	</Operation>
</Patch>