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

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="AW_ArchotechSword"]/statBases/MeleeWeapon_AverageArmorPenetration</xpath>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="AW_ArchotechSword"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>1</power>
					<chanceFactor>0.33</chanceFactor>
					<cooldownTime>1.52</cooldownTime>
					<armorPenetrationBlunt>0.55</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>25</power>
					<cooldownTime>1.24</cooldownTime>
					<armorPenetrationBlunt>8</armorPenetrationBlunt>
					<armorPenetrationSharp>22</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>blade</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>25</power>
					<cooldownTime>1.14</cooldownTime>
					<armorPenetrationBlunt>12</armorPenetrationBlunt>
					<armorPenetrationSharp>10</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="AW_ArchotechSword"]/statBases</xpath>
		<value>
			<Bulk>2</Bulk>
			<MeleeCounterParryBonus>0.5</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="AW_ArchotechSword"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.73</MeleeCritChance>
				<MeleeParryChance>0.45</MeleeParryChance>
				<MeleeDodgeChance>0.6</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="AW_ArchotechHeavySword"]/statBases/MeleeWeapon_AverageArmorPenetration</xpath>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="AW_ArchotechHeavySword"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>1</power>
					<chanceFactor>0.33</chanceFactor>
					<cooldownTime>1.52</cooldownTime>
					<armorPenetrationBlunt>0.55</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>35</power>
					<cooldownTime>1.55</cooldownTime>
					<armorPenetrationBlunt>12</armorPenetrationBlunt>
					<armorPenetrationSharp>35</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>blade</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>35</power>
					<cooldownTime>1.75</cooldownTime>
					<armorPenetrationBlunt>12</armorPenetrationBlunt>
					<armorPenetrationSharp>25</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="AW_ArchotechHeavySword"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>1</MeleeCritChance>
				<MeleeParryChance>0.65</MeleeParryChance>
				<MeleeDodgeChance>0.45</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

</Patch>