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

	<!-- Patches the BionicArm and BIE_BionicHand -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="BionicArm" or defName="BIE_BionicHand"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.11</cooldownTime>
					<armorPenetrationBlunt>1.688</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Patches the BIE_AdvancedBionicArm and BIE_AdvancedBionicHand -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="BIE_AdvancedBionicArm" or defName="BIE_AdvancedBionicHand"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>bionic fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>9</power>
					<cooldownTime>0.96</cooldownTime>
					<armorPenetrationBlunt>3.00</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Patches the BIE_UltratechBionicArm (no hand for this tier) -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="BIE_UltratechBionicArm"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>bionic fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>13</power>
					<cooldownTime>0.81</cooldownTime>
					<armorPenetrationBlunt>4.5</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Patches the ArchotechArm (no hand for this tier, it's patching vanilla for this) -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="ArchotechArm"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>bionic fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>17</power>
					<cooldownTime>0.66</cooldownTime>
					<armorPenetrationBlunt>6.00</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Commented out until we can resolve issues with smoke hediff on body parts for resistance -->
	<!-- Add for lungs of advanced nature, scale, recommended 15% for elite bionics, down to 5% for better-than -->
	<!-- BIE_BionicLung -->
	<!-- <li Class="PatchOperationAdd"> -->
	<!-- <xpath>Defs/HediffDef[defName="BIE_BionicLung"]/stages/li[minSeverity="0.99"]/statOffsets</xpath> -->
	<!-- <value> -->
	<!-- <SmokeSensitivity>-0.025</SmokeSensitivity> -->
	<!-- </value> -->
	<!-- </li> -->
	<!-- BIE_AdvancedBionicLung -->
	<!-- <li Class="PatchOperationAdd"> -->
	<!-- <xpath>Defs/HediffDef[defName="BIE_AdvancedBionicLung"]/stages/li[minSeverity="0.99"]/statOffsets</xpath> -->
	<!-- <value> -->
	<!-- <SmokeSensitivity>-0.05</SmokeSensitivity> -->
	<!-- </value> -->
	<!-- </li> -->
	<!-- BIE_UltratechBionicLung -->
	<!-- <li Class="PatchOperationAdd"> -->
	<!-- <xpath>Defs/HediffDef[defName="BIE_UltratechBionicLung"]/stages/li[minSeverity="0.99"]/statOffsets</xpath> -->
	<!-- <value> -->
	<!-- <SmokeSensitivity>-0.10</SmokeSensitivity> -->
	<!-- </value> -->
	<!-- </li> -->
	<!-- SoSArchotechLung -->
	<!-- <li Class="PatchOperationAdd"> -->
	<!-- <xpath>Defs/HediffDef[defName="SoSArchotechLung"]/stages/li[minSeverity="0.99"]/statOffsets</xpath> -->
	<!-- <value> -->
	<!-- <SmokeSensitivity>-0.15</SmokeSensitivity> -->
	<!-- </value> -->
	<!-- </li> -->

	<!-- Patch for BIE_BionicJaw -->
	<!-- Patch for BIE_AdvancedBionicJaw -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="BIE_AdvancedBionicJaw"]</xpath>
		<value>
			<comps>
				<li Class="HediffCompProperties_VerbGiver">
					<tools>
						<li Class="CombatExtended.ToolCE">
							<label>teeth</label>
							<capacities>
								<li>Bite</li>
							</capacities>
							<power>7</power>
							<cooldownTime>1.12</cooldownTime>
							<armorPenetrationBlunt>2.2</armorPenetrationBlunt>
							<armorPenetrationSharp>0.4</armorPenetrationSharp>
						</li>
					</tools>
				</li>
			</comps>
		</value>
	</Operation>

	<!-- BIE_UltratechBionicJaw -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="BIE_UltratechBionicJaw"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>teeth</label>
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>10</power>
					<cooldownTime>0.97</cooldownTime>
					<armorPenetrationBlunt>3.0</armorPenetrationBlunt>
					<armorPenetrationSharp>0.6</armorPenetrationSharp>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- SoSArchotechJaw -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="SoSArchotechJaw"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>teeth</label>
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>13</power>
					<cooldownTime>0.82</cooldownTime>
					<armorPenetrationBlunt>3.6</armorPenetrationBlunt>
					<armorPenetrationSharp>0.8</armorPenetrationSharp>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Patch for BIE_UltratechBionicSkin -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="BIE_UltratechBionicSkin"]/stages/li/statOffsets/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>2.5</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="BIE_UltratechBionicSkin"]/stages/li/statOffsets/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>2.25</ArmorRating_Blunt>
			<ArmorRating_Electric>0.2</ArmorRating_Electric>
		</value>
	</Operation>

	<!-- Patch for SoSArchotechSkin (YAP uses SOSArch for these) -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="SoSArchotechSkin"]/stages/li/statOffsets/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>4.5</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="SoSArchotechSkin"]/stages/li/statOffsets/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>4.5</ArmorRating_Blunt>
			<ArmorRating_Electric>0.4</ArmorRating_Electric>
		</value>
	</Operation>

</Patch>