<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- ========== Armor ========== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_UACRavenArmor" or defName="Apparel_UACTrackerArmor" or defName="Apparel_UACFractalArmor" or defName="Apparel_UACLEETArmor" or defName="Apparel_UACSheperdArmor"]/statBases</xpath>
		<value>
			<Bulk>100</Bulk>
			<WornBulk>20</WornBulk>
			<Flammability>0</Flammability>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_UACRavenArmor" or defName="Apparel_UACTrackerArmor" or defName="Apparel_UACFractalArmor" or defName="Apparel_UACLEETArmor" or defName="Apparel_UACSheperdArmor"]/statBases/MaxHitPoints</xpath>
		<value>
			<MaxHitPoints>800</MaxHitPoints>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_UACRavenArmor" or defName="Apparel_UACTrackerArmor" or defName="Apparel_UACFractalArmor" or defName="Apparel_UACLEETArmor" or defName="Apparel_UACSheperdArmor"]/statBases/Mass</xpath>
		<value>
			<Mass>80</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_UACRavenArmor" or defName="Apparel_UACTrackerArmor" or defName="Apparel_UACFractalArmor" or defName="Apparel_UACLEETArmor" or defName="Apparel_UACSheperdArmor"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>30</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_UACRavenArmor" or defName="Apparel_UACTrackerArmor" or defName="Apparel_UACFractalArmor" or defName="Apparel_UACLEETArmor" or defName="Apparel_UACSheperdArmor"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>75</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_UACRavenArmor" or defName="Apparel_UACTrackerArmor" or defName="Apparel_UACFractalArmor" or defName="Apparel_UACLEETArmor" or defName="Apparel_UACSheperdArmor"]/equippedStatOffsets</xpath>
		<value>
			<CarryWeight>150</CarryWeight><!-- Has a built-in exoskeleton -->
			<CarryBulk>120</CarryBulk><!-- has a TacVest and backpack -->
			<ToxicEnvironmentResistance>0.50</ToxicEnvironmentResistance>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_UACRavenArmor" or defName="Apparel_UACTrackerArmor" or defName="Apparel_UACFractalArmor" or defName="Apparel_UACLEETArmor" or defName="Apparel_UACSheperdArmor"]/apparel/layers</xpath>
		<value>
			<li>Webbing</li>
		</value>
	</Operation>

	<!-- ========== Helmet ========== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_UACWildcatHelm" or defName="Apparel_UACSheperdHelm" or defName="Apparel_UACRavenHelm" or defName="Apparel_UACLEETHelm" or defName="Apparel_UACASPHelm"]/statBases</xpath>
		<value>
			<Bulk>7</Bulk>
			<WornBulk>1</WornBulk>
			<NightVisionEfficiency_Apparel>0.75</NightVisionEfficiency_Apparel>
			<Flammability>0</Flammability>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_UACWildcatHelm" or defName="Apparel_UACSheperdHelm" or defName="Apparel_UACRavenHelm" or defName="Apparel_UACLEETHelm" or defName="Apparel_UACASPHelm"]/statBases/Mass</xpath>
		<value>
			<Mass>6</Mass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_UACWildcatHelm" or defName="Apparel_UACSheperdHelm" or defName="Apparel_UACRavenHelm" or defName="Apparel_UACLEETHelm" or defName="Apparel_UACASPHelm"]/statBases/MaxHitPoints</xpath>
		<value>
			<MaxHitPoints>300</MaxHitPoints>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_UACWildcatHelm" or defName="Apparel_UACSheperdHelm" or defName="Apparel_UACRavenHelm" or defName="Apparel_UACLEETHelm" or defName="Apparel_UACASPHelm"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>24</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_UACWildcatHelm" or defName="Apparel_UACSheperdHelm" or defName="Apparel_UACRavenHelm" or defName="Apparel_UACLEETHelm" or defName="Apparel_UACASPHelm"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>60</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="Apparel_UACWildcatHelm" or defName="Apparel_UACSheperdHelm" or defName="Apparel_UACRavenHelm" or defName="Apparel_UACLEETHelm" or defName="Apparel_UACASPHelm"]/apparel/immuneToToxGasExposure</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="Apparel_UACWildcatHelm" or defName="Apparel_UACSheperdHelm" or defName="Apparel_UACRavenHelm" or defName="Apparel_UACLEETHelm" or defName="Apparel_UACASPHelm"]/apparel</xpath>
			<value>
				<immuneToToxGasExposure>true</immuneToToxGasExposure>
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_UACWildcatHelm" or defName="Apparel_UACSheperdHelm" or defName="Apparel_UACRavenHelm" or defName="Apparel_UACLEETHelm" or defName="Apparel_UACASPHelm"]/equippedStatOffsets</xpath>
		<value>
			<equippedStatOffsets>
				<AimingAccuracy>0.15</AimingAccuracy>
				<ToxicEnvironmentResistance>0.50</ToxicEnvironmentResistance>
				<SmokeSensitivity>-1</SmokeSensitivity>
				<MoveSpeed>-0.02</MoveSpeed>
				<ShootingAccuracyPawn>0.40</ShootingAccuracyPawn>
				<AimingDelayFactor>-0.10</AimingDelayFactor>
				<MentalBreakThreshold>-0.04</MentalBreakThreshold>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_UACWildcatHelm" or defName="Apparel_UACSheperdHelm" or defName="Apparel_UACRavenHelm" or defName="Apparel_UACLEETHelm" or defName="Apparel_UACASPHelm"]/apparel/layers</xpath>
		<value>
			<li>OnHead</li>
			<li>StrappedHead</li>
		</value>
	</Operation>

	<!-- ========== Praetor Suit ========== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_DOOMPraetorSuit"]/statBases</xpath>
		<value>
			<Bulk>100</Bulk>
			<WornBulk>20</WornBulk>
			<Flammability>0</Flammability>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_DOOMPraetorSuit"]/statBases/Mass</xpath>
		<value>
			<Mass>60</Mass>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_DOOMPraetorSuit"]/equippedStatOffsets</xpath>
		<value>
			<equippedStatOffsets>
				<CarryWeight>150</CarryWeight><!-- Built-in exoskeleton -->
				<CarryBulk>150</CarryBulk><!-- has a TacVest and backpack -->
				<ToxicEnvironmentResistance>0.50</ToxicEnvironmentResistance>
				<MoveSpeed>1</MoveSpeed>
				<MeleeHitChance>1</MeleeHitChance>
				<MeleeDodgeChance>1</MeleeDodgeChance>
				<MedicalTendQualityOffset>0.25</MedicalTendQualityOffset>
				<AimingDelayFactor>-0.10</AimingDelayFactor>
				<ShootingAccuracyPawn>0.10</ShootingAccuracyPawn>
				<MentalBreakThreshold>-0.07</MentalBreakThreshold>
				<WorkSpeedGlobal>1</WorkSpeedGlobal>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_DOOMPraetorSuit"]/apparel/layers</xpath>
		<value>
			<li>Webbing</li>
		</value>
	</Operation>

	<!-- ========== Praetor Helmet & DOOMGuy Helmet ========== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_DOOMPraetorHelm" or defName="Apparel_DOOMGuyHelm"]/statBases</xpath>
		<value>
			<Bulk>7</Bulk>
			<WornBulk>1</WornBulk>
			<NightVisionEfficiency_Apparel>0.75</NightVisionEfficiency_Apparel>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_DOOMPraetorHelm" or defName="Apparel_DOOMGuyHelm"]/statBases/Mass</xpath>
		<value>
			<Mass>6.2</Mass>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_DOOMPraetorHelm" or defName="Apparel_DOOMGuyHelm"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>26</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_DOOMPraetorHelm" or defName="Apparel_DOOMGuyHelm"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>60</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="Apparel_DOOMPraetorHelm" or defName="Apparel_DOOMGuyHelm"]/apparel/immuneToToxGasExposure</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="Apparel_DOOMPraetorHelm" or defName="Apparel_DOOMGuyHelm"]/apparel</xpath>
			<value>
				<immuneToToxGasExposure>true</immuneToToxGasExposure>
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_DOOMPraetorHelm" or defName="Apparel_DOOMGuyHelm"]/equippedStatOffsets</xpath>
		<value>
			<equippedStatOffsets>
				<ShootingAccuracyPawn>0.30</ShootingAccuracyPawn>
				<AimingDelayFactor>-0.05</AimingDelayFactor>
				<MentalBreakThreshold>-0.04</MentalBreakThreshold>
				<AimingAccuracy>0.15</AimingAccuracy>
				<ToxicEnvironmentResistance>0.50</ToxicEnvironmentResistance>
				<SmokeSensitivity>-1</SmokeSensitivity>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_DOOMPraetorHelm" or defName="Apparel_DOOMGuyHelm"]/apparel/layers</xpath>
		<value>
			<li>OnHead</li>
			<li>StrappedHead</li>
		</value>
	</Operation>

	<!-- ========== Apparel ========== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_UACCsuit" or defName="Apparel_UACVIPSuit" or defName="Apparel_UACBusinessSuit" or defName="Apparel_UACLabcoat"]/statBases</xpath>
		<value>
			<Bulk>4</Bulk>
			<WornBulk>2</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_UACCsuit" or defName="Apparel_UACLabcoat"]/statBases</xpath>
		<value>
			<StuffEffectMultiplierArmor>2</StuffEffectMultiplierArmor><!-- Slightly tougher than vanilla pants, T-shirt and button-down shirt -->
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_UACVIPSuit" or defName="Apparel_UACBusinessSuit"]/statBases</xpath>
		<value>
			<StuffEffectMultiplierArmor>4</StuffEffectMultiplierArmor><!-- Slightly tougher than vanilla pants, T-shirt and button-down shirt -->
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_UACVIPSuit" or defName="Apparel_UACBusinessSuit"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>26</ArmorRating_Blunt><!-- Slightly tougher than vanilla pants, T-shirt and button-down shirt -->
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_UACShades"]/statBases</xpath>
		<value>
			<Bulk>1</Bulk>
			<WornBulk>0.5</WornBulk>
		</value>
	</Operation>

</Patch>