<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- ========== Mixom Beavertooth Painsaw (Chainsaw) ========== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RHMelee_DOOM_Chainsaw"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>blade</label>
					<capacities>
						<li>RHMelee_ChainsawSlash</li>
					</capacities>
					<power>38</power>
					<cooldownTime>4.36</cooldownTime>
					<armorPenetrationBlunt>3.7</armorPenetrationBlunt>
					<armorPenetrationSharp>14.8</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>RHMelee_ChainsawStab</li>
					</capacities>
					<power>40</power>
					<cooldownTime>2.47</cooldownTime>
					<armorPenetrationBlunt>3.7</armorPenetrationBlunt>
					<armorPenetrationSharp>1.65</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RHMelee_DOOM_Chainsaw"]/statBases</xpath>
		<value>
			<Bulk>9</Bulk>
			<MeleeCounterParryBonus>0.14</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RHMelee_DOOM_Chainsaw"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.04</MeleeCritChance>
				<MeleeParryChance>0.1</MeleeParryChance>
				<MeleeDodgeChance>0.25</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- ========== Crucible Blade ========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RHMelee_DOOMCrucible"]/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.10</chanceFactor>
					<armorPenetrationBlunt>0.80</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>40</power>
					<extraMeleeDamages>
						<li>
							<def>Flame</def>
							<amount>5</amount>
							<chance>0.3</chance>
						</li>
					</extraMeleeDamages>
					<cooldownTime>2.06</cooldownTime>
					<chanceFactor>0.30</chanceFactor>
					<armorPenetrationBlunt>3.20</armorPenetrationBlunt>
					<armorPenetrationSharp>16</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>17</power>
					<extraMeleeDamages>
						<li>
							<def>Flame</def>
							<amount>3</amount>
							<chance>0.2</chance>
						</li>
					</extraMeleeDamages>
					<cooldownTime>0.99</cooldownTime>
					<armorPenetrationBlunt>3.24</armorPenetrationBlunt>
					<armorPenetrationSharp>32.4</armorPenetrationSharp>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RHMelee_DOOMCrucible"]/statBases</xpath>
		<value>
			<Bulk>8.5</Bulk>
			<MeleeCounterParryBonus>0.80</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RHMelee_DOOMCrucible"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>1.00</MeleeCritChance>
				<MeleeParryChance>0.60</MeleeParryChance>
				<MeleeDodgeChance>0.40</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>
</Patch>