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

	<!-- === Armor Layers === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarArmor" or defName="RE_Apparel_AsariCommandoArmor"]/apparel/layers</xpath>
		<value>
			<li>Webbing</li>
		</value>
	</Operation>

	<!-- === Justicar Crown === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarCrown"]/statBases</xpath>
		<value>
			<Bulk>3</Bulk>
			<NightVisionEfficiency_Apparel>0.7</NightVisionEfficiency_Apparel>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarCrown"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>1.5</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarCrown"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>1.5</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarCrown"]/statBases/Flammability</xpath>
		<value>
			<Flammability>0.1</Flammability>
		</value>
	</Operation>

	<!-- === Commando Armor (Middle layer only) === -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariCommandoArmor"]/statBases/Mass</xpath>
		<value>
			<Bulk>10</Bulk>
			<WornBulk>2</WornBulk>
			<Mass>5.5</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariCommandoArmor"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>9</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariCommandoArmor"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>14</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariCommandoArmor"]/statBases/MaxHitPoints</xpath>
		<value>
			<MaxHitPoints>260</MaxHitPoints>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariCommandoArmor"]/statBases/Flammability</xpath>
		<value>
			<Flammability>0.2</Flammability>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariCommandoArmor"]/equippedStatOffsets</xpath>
		<value>
			<CarryWeight>10</CarryWeight>
			<CarryBulk>30</CarryBulk>
			<ShootingAccuracyPawn>0.1</ShootingAccuracyPawn>
			<AimingDelayFactor>-0.075</AimingDelayFactor>
			<ToxicEnvironmentResistance>0.3</ToxicEnvironmentResistance>
			<MoveSpeed>0.4</MoveSpeed>
			<ReloadSpeed>0.15</ReloadSpeed>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariCommandoArmor"]/apparel/bodyPartGroups</xpath>
		<value>
			<li>Feet</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariCommandoArmor"]/costList</xpath>
		<value>
			<costList>
				<ComponentSpacer>3</ComponentSpacer>
				<Plasteel>50</Plasteel>
				<RE_ElementZero>10</RE_ElementZero>
				<DevilstrandCloth>25</DevilstrandCloth>
			</costList>
		</value>
	</Operation>

	<!-- === Justicar Armor === -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarArmor"]</xpath>
		<value>
			<thingClass>RimEffect.ShieldBeltApparel</thingClass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarArmor"]/statBases/Mass</xpath>
		<value>
			<Bulk>30</Bulk>
			<WornBulk>5</WornBulk>
			<Mass>12</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarArmor"]/statBases/Flammability</xpath>
		<value>
			<Flammability>0.1</Flammability>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarArmor"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>16</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarArmor"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>32</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarArmor"]/statBases/MaxHitPoints</xpath>
		<value>
			<MaxHitPoints>400</MaxHitPoints>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarArmor"]/equippedStatOffsets</xpath>
		<value>
			<CarryWeight>20</CarryWeight>
			<CarryBulk>40</CarryBulk>
			<ShootingAccuracyPawn>0.05</ShootingAccuracyPawn>
			<ToxicEnvironmentResistance>0.3</ToxicEnvironmentResistance>
			<ReloadSpeed>0.1</ReloadSpeed>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarArmor"]/apparel/bodyPartGroups</xpath>
		<value>
			<li>Hands</li>
			<li>Feet</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarArmor"]/costList</xpath>
		<value>
			<costList>
				<ComponentSpacer>5</ComponentSpacer>
				<Plasteel>80</Plasteel>
				<RE_ElementZero>35</RE_ElementZero>
				<DevilstrandCloth>50</DevilstrandCloth>
			</costList>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarArmor"]/comps</xpath>
		<value>
			<li Class="VEF.Apparels.CompProperties_ShieldBubble">
				<blockRangedAttack>true</blockRangedAttack>
				<blockMeleeAttack>false</blockMeleeAttack>
				<showWhenDrafted>true</showWhenDrafted>
				<showOnHostiles>true</showOnHostiles>
				<showOnNeutralInCombat>true</showOnNeutralInCombat>
				<shieldTexPath>UI/AbilityShields/ShieldTech</shieldTexPath>
				<EnergyShieldRechargeRate>0.2</EnergyShieldRechargeRate>
				<EnergyShieldEnergyMax>100</EnergyShieldEnergyMax>
				<minShieldSize>1</minShieldSize>
				<maxShieldSize>1.5</maxShieldSize>
				<disableRotation>true</disableRotation>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="RE_Apparel_AsariJusticarArmor"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.80</ArmorRating_Sharp>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.80</ArmorRating_Blunt>
						<parts>
							<li>Neck</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.90</ArmorRating_Sharp>
						<parts>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.90</ArmorRating_Blunt>
						<parts>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.70</ArmorRating_Sharp>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.70</ArmorRating_Blunt>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

</Patch>