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

	<!-- ========== Forsaken Long Blade ========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="AG_ForsakenLongBlade"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>2</power>
					<chanceFactor>0.33</chanceFactor>
					<cooldownTime>1.52</cooldownTime>
					<armorPenetrationBlunt>0.500</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>20</power>
					<cooldownTime>1</cooldownTime>
					<armorPenetrationBlunt>2</armorPenetrationBlunt>
					<armorPenetrationSharp>20</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>34</power>
					<cooldownTime>0.88</cooldownTime>
					<armorPenetrationBlunt>3</armorPenetrationBlunt>
					<armorPenetrationSharp>10</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="AG_ForsakenLongBlade"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>1.6</MeleeCritChance>
				<MeleeParryChance>1.0</MeleeParryChance>
				<MeleeDodgeChance>0.4</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- ========== Forsaken Battle Axe ========== -->

	<!-- (CE implementation based on Vanilla Weapons Expanded Battle Axe) -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="AG_ForsakenBattleAxe"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>shaft</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>7</power>
					<cooldownTime>1.35</cooldownTime>
					<chanceFactor>0.15</chanceFactor>
					<armorPenetrationBlunt>3</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Shaft</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>12</power>
					<cooldownTime>2.2</cooldownTime>
					<chanceFactor>1.165</chanceFactor>
					<armorPenetrationBlunt>1</armorPenetrationBlunt>
					<armorPenetrationSharp>14</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>45</power>
					<cooldownTime>2.2</cooldownTime>
					<chanceFactor>1.165</chanceFactor>
					<armorPenetrationBlunt>25.4</armorPenetrationBlunt>
					<armorPenetrationSharp>16</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="AG_ForsakenBattleAxe"]/statBases</xpath>
		<value>
			<Bulk>12</Bulk>
			<MeleeCounterParryBonus>1.08</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="AG_ForsakenBattleAxe"]/equippedStatOffsets</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.33</MeleeCritChance>
				<MeleeParryChance>1.2</MeleeParryChance>
				<MeleeDodgeChance>0.6</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- ========== Forsaken Bulk Sword ========== -->

	<!-- (Weaker than vanilla CE longsword, but low cooldown time) -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="AG_ForsakenBulkSword"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>3</power>
					<cooldownTime>0.5</cooldownTime>
					<chanceFactor>0.10</chanceFactor>
					<armorPenetrationBlunt>0.8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>12</power>
					<cooldownTime>0.6</cooldownTime>
					<chanceFactor>0.60</chanceFactor>
					<armorPenetrationBlunt>1</armorPenetrationBlunt>
					<armorPenetrationSharp>14</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>22</power>
					<cooldownTime>0.6</cooldownTime>
					<chanceFactor>0.30</chanceFactor>
					<armorPenetrationBlunt>2.592</armorPenetrationBlunt>
					<armorPenetrationSharp>7</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="AG_ForsakenBulkSword"]/statBases</xpath>
		<value>
			<!-- Slightly bulkier than vanilla CE longsword -->
			<Bulk>9</Bulk>
			<MeleeCounterParryBonus>1</MeleeCounterParryBonus>
		</value>
	</Operation>

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

	<!-- ========== Forsaken Spear ========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="AG_ForsakenSpear"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>shaft</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>7</power>
					<cooldownTime>1.35</cooldownTime>
					<chanceFactor>0.15</chanceFactor>
					<armorPenetrationBlunt>2.25</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Shaft</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>shaft</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>8</power>
					<cooldownTime>1.78</cooldownTime>
					<chanceFactor>0.05</chanceFactor>
					<armorPenetrationBlunt>1</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>21</power>
					<cooldownTime>1.18</cooldownTime>
					<chanceFactor>1.00</chanceFactor>
					<armorPenetrationBlunt>3</armorPenetrationBlunt>
					<armorPenetrationSharp>18</armorPenetrationSharp>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

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

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

</Patch>