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

<Patch>

	<!--===== Blood Pact Sabre Knife =====-->
	
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="GW_BP_SabreKnife"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>2</power>
					<chanceFactor>0.1</chanceFactor>
					<cooldownTime>1.46</cooldownTime>
					<armorPenetrationBlunt>0.45</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>20</power>
					<cooldownTime>1.17</cooldownTime>
					<armorPenetrationBlunt>1.852</armorPenetrationBlunt>
					<armorPenetrationSharp>1.17</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="GW_BP_SabreKnife"]/weaponTags</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="GW_BP_SabreKnife"]</xpath>
			<value>
				<weaponTags />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="GW_BP_SabreKnife"]/weaponTags</xpath>
		<value>
			<li>CE_OneHandedWeapon</li>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="GW_BP_SabreKnife"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.55</MeleeCritChance>
				<MeleeParryChance>0.8</MeleeParryChance>
				<MeleeDodgeChance>0.8</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>
	
	<!--===== BP Chainsword =====-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="GW_BP_ChainSword"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.65</cooldownTime>
					<chanceFactor>0.33</chanceFactor>
					<armorPenetrationBlunt>1.425</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>32</power>
					<cooldownTime>1.4</cooldownTime>
					<armorPenetrationSharp>16</armorPenetrationSharp>
					<armorPenetrationBlunt>2.4</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="GW_BP_ChainSword"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.29</MeleeCritChance>
				<MeleeParryChance>0.58</MeleeParryChance>
				<MeleeDodgeChance>0.29</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="GW_BP_ChainSword"]/statBases</xpath>
		<value>
			<Bulk>5.7</Bulk>
			<MeleeCounterParryBonus>0.58</MeleeCounterParryBonus>
		</value>
	</Operation>

	<!--===== BP Chainaxe =====-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="GW_BP_ChainAxe"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>chain</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>35</power>
					<cooldownTime>2.5</cooldownTime>
					<armorPenetrationBlunt>8</armorPenetrationBlunt>
					<armorPenetrationSharp>35</armorPenetrationSharp>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>10</power>
					<cooldownTime>2.3</cooldownTime>
					<armorPenetrationBlunt>4</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="GW_BP_ChainAxe"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.25</MeleeCritChance>
				<MeleeParryChance>0.45</MeleeParryChance>
				<MeleeDodgeChance>0.35</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="GW_BP_ChainAxe"]/statBases</xpath>
		<value>
			<Bulk>5.7</Bulk>
			<MeleeCounterParryBonus>0.58</MeleeCounterParryBonus>
		</value>
	</Operation>

	<!--===== BP Power Fist =====-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="GW_BP_PowerFist"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>Fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>55</power>
					<cooldownTime>2.3</cooldownTime>
					<armorPenetrationBlunt>190</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="GW_BP_PowerFist"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>1.47</MeleeCritChance>
				<MeleeParryChance>0.49</MeleeParryChance>
				<MeleeDodgeChance>0.44</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="GW_BP_PowerFist"]/statBases</xpath>
		<value>
			<Bulk>8.8</Bulk>
			<MeleeCounterParryBonus>0.49</MeleeCounterParryBonus>
		</value>
	</Operation>

	<!--=====  BP Power Sword =====-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="GW_BP_PowerSword"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>3</power>
					<cooldownTime>1.3</cooldownTime>
					<chanceFactor>0.1</chanceFactor>
					<armorPenetrationBlunt>1</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>60</power>
					<cooldownTime>0.8</cooldownTime>
					<armorPenetrationSharp>24</armorPenetrationSharp>
					<armorPenetrationBlunt>4.5</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>24</power>
					<cooldownTime>1.2</cooldownTime>
					<armorPenetrationSharp>31</armorPenetrationSharp>
					<armorPenetrationBlunt>5.8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="GW_BP_PowerSword"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.75</MeleeCritChance>
				<MeleeParryChance>0.35</MeleeParryChance>
				<MeleeDodgeChance>0.16</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="GW_BP_PowerSword"]/statBases</xpath>
		<value>
			<Bulk>6.2</Bulk>
			<MeleeCounterParryBonus>0.53</MeleeCounterParryBonus>
		</value>
	</Operation>

	<!-- ========== Trench Mace ========== -->

	<!-- Patch stats -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="GW_BP_TrenchClub"]/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.59</cooldownTime>
					<armorPenetrationBlunt>0.625</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>18</power>
					<cooldownTime>2.4</cooldownTime>
					<armorPenetrationBlunt>6.625</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="GW_BP_TrenchClub"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.42</MeleeCritChance>
				<MeleeParryChance>0.24</MeleeParryChance>
				<MeleeDodgeChance>0.2</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

</Patch>