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

	<!-- Baseball Bat -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="IMW_BaseballBat"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.46</cooldownTime>
					<armorPenetrationBlunt>0.55</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>18</power>
					<cooldownTime>1.8</cooldownTime>
					<armorPenetrationBlunt>6.0</armorPenetrationBlunt>
					<chanceFactor>2</chanceFactor>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_BaseballBat"]/statBases</xpath>
		<value>
			<Bulk>7.5</Bulk>
			<MeleeCounterParryBonus>0.15</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_BaseballBat"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.5</MeleeCritChance>
				<MeleeParryChance>0.15</MeleeParryChance>
				<MeleeDodgeChance>0.05</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- Machete -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="IMW_Machete"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.5</cooldownTime>
					<armorPenetrationBlunt>0.5</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>edge</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>20</power>
					<cooldownTime>1.3</cooldownTime>
					<chanceFactor>1.33</chanceFactor>
					<armorPenetrationBlunt>1.125</armorPenetrationBlunt>
					<armorPenetrationSharp>0.70</armorPenetrationSharp>
					<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_Machete"]/equippedStatOffsets</xpath>
		<value>
			<MeleeCritChance>0.5</MeleeCritChance>
			<MeleeParryChance>0.15</MeleeParryChance>
			<MeleeDodgeChance>0.05</MeleeDodgeChance>
		</value>
	</Operation>

	<!-- Crowbar -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="IMW_Crowbar"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>12</power>
					<cooldownTime>1.32</cooldownTime>
					<armorPenetrationBlunt>0.9</armorPenetrationBlunt>
					<armorPenetrationSharp>0.1</armorPenetrationSharp>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>15</power>
					<cooldownTime>0.63</cooldownTime>
					<chanceFactor>1.33</chanceFactor>
					<armorPenetrationBlunt>5.625</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>prying</label>
					<capacities>
						<li>Demolish</li>
					</capacities>
					<power>8</power>
					<cooldownTime>1.63</cooldownTime>
					<armorPenetrationBlunt>5.625</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

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

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

	<!-- Claw Hammer -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="IMW_ClawHammer"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5.0</power>
					<cooldownTime>1.2</cooldownTime>
					<chanceFactor>1.1</chanceFactor>
					<armorPenetrationBlunt>0.4</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>9.0</power>
					<cooldownTime>2.0</cooldownTime>
					<chanceFactor>1.33</chanceFactor>
					<armorPenetrationBlunt>0.9</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_ClawHammer"]/equippedStatOffsets</xpath>
		<value>
			<MeleeCritChance>0.25</MeleeCritChance>
			<MeleeParryChance>0.20</MeleeParryChance>
		</value>
	</Operation>

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

	<!-- Sledgehammer -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="IMW_Sledgehammer"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1.87</cooldownTime>
					<armorPenetrationBlunt>1.2</armorPenetrationBlunt>
					<chanceFactor>0.15</chanceFactor>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Demolish</li>
					</capacities>
					<power>22</power>
					<cooldownTime>2.43</cooldownTime>
					<armorPenetrationBlunt>10.8</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_Sledgehammer"]/statBases</xpath>
		<value>
			<Bulk>7</Bulk>
			<MeleeCounterParryBonus>0.38</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_Sledgehammer"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>1.2</MeleeCritChance>
				<MeleeParryChance>0.5</MeleeParryChance>
				<MeleeDodgeChance>0.3</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- Spiked Baseball Bat -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="IMW_SpikedBat"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.46</cooldownTime>
					<armorPenetrationBlunt>0.55</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>18</power>
					<extraMeleeDamages>
						<li>
							<def>Stab</def>
							<amount>6</amount>
						</li>
					</extraMeleeDamages>
					<cooldownTime>1.8</cooldownTime>
					<armorPenetrationBlunt>6.0</armorPenetrationBlunt>
					<chanceFactor>2</chanceFactor>
					<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_SpikedBat"]/statBases</xpath>
		<value>
			<Bulk>7.5</Bulk>
			<MeleeCounterParryBonus>0.15</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_SpikedBat"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.5</MeleeCritChance>
				<MeleeParryChance>0.15</MeleeParryChance>
				<MeleeDodgeChance>0.05</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- Knuckleduster -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="IMW_Knuckleduster"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.46</cooldownTime>
					<armorPenetrationBlunt>0.5</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_Knuckleduster"]/statBases</xpath>
		<value>
			<Bulk>0.25</Bulk>
			<MeleeCounterParryBonus>0.01</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_Knuckleduster"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.2</MeleeCritChance>
				<MeleeParryChance>0.01</MeleeParryChance>
				<MeleeDodgeChance>0</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

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

	<!-- Boxing Glove -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="IMW_BoxingGlove"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>2</power>
					<extraMeleeDamages>
						<li>
							<def>Stun</def>
							<amount>14</amount>
							<chance>0.3</chance>
						</li>
					</extraMeleeDamages>
					<cooldownTime>1.85</cooldownTime>
					<armorPenetrationBlunt>0.5</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_BoxingGlove"]/statBases</xpath>
		<value>
			<Bulk>1</Bulk>
			<MeleeCounterParryBonus>0.01</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_BoxingGlove"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.01</MeleeCritChance>
				<MeleeParryChance>0.05</MeleeParryChance>
				<MeleeDodgeChance>0</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

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

	<!-- Pocket Knife -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="IMW_PocketKnife"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>handle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>1</power>
					<chanceFactor>0.33</chanceFactor>
					<cooldownTime>0.4</cooldownTime>
					<armorPenetrationBlunt>0.007</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>blade</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.06</cooldownTime>
					<armorPenetrationBlunt>0.01</armorPenetrationBlunt>
					<armorPenetrationSharp>0.01</armorPenetrationSharp>
					<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>point</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.12</cooldownTime>
					<armorPenetrationBlunt>0.4</armorPenetrationBlunt>
					<armorPenetrationSharp>0.05</armorPenetrationSharp>
					<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_PocketKnife"]/statBases</xpath>
		<value>
			<Bulk>0.1</Bulk>
			<MeleeCounterParryBonus>0.15</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_PocketKnife"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.33</MeleeCritChance>
				<MeleeParryChance>0.01</MeleeParryChance>
				<MeleeDodgeChance>0.04</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

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

	<!-- Sock Mace -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="IMW_SockMace"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>heavy end</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>7</power>
					<extraMeleeDamages>
						<li>
							<def>Stun</def>
							<amount>6</amount>
							<chance>0.2</chance>
						</li>
					</extraMeleeDamages>
					<cooldownTime>3.16</cooldownTime>
					<armorPenetrationBlunt>2.25</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_SockMace"]/statBases</xpath>
		<value>
			<Bulk>0.2</Bulk>
			<MeleeCounterParryBonus>0</MeleeCounterParryBonus>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="IMW_SockMace"]</xpath>
		<value>
			<equippedStatOffsets>
				<MeleeCritChance>0.28</MeleeCritChance>
				<MeleeParryChance>0</MeleeParryChance>
				<MeleeDodgeChance>0.12</MeleeDodgeChance>
			</equippedStatOffsets>
		</value>
	</Operation>

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

	<!-- Brief Case -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="IMW_Briefcase"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>case</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5</power>
					<cooldownTime>3.46</cooldownTime>
					<armorPenetrationBlunt>0.85</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="IMW_Briefcase"]/equippedStatOffsets/CarryingCapacity</xpath>
		<value>
			<CarryBulk>15</CarryBulk>
			<MeleeCritChance>0.28</MeleeCritChance>
			<MeleeParryChance>0.3</MeleeParryChance>
			<MeleeDodgeChance>0.12</MeleeDodgeChance>
		</value>
	</Operation>
</Patch>