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

	<!--Core Modules-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_DroneCore"]/stages/li/statOffsets</xpath>
		<value>
			<Suppressability>-5</Suppressability>
		</value>
	</Operation>

	<!--==========Physique Upgrades==========-->

	<!--Hulking-->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_Hulking"]/stages/li/statOffsets/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>0.5</ArmorRating_Sharp>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_Hulking"]/stages/li/statOffsets</xpath>
		<value>
			<CarryWeight>40</CarryWeight>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_Hulking"]/stages/li/statOffsets</xpath>
		<value>
			<CarryBulk>20</CarryBulk>
		</value>
	</Operation>

	<!--Agile-->

	<!--Provides same melee dodge as combat upgrade below-->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_Agile"]/stages/li/statOffsets/MeleeDodgeChance</xpath>
		<value>
			<MeleeDodgeChance>0.2625</MeleeDodgeChance>
		</value>
	</Operation>

	<!--Perfect-->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_Super"]/stages/li/statOffsets/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>0.25</ArmorRating_Sharp>
		</value>
	</Operation>

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

	<!--Provides half melee dodge of combat upgrade-->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_Super"]/stages/li/statOffsets/MeleeDodgeChance</xpath>
		<value>
			<MeleeDodgeChance>0.13125</MeleeDodgeChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_Super"]/stages/li/statOffsets</xpath>
		<value>
			<CarryWeight>25</CarryWeight>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_Super"]/stages/li/statOffsets</xpath>
		<value>
			<CarryBulk>10</CarryBulk>
		</value>
	</Operation>

	<!--==========Skin Modules==========-->

	<!--Hyperweave, 1.5mm;Heat resistance unadjusted-->

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

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

	<!--Plasteel, 1.5mm;Heat resistance unadjusted-->

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

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

	<!--Dragonscale-->

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_DragonScales"]/stages/li/statOffsets</xpath>
		<value>
			<Flammability>-1</Flammability>
		</value>
	</Operation>

	<!--==========Upgrade Modules==========-->

	<!--Fighter-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_FighterModule"]/stages/li/statOffsets</xpath>
		<value>
			<Suppressability>-5</Suppressability>
		</value>
	</Operation>

	<!--Splitting up the bonuses to melee/ranged into CE subcatergories. 15 levels of skill worth of bonus-->

	<!--Shooting-->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_FighterModule"]/stages/li/statOffsets/ShootingAccuracyPawn</xpath>
		<value>
			<ShootingAccuracyPawn>3</ShootingAccuracyPawn>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_FighterModule"]/stages/li/statOffsets</xpath>
		<value>
			<AimingAccuracy>1.5</AimingAccuracy>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_FighterModule"]/stages/li/statOffsets</xpath>
		<value>
			<ReloadSpeed>0.35</ReloadSpeed>
		</value>
	</Operation>

	<!--Melee-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_FighterModule"]/stages/li/statOffsets/MeleeHitChance</xpath>
		<value>
			<MeleeHitChance>15</MeleeHitChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_FighterModule"]/stages/li/statOffsets/MeleeDodgeChance</xpath>
		<value>
			<MeleeDodgeChance>0.2625</MeleeDodgeChance>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="ChjAndroidUpgrade_FighterModule"]/stages/li/statOffsets</xpath>
		<value>
			<MeleeParryChance>0.1875</MeleeParryChance>
		</value>
	</Operation>
</Patch>