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

	<!-- ========== Tox wood ========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="BMT_Toxwood"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>2</power>
					<cooldownTime>0.99</cooldownTime>
					<armorPenetrationBlunt>0.288</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="BMT_Toxwood"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.2</MeleeCritChance>
				<MeleeParryChance>1</MeleeParryChance>
				<MeleeDodgeChance>0.13</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="BMT_Toxwood"]</xpath>
		<value>
			<li Class="CombatExtended.StuffToughnessMultiplierExtensionCE">
				<toughnessMultiplier>5</toughnessMultiplier>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="BMT_Toxwood"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.1</StuffPower_Armor_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="BMT_Toxwood"]/statBases/StuffPower_Armor_Blunt</xpath>
		<value>
			<StuffPower_Armor_Blunt>0.2</StuffPower_Armor_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="BMT_Toxwood"]/statBases/StuffPower_Armor_Heat</xpath>
		<value>
			<StuffPower_Armor_Heat>0.025</StuffPower_Armor_Heat>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="BMT_Toxwood"]/stuffProps/statFactors</xpath>
		<value>
			<Mass>0.6</Mass>
			<MeleePenetrationFactor>0.5</MeleePenetrationFactor>
		</value>
	</Operation>

	<!-- ========== ToxiChitin =========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="BMT_ToxiChitin"]/statBases/StuffPower_Armor_Sharp</xpath>
		<value>
			<StuffPower_Armor_Sharp>0.15</StuffPower_Armor_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="BMT_ToxiChitin"]/statBases/StuffPower_Armor_Blunt</xpath>
		<value>
			<StuffPower_Armor_Blunt>0.075</StuffPower_Armor_Blunt>
		</value>
	</Operation>

	<!-- ========== BunkerClaw =========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="BMT_BunkerClaw"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Cut</li>
						<li>Stab</li>
					</capacities>
					<power>20</power>
					<cooldownTime>2.6</cooldownTime>
					<armorPenetrationBlunt>12.1</armorPenetrationBlunt>
					<armorPenetrationSharp>6.62</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>base</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>10</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>2.025</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Shaft</linkedBodyPartsGroup>
					<chanceFactor>0.75</chanceFactor>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="BMT_BunkerClaw"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.22</MeleeCritChance>
				<MeleeParryChance>1.53</MeleeParryChance>
				<MeleeDodgeChance>0.27</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- ========== Hornet Stinger stats after Daggers =========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="BMT_PustuleHornetStinger"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>tip</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<extraMeleeDamages>
						<li>
							<def>BMT_Neurotoxin</def>
							<amount>5</amount>
							<chance>1.0</chance>
						</li>
					</extraMeleeDamages>
					<power>2</power>
					<cooldownTime>2.6</cooldownTime>
					<armorPenetrationBlunt>0.9</armorPenetrationBlunt>
					<armorPenetrationSharp>2</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>base</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>8</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>1.025</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Shaft</linkedBodyPartsGroup>
					<chanceFactor>0.25</chanceFactor>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="BMT_PustuleHornetStinger"]/statBases</xpath>
		<value>
			<Bulk>5</Bulk>
			<MeleeCounterParryBonus>0.3</MeleeCounterParryBonus>
		</value>
	</Operation>

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

</Patch>