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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="AdvancedBionicEye"]/statBases</xpath>
		<value>
			<NightVisionEfficiency_Implant>0.4</NightVisionEfficiency_Implant>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="AdvancedBionicEye"]</xpath>
		<value>
			<stages>
				<li>
					<statOffsets>
						<NightVisionEfficiency_Implant>0.4</NightVisionEfficiency_Implant>
					</statOffsets>
				</li>
			</stages>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="EPOE_ScytherBlade"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>blade</label>
					<capacities>
						<li>Cut</li>
					</capacities>
					<power>25</power>
					<armorPenetrationBlunt>2.16</armorPenetrationBlunt>
					<armorPenetrationSharp>0.87</armorPenetrationSharp>
					<cooldownTime>1.45</cooldownTime>
					<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
					<soundMeleeHit>Pawn_Melee_PowerClaw_Hit</soundMeleeHit>
					<soundMeleeMiss>Pawn_Melee_PowerClaw_Miss</soundMeleeMiss>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>blade</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>20</power>
					<armorPenetrationBlunt>3.6</armorPenetrationBlunt>
					<armorPenetrationSharp>3.6</armorPenetrationSharp>
					<cooldownTime>1.87</cooldownTime>
					<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
					<soundMeleeHit>Pawn_Melee_PowerClaw_Hit</soundMeleeHit>
					<soundMeleeMiss>Pawn_Melee_PowerClaw_Miss</soundMeleeMiss>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="HookHand"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>hook hand</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>5</power>
					<armorPenetrationBlunt>0.25</armorPenetrationBlunt>
					<armorPenetrationSharp>0.05</armorPenetrationSharp>
					<cooldownTime>1.26</cooldownTime>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="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>
					<soundMeleeHit>MeleeHit_BionicPunch</soundMeleeHit>
					<soundMeleeMiss>MeleeMiss_BionicPunch</soundMeleeMiss>
				</li>
			</tools>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="SteelArm"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>6</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>2</armorPenetrationBlunt>
					<soundMeleeHit>MeleeHit_BionicPunch</soundMeleeHit>
					<soundMeleeMiss>MeleeMiss_BionicPunch</soundMeleeMiss>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="AdvancedBionicArm" or defName="AdvancedBionicHand"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>6</power>
					<cooldownTime>1.11</cooldownTime>
					<armorPenetrationBlunt>1.988</armorPenetrationBlunt>
					<soundMeleeHit>MeleeHit_BionicPunch</soundMeleeHit>
					<soundMeleeMiss>MeleeMiss_BionicPunch</soundMeleeMiss>
				</li>
			</tools>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="AdvancedPowerClaw"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>22</power>
					<cooldownTime>1.5</cooldownTime>
					<armorPenetrationSharp>3.31</armorPenetrationSharp>
					<armorPenetrationBlunt>5.76</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
					<soundMeleeHit>Pawn_Melee_PowerClaw_Hit</soundMeleeHit>
					<soundMeleeMiss>Pawn_Melee_PowerClaw_Miss</soundMeleeMiss>
				</li>
			</tools>
		</value>
	</Operation>	

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="PowerArm"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>21</power>
					<cooldownTime>0.89</cooldownTime>
					<armorPenetrationSharp>1.6</armorPenetrationSharp>
					<armorPenetrationBlunt>4</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
					<soundMeleeHit>Pawn_Melee_PowerClaw_Hit</soundMeleeHit>
					<soundMeleeMiss>Pawn_Melee_PowerClaw_Miss</soundMeleeMiss>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="AdvancedPowerArm"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>24</power>
					<cooldownTime>0.74</cooldownTime>
					<armorPenetrationSharp>2.31</armorPenetrationSharp>
					<armorPenetrationBlunt>5.76</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
					<soundMeleeHit>Pawn_Melee_PowerClaw_Hit</soundMeleeHit>
					<soundMeleeMiss>Pawn_Melee_PowerClaw_Miss</soundMeleeMiss>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="TacticalCorneaImplant" or defName="EPIA_TacticalBionicEye"]/stages/li/statOffsets/MeleeDodgeChance</xpath>
		<value>
			<MeleeDodgeChance>0.05</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="TacticalCorneaImplant" or defName="EPIA_TacticalBionicEye"]/stages/li/statOffsets/ShootingAccuracyPawn</xpath>
		<value>
			<AimingAccuracy>0.5</AimingAccuracy>
		</value>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="TacticalCorneaImplant"]/thingClass</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="TacticalCorneaImplant"]</xpath>
			<value>
				<thingClass>ThingWithComps</thingClass>
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="TacticalCorneaImplant"]/statBases</xpath>
		<value>
			<NightVisionEfficiency_Implant>0.4</NightVisionEfficiency_Implant>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="TacticalCorneaImplant"]/stages/li/statOffsets</xpath>
		<value>
			<NightVisionEfficiency_Implant>0.4</NightVisionEfficiency_Implant>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="EPIA_TacticalBionicEye"]/statBases</xpath>
		<value>
			<NightVisionEfficiency_Implant>0.4</NightVisionEfficiency_Implant>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="EPIA_TacticalBionicEye"]/stages/li/statOffsets</xpath>
		<value>
			<NightVisionEfficiency_Implant>0.3</NightVisionEfficiency_Implant>
		</value>
	</Operation>

	<!-- Auxiliary AI (Sharpshooter) -->

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/HediffDef[defName="EPIA_AuxiliaryAI_Sharpshooter"]/stages/li/statFactors</xpath>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="EPIA_AuxiliaryAI_Sharpshooter"]/stages/li/statOffsets</xpath>
		<value>
			<statOffsets>
				<ShootingAccuracyPawn>3</ShootingAccuracyPawn>
				<AimingAccuracy>1.5</AimingAccuracy>
				<AimingDelayFactor>-0.20</AimingDelayFactor>
				<MeleeHitChance>-3</MeleeHitChance>
				<MeleeCritChance>-0.15</MeleeCritChance>
				<MeleeParryChance>-0.15</MeleeParryChance>
				<MeleeDodgeChance>-0.15</MeleeDodgeChance>
				<MortarMissRadiusFactor>-0.3</MortarMissRadiusFactor>
			</statOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/HediffDef[defName="EPIA_EMP_Disorientation_Sharpshooter"]/stages/li/statFactors</xpath>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="EPIA_EMP_Disorientation_Sharpshooter"]/stages/li/statOffsets</xpath>
		<value>
			<statOffsets>
				<ShootingAccuracyPawn>-7.5</ShootingAccuracyPawn>
				<AimingAccuracy>-3.75</AimingAccuracy>
				<AimingDelayFactor>0.20</AimingDelayFactor>
				<MeleeHitChance>-4</MeleeHitChance>
				<MeleeCritChance>-0.2</MeleeCritChance>
				<MeleeParryChance>-0.2</MeleeParryChance>
				<MeleeDodgeChance>-0.2</MeleeDodgeChance>
				<WorkSpeedGlobal>-0.80</WorkSpeedGlobal>
				<MortarMissRadiusFactor>0.4</MortarMissRadiusFactor>
			</statOffsets>
		</value>
	</Operation>

	<!-- Auxiliary AI (Commando) -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="EPIA_AuxiliaryAI_Commando"]/stages/li/statOffsets</xpath>
		<value>
			<statOffsets>
				<ShootingAccuracyPawn>1</ShootingAccuracyPawn>
				<AimingAccuracy>0.5</AimingAccuracy>
				<AimingDelayFactor>-0.15</AimingDelayFactor>
				<MentalBreakThreshold>-0.12</MentalBreakThreshold>
				<Suppressability>-0.50</Suppressability>
			</statOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="EPIA_EMP_Disorientation_Commando"]/stages/li/statOffsets</xpath>
		<value>
			<statOffsets>
				<ShootingAccuracyPawn>-1.5</ShootingAccuracyPawn>
				<AimingAccuracy>-0.75</AimingAccuracy>
				<AimingDelayFactor>0.25</AimingDelayFactor>
				<WorkSpeedGlobal>-0.25</WorkSpeedGlobal>
				<Suppressability>0.50</Suppressability>
			</statOffsets>
		</value>
	</Operation>

	<!-- Auxiliary AI (Brawler) -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="EPIA_AuxiliaryAI_Brawler"]/stages/li/statOffsets</xpath>
		<value>
			<statOffsets>
				<ShootingAccuracyPawn>-1.2</ShootingAccuracyPawn>
				<AimingAccuracy>-0.6</AimingAccuracy>
				<MentalBreakThreshold>-0.08</MentalBreakThreshold>
				<MeleeHitChance>8</MeleeHitChance>
				<MeleeCritChance>0.50</MeleeCritChance>
				<MeleeParryChance>0.50</MeleeParryChance>
				<MeleeDodgeChance>0.50</MeleeDodgeChance>
				<Suppressability>-1</Suppressability>
			</statOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="EPIA_EMP_Disorientation_Brawler"]/stages/li/statOffsets</xpath>
		<value>
			<statOffsets>
				<ShootingAccuracyPawn>-1.5</ShootingAccuracyPawn>
				<AimingAccuracy>-0.75</AimingAccuracy>
				<WorkSpeedGlobal>-0.80</WorkSpeedGlobal>
				<MeleeHitChance>-10</MeleeHitChance>
				<MeleeCritChance>-0.6</MeleeCritChance>
				<MeleeParryChance>-0.6</MeleeParryChance>
				<MeleeDodgeChance>-0.6</MeleeDodgeChance>
				<Suppressability>1</Suppressability>
			</statOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="EPOE_InstinctOptimizedEyes"]/stages/li[minSeverity="0.99"]/statOffsets/MeleeDodgeChance</xpath>
		<value>
			<MeleeDodgeChance>0.05</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="EPOE_InstinctOptimizedEyes"]/stages/li[minSeverity="0.99"]/statOffsets</xpath>
		<value>
			<MeleeCritChance>0.075</MeleeCritChance>
			<MeleeParryChance>0.075</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="EPOE_InstinctOptimizedEyes"]/stages/li[label="Optimizing"]/statOffsets/ShootingAccuracyPawn</xpath>
		<value>
			<AimingAccuracy>0.1</AimingAccuracy>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="EPOE_InstinctOptimizedEyes"]/stages/li[minSeverity="0.99"]/statOffsets/ShootingAccuracyPawn</xpath>
		<value>
			<AimingAccuracy>0.25</AimingAccuracy>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="EPOE_InstinctOptimizedEyes"]/stages/li[minSeverity="0.99"]/statOffsets</xpath>
		<value>
			<NightVisionEfficiency_Implant>0.3</NightVisionEfficiency_Implant>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="EPOE_InstinctOptimizedHand"]/stages/li[label="Optimizing"]/statOffsets</xpath>
		<value>
			<MeleeCritChance>0.15</MeleeCritChance>
			<MeleeParryChance>0.15</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="EPOE_InstinctOptimizedHand"]/stages/li[minSeverity="0.99"]/statOffsets</xpath>
		<value>
			<MeleeCritChance>0.3</MeleeCritChance>
			<MeleeParryChance>0.3</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="EPOE_InstinctOptimizedFoot"]/stages/li[label="Optimizing"]/statOffsets/MeleeDodgeChance</xpath>
		<value>
			<MeleeDodgeChance>0.075</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="EPOE_InstinctOptimizedFoot"]/stages/li[minSeverity="0.99"]/statOffsets/MeleeDodgeChance</xpath>
		<value>
			<MeleeDodgeChance>0.15</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="SimpleProstheticHand"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>1</power>
					<cooldownTime>1.26</cooldownTime>
					<armorPenetrationBlunt>0.250</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Jaws -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="AdvancedBionicJaw"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>teeth</label>
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>5</power>
					<cooldownTime>1.25</cooldownTime>
					<armorPenetrationSharp>0.3</armorPenetrationSharp>
					<armorPenetrationBlunt>2.5</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="BionicJaw" or defName="SilentJaw" or defName="HydraulicJaw"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>teeth</label>
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>4</power>
					<cooldownTime>1.25</cooldownTime>
					<armorPenetrationSharp>0.2</armorPenetrationSharp>
					<armorPenetrationBlunt>2.0</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Protective Exoskeleton -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="EPIA_Harden_ProtectiveExoskeleton"]/stages/li/statOffsets/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>7.5</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="EPIA_Harden_ProtectiveExoskeleton"]/stages/li/statOffsets/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>10</ArmorRating_Blunt>
		</value>
	</Operation>

</Patch>
