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

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/HediffDef[defName="AC_PainProtection"]/stages/li/statFactors</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/HediffDef[defName="AC_PainProtection"]/stages/li</xpath>
			<value>
				<statFactors />
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/HediffDef[defName="AC_PainProtection"]/stages/li/statFactors</xpath>
		<value>
			<Suppressability>0.5</Suppressability>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/HediffDef[defName="AC_RogianArmBlade"]/comps/li[@Class="AlteredCarbon.HediffCompProperties_MeleeWeapon"]/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>2</cooldownTime>
					<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
					<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
					<soundMeleeHit>MeleeHit_BionicSlash</soundMeleeHit>
					<soundMeleeMiss>MeleeMiss_BionicSlash</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>2</cooldownTime>
					<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
					<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
					<soundMeleeHit>MeleeHit_BionicSlash</soundMeleeHit>
					<soundMeleeMiss>MeleeMiss_BionicSlash</soundMeleeMiss>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Royalty</li>
		</mods>
		<match Class="PatchOperationSequence">
			<operations>

			<li Class="PatchOperationReplace">
				<xpath>Defs/HediffDef[defName="AC_RogianArmBlade_Mono"]/comps/li[@Class="AlteredCarbon.HediffCompProperties_MeleeWeapon"]/tools</xpath>
				<value>
					<tools>
						<li Class="CombatExtended.ToolCE">
							<label>edge</label>
							<capacities>
								<li>Cut</li>
							</capacities>
							<power>25</power>
							<cooldownTime>1.5</cooldownTime>
							<armorPenetrationBlunt>2.88</armorPenetrationBlunt>
							<armorPenetrationSharp>13.5</armorPenetrationSharp>
							<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
							<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							<soundMeleeHit>MeleeHit_MonoSword</soundMeleeHit>
							<soundMeleeMiss>MeleeMiss_BionicSlash</soundMeleeMiss>
						</li>
						<li Class="CombatExtended.ToolCE">
							<label>point</label>
							<capacities>
								<li>Stab</li>
							</capacities>
							<power>12</power>
							<cooldownTime>1.5</cooldownTime>
							<armorPenetrationBlunt>1.28</armorPenetrationBlunt>
							<armorPenetrationSharp>18.75</armorPenetrationSharp>
							<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
							<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							<soundMeleeHit>MeleeHit_MonoSword</soundMeleeHit>
							<soundMeleeMiss>MeleeMiss_BionicSlash</soundMeleeMiss>
						</li>
					</tools>
				</value>
			</li>

			<li Class="PatchOperationReplace">
				<xpath>Defs/HediffDef[defName="AC_RogianArmBlade_Plasma"]/comps/li[@Class="AlteredCarbon.HediffCompProperties_MeleeWeapon"]/tools</xpath>
				<value>
					<tools>
						<li Class="CombatExtended.ToolCE">
							<label>edge</label>
							<capacities>
								<li>Cut</li>
							</capacities>
							<power>25</power>
							<extraMeleeDamages>
								<li>
									<def>Flame</def>
									<amount>5</amount>
									<chance>0.3</chance>
								</li>
							</extraMeleeDamages>
							<cooldownTime>2</cooldownTime>
							<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							<armorPenetrationBlunt>3.06</armorPenetrationBlunt>
							<armorPenetrationSharp>18</armorPenetrationSharp>
							<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
							<soundMeleeHit>MeleeHit_PlasmaSword</soundMeleeHit>
							<soundMeleeMiss>MeleeMiss_BionicSlash</soundMeleeMiss>
						</li>
						<li Class="CombatExtended.ToolCE">
							<label>point</label>
							<capacities>
								<li>Stab</li>
							</capacities>
							<power>12</power>
							<extraMeleeDamages>
								<li>
									<def>Flame</def>
									<amount>3</amount>
									<chance>0.2</chance>
								</li>
							</extraMeleeDamages>
							<cooldownTime>2</cooldownTime>
							<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							<armorPenetrationBlunt>0.9</armorPenetrationBlunt>
							<armorPenetrationSharp>24</armorPenetrationSharp>
							<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
							<soundMeleeHit>MeleeHit_PlasmaSword</soundMeleeHit>
							<soundMeleeMiss>MeleeMiss_BionicSlash</soundMeleeMiss>
						</li>
					</tools>
				</value>
			</li>

			<li Class="PatchOperationReplace">
				<xpath>Defs/HediffDef[defName="AC_RogianArmBlade_Zeus"]/comps/li[@Class="AlteredCarbon.HediffCompProperties_MeleeWeapon"]/tools</xpath>
				<value>
					<tools>
						<li Class="CombatExtended.ToolCE">
							<label>edge</label>
							<capacities>
								<li>Cut</li>
							</capacities>
							<power>25</power>
							<extraMeleeDamages>
								<li>
									<def>EMP</def>
									<amount>5</amount>
								</li>
							</extraMeleeDamages>
							<cooldownTime>2</cooldownTime>
							<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							<armorPenetrationBlunt>4.06</armorPenetrationBlunt>
							<armorPenetrationSharp>18</armorPenetrationSharp>
							<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
							<soundMeleeHit>MeleeHit_ZeusHammer</soundMeleeHit>
							<soundMeleeMiss>MeleeMiss_BionicSlash</soundMeleeMiss>
						</li>
						<li Class="CombatExtended.ToolCE">
							<label>point</label>
							<capacities>
								<li>Stab</li>
							</capacities>
							<power>12</power>
							<extraMeleeDamages>
								<li>
									<def>EMP</def>
									<amount>5</amount>
								</li>
							</extraMeleeDamages>
							<cooldownTime>2</cooldownTime>
							<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							<armorPenetrationBlunt>0.9</armorPenetrationBlunt>
							<armorPenetrationSharp>24</armorPenetrationSharp>
							<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
							<soundMeleeHit>MeleeHit_ZeusHammer</soundMeleeHit>
							<soundMeleeMiss>MeleeMiss_BionicSlash</soundMeleeMiss>
						</li>
					</tools>
				</value>
			</li>

			</operations>
		</match>
	</Operation>

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Vanilla Factions Expanded - Empire</li>
		</mods>
		<match Class="PatchOperationSequence">
			<operations>

			<li Class="PatchOperationReplace">
				<xpath>Defs/HediffDef[defName="AC_RogianArmBlade_Toxblade"]/comps/li[@Class="AlteredCarbon.HediffCompProperties_MeleeWeapon"]/tools</xpath>
				<value>
					<tools>
						<li Class="CombatExtended.ToolCE">
							<label>edge</label>
							<capacities>
								<li>VFEE_CutToxblade</li>
							</capacities>
							<power>14</power>
							<cooldownTime>1.4</cooldownTime>
							<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							<armorPenetrationBlunt>4.06</armorPenetrationBlunt>
							<armorPenetrationSharp>9</armorPenetrationSharp>
							<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
							<soundMeleeHit>MeleeHit_MonoSword</soundMeleeHit>
							<soundMeleeMiss>MeleeMiss_BionicSlash</soundMeleeMiss>
						</li>
						<li Class="CombatExtended.ToolCE">
							<label>point</label>
							<capacities>
								<li>VFEE_StabToxblade</li>
							</capacities>
							<power>14</power>
							<cooldownTime>1.4</cooldownTime>
							<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							<armorPenetrationBlunt>0.9</armorPenetrationBlunt>
							<armorPenetrationSharp>13</armorPenetrationSharp>
							<linkedBodyPartsGroup>Blade</linkedBodyPartsGroup>
							<soundMeleeHit>MeleeHit_MonoSword</soundMeleeHit>
							<soundMeleeMiss>MeleeMiss_BionicSlash</soundMeleeMiss>
						</li>
					</tools>
				</value>
			</li>

			</operations>
		</match>
	</Operation>
</Patch>