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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="CAT_Apparel_CrossBikiniTop" or defName="CAT_Apparel_CrossBikiniBottom"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<Bulk>0.5</Bulk>
			<StuffEffectMultiplierArmor>1.0</StuffEffectMultiplierArmor>
		</value>
	</Operation>

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

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[
						defName="CAT_Apparel_ImperialDancerTop" or
						defName="CAT_Apparel_ImperialDancerBottom" or
						defName="CAT_Apparel_LuxuryLingerie" or
						defName="CAT_Apparel_LuxuryPanty"
						]/statBases/StuffEffectMultiplierArmor</xpath>
					<value>
						<Bulk>0.5</Bulk>
						<StuffEffectMultiplierArmor>1.0</StuffEffectMultiplierArmor>
					</value>
				</li>

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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[
			defName="CAT_PrestigeStellicKnightHelmet" or
			defName="CAT_PrestigeStellicKnightHelmetOpen" or
			defName="CAT_MagusHood" or
			defName="CAT_MagusHoodOpen"]</xpath>
		<value>
			<li Class="CombatExtended.ApparelDefExtension">
				<isRadioPack>true</isRadioPack>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PrestigeStellicKnightHelmet"]/statBases</xpath>
		<value>
			<Bulk>6</Bulk>
			<WornBulk>1</WornBulk>
			<NightVisionEfficiency_Apparel>0.75</NightVisionEfficiency_Apparel>
		</value>
	</Operation>

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

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

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

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PrestigeStellicKnightHelmet"]/equippedStatOffsets</xpath>
		<value>
			<AimingAccuracy>0.15</AimingAccuracy>
			<SmokeSensitivity>-1</SmokeSensitivity>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="CAT_PrestigeStellicKnightHelmet"]/costList/Plasteel</xpath>
		<value>
			<Plasteel>110</Plasteel>
			<DevilstrandCloth>25</DevilstrandCloth>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_PrestigeStellicKnightHelmet"]/apparel</xpath>
		<value>
			<immuneToToxGasExposure>true</immuneToToxGasExposure>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="CAT_PrestigeStellicKnightHelmet"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.90</ArmorRating_Sharp>
						<parts>
							<li>Eye</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.90</ArmorRating_Blunt>
						<parts>
							<li>Eye</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

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

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

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

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

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

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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="CAT_PrestigeStellicKnightHelmetOpen"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0</ArmorRating_Sharp>
						<parts>
							<li>Eye</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0</ArmorRating_Blunt>
						<parts>
							<li>Eye</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0</ArmorRating_Sharp>
						<parts>
							<li>Nose</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0</ArmorRating_Blunt>
						<parts>
							<li>Jaw</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="CAT_PrestigeStellicKnightArmor"]/statBases/Mass</xpath>
		<value>
			<Bulk>100</Bulk>
			<WornBulk>20</WornBulk>
			<Mass>80</Mass>
		</value>
	</Operation>

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

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

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

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

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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="CAT_PrestigeStellicKnightArmor"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.85</ArmorRating_Sharp>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.85</ArmorRating_Blunt>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="CAT_PrestigeStellicKnightArmor"]/equippedStatOffsets</xpath>
		<value>
			<equippedStatOffsets>
				<CarryWeight>100</CarryWeight>
				<CarryBulk>20</CarryBulk>
				<ShootingAccuracyPawn>0.15</ShootingAccuracyPawn>
				<ToxicEnvironmentResistance>0.5</ToxicEnvironmentResistance>
				<SocialImpact>0.2</SocialImpact>
				<PainShockThreshold>0.15</PainShockThreshold>
				<PsychicSensitivity>0.05</PsychicSensitivity>
				<PsychicEntropyRecoveryRate>0.033</PsychicEntropyRecoveryRate>
				<DecompressionResistance MayRequire="kentington.saveourship2">0.75</DecompressionResistance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="CAT_PrestigeStellicKnightArmor"]/costList</xpath>
		<value>
			<costList>
				<AIPersonaCore>1</AIPersonaCore>
				<Plasteel>250</Plasteel>
				<DevilstrandCloth>150</DevilstrandCloth>
				<Hyperweave>150</Hyperweave>
				<Uranium>100</Uranium>
				<ComponentSpacer>15</ComponentSpacer>
				<Gold>25</Gold>
			</costList>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_MagusHood"]/statBases</xpath>
		<value>
			<Bulk>5</Bulk>
			<WornBulk>1</WornBulk>
			<NightVisionEfficiency_Apparel>0.75</NightVisionEfficiency_Apparel>
		</value>
	</Operation>

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

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

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

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_MagusHood"]/equippedStatOffsets</xpath>
		<value>
			<AimingAccuracy>0.15</AimingAccuracy>
			<SmokeSensitivity>-1</SmokeSensitivity>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="CAT_MagusHood"]/costList/Plasteel</xpath>
		<value>
			<Plasteel>60</Plasteel>
			<DevilstrandCloth>10</DevilstrandCloth>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="CAT_MagusHood"]/apparel</xpath>
		<value>
			<immuneToToxGasExposure>true</immuneToToxGasExposure>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="CAT_MagusHood"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.90</ArmorRating_Sharp>
						<parts>
							<li>Eye</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.90</ArmorRating_Blunt>
						<parts>
							<li>Eye</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

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

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

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

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

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="CAT_MagusHoodOpen"]/costList/Plasteel</xpath>
		<value>
			<Plasteel>60</Plasteel>
			<DevilstrandCloth>10</DevilstrandCloth>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="CAT_MagusHoodOpen"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0</ArmorRating_Sharp>
						<parts>
							<li>Eye</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0</ArmorRating_Blunt>
						<parts>
							<li>Eye</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0</ArmorRating_Sharp>
						<parts>
							<li>Nose</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0</ArmorRating_Blunt>
						<parts>
							<li>Jaw</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

</Patch>