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

	<!--Straps-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_BodyStrap"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>1</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<!--Worksuit-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_WorkSuit"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>2</StuffEffectMultiplierArmor>
			<Bulk>3</Bulk>
			<WornBulk>2</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_WorkSuit"]/equippedStatOffsets</xpath>
		<value>
			<CarryBulk>5</CarryBulk>
		</value>
	</Operation>

	<!--========= Fixed Armor Value =========-->

	<!--Bodysuit-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_BobySuit"]/statBases</xpath>
		<value>
			<Bulk>5</Bulk>
			<WornBulk>2</WornBulk>
		</value>
	</Operation>

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

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

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

	<!--Tactical Strap-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_TacticalStrap"]/statBases</xpath>
		<value>
			<Bulk>5</Bulk>
			<WornBulk>2</WornBulk>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_TacticalStrap"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>2.5</ArmorRating_Sharp>
			<ArmorRating_Electric>0.15</ArmorRating_Electric>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_TacticalStrap"]/equippedStatOffsets</xpath>
		<value>
			<CarryBulk>20</CarryBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_TacticalStrap"]/equippedStatOffsets/AimingDelayFactor</xpath>
		<value>
			<ReloadSpeed>0.1</ReloadSpeed>
			<AimingDelayFactor>-0.05</AimingDelayFactor>
		</value>
	</Operation>

	<!--Police Uniform-->

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

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

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

	<!--Exoskeleton-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_ExoSkeleton"]/statBases</xpath>
		<value>
			<Bulk>40</Bulk>
			<WornBulk>8</WornBulk>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_ExoSkeleton"]/equippedStatOffsets</xpath>
		<value>
			<CarryWeight>20</CarryWeight>
		</value>
	</Operation>

	<!--Officer Cape-->

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_OfficerCape"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>2</ArmorRating_Sharp>
			<ArmorRating_Electric>0.15</ArmorRating_Electric>
		</value>
	</Operation>

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

	<!--Combat Gear-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_TacticalGears"]/statBases</xpath>
		<value>
			<Bulk>50</Bulk>
			<WornBulk>12</WornBulk>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_TacticalGears"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>8</ArmorRating_Sharp>
			<ArmorRating_Electric>0.23</ArmorRating_Electric>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_TacticalGears"]/equippedStatOffsets/MoveSpeed</xpath>
		<value>
			<CarryBulk>5</CarryBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_TacticalGears"]/equippedStatOffsets/AimingDelayFactor</xpath>
		<value>
			<ReloadSpeed>0.1</ReloadSpeed>
			<AimingDelayFactor>-0.05</AimingDelayFactor>
		</value>
	</Operation>

	<!--Helmet-->

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_Helmet"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>8</ArmorRating_Sharp>
			<ArmorRating_Electric>0.23</ArmorRating_Electric>
		</value>
	</Operation>

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

	<!--Pan Hat-->

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_PanHat"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>2</ArmorRating_Sharp>
			<ArmorRating_Electric>0.10</ArmorRating_Electric>
		</value>
	</Operation>

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

	<!--Melee Mask-->

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_MeleeMask"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>4</ArmorRating_Sharp>
			<ArmorRating_Electric>0.10</ArmorRating_Electric>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_MeleeMask"]/apparel/layers/li[.="EyeCover"]</xpath>
		<value>
			<li>StrappedHead</li>
		</value>
	</Operation>

	<!--Sniper Mask-->

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_SniperMask"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>6</ArmorRating_Sharp>
			<ArmorRating_Electric>0.08</ArmorRating_Electric>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_SniperMask"]/apparel/layers/li[.="EyeCover"]</xpath>
		<value>
			<li>StrappedHead</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_SniperMask"]/equippedStatOffsets/ShootingAccuracyPawn</xpath>
		<value>
			<ShootingAccuracyPawn>2.5</ShootingAccuracyPawn>
			<AimingAccuracy>2.5</AimingAccuracy>
		</value>
	</Operation>

	<!--Gas Mask-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_GasMask"]/statBases</xpath>
		<value>
			<Bulk>5</Bulk>
			<WornBulk>2</WornBulk>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_GasMask"]/apparel/layers/li[.="Overhead"]</xpath>
		<value>
			<li>StrappedHead</li>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_GasMask"]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>Teeth</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<!--Gas Mask-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_TacticalHeadSet"]/statBases</xpath>
		<value>
			<Bulk>5</Bulk>
			<WornBulk>2</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_TacticalHeadSet"]/apparel/layers/li[.="Overhead"]</xpath>
		<value>
			<li>OnHead</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_TacticalHeadSet"]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>Teeth</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<!--Diving Gear-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_AbyssArmour"]/statBases</xpath>
		<value>
			<Bulk>125</Bulk>
			<WornBulk>15</WornBulk>
		</value>
	</Operation>

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

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_AbyssArmour"]/statBases/ArmorRating_Heat</xpath>
		<value>
			<ArmorRating_Heat>0.75</ArmorRating_Heat>
			<ArmorRating_Electric>0.50</ArmorRating_Electric>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_AbyssArmour"]/equippedStatOffsets/MoveSpeed</xpath>
		<value>
			<CarryWeight>110</CarryWeight>
			<CarryBulk>15</CarryBulk>
			<ToxicEnvironmentResistance>0.50</ToxicEnvironmentResistance>
			<MoveSpeed>-0.75</MoveSpeed>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_AbyssArmour"]/costList/Moyo_Abyssteel</xpath>
		<value>
			<Moyo_Abyssteel>216</Moyo_Abyssteel>
			<DevilstrandCloth>30</DevilstrandCloth>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="RedMoyo_AbyssArmour"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<ArmorRating_Sharp>0.80</ArmorRating_Sharp>
						<parts>
							<li>Neck</li>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.80</ArmorRating_Blunt>
						<parts>
							<li>Neck</li>
							<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>

	<!--Diving Helmet-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_AbyssHelmet"]/statBases</xpath>
		<value>
			<Bulk>6</Bulk>
			<WornBulk>5</WornBulk>
			<NightVisionEfficiency_Apparel>0.6</NightVisionEfficiency_Apparel>
		</value>
	</Operation>

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

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_AbyssHelmet"]/statBases/ArmorRating_Heat</xpath>
		<value>
			<ArmorRating_Heat>0.75</ArmorRating_Heat>
			<ArmorRating_Electric>0.50</ArmorRating_Electric>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="RedMoyo_AbyssHelmet"]/equippedStatOffsets</xpath>
		<value>
			<SmokeSensitivity>-1</SmokeSensitivity>
			<ToxicEnvironmentResistance>0.50</ToxicEnvironmentResistance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RedMoyo_AbyssHelmet"]/costList/Moyo_Abyssteel</xpath>
		<value>
			<Moyo_Abyssteel>135</Moyo_Abyssteel>
			<DevilstrandCloth>15</DevilstrandCloth>
		</value>
	</Operation>

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