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

	<!--Tribalwear-->

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

	<!--Shirt And boots-->

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

	<!--Straps-->

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

	<!--Parka-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Moyo_Parka"]/statBases</xpath>
		<value>
			<Bulk>10</Bulk>
			<WornBulk>3</WornBulk>
		</value>
	</Operation>

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

	<!--Jacket/Duster-->

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Moyo_Jacket" or
			defName="Moyo_Duster"
			]/statBases/StuffEffectMultiplierArmor </xpath>
		<value>
			<StuffEffectMultiplierArmor>5</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<!--Cowboy/Bowler/Tuque-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Moyo_Tuque" or
			defName="Moyo_CowboyHat" or
			defName="Moyo_BowlerHat"
			]/statBases/StuffEffectMultiplierArmor </xpath>
		<value>
			<StuffEffectMultiplierArmor>2</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Moyo_Tuque" or
			defName="Moyo_CowboyHat" or
			defName="Moyo_BowlerHat"]/apparel/layers </xpath>
		<value>
			<layers>
				<li>Overhead</li>
			</layers>
		</value>
	</Operation>

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

	<!--Bodysuit-->

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Moyo_Bodysuit"]/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="Moyo_Bodysuit"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>0.3</ArmorRating_Blunt>
		</value>
	</Operation>

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

	<!--Engineering Suit-->

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

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

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

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

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

	<!--Engineering Mask-->

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Moyo_EGmask"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>5</ArmorRating_Sharp>
			<ArmorRating_Electric>0.25</ArmorRating_Electric>
		</value>
	</Operation>

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

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

	<!--Suppressive Mask-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Moyo_PShelmet" or defName="Moyo_SShelmet"]/statBases</xpath>
		<value>
			<Bulk>4</Bulk>
			<WornBulk>1</WornBulk>
			<NightVisionEfficiency_Apparel>0.4</NightVisionEfficiency_Apparel>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Moyo_PShelmet" or defName="Moyo_SShelmet"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>8</ArmorRating_Sharp>
			<ArmorRating_Electric>0.25</ArmorRating_Electric>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Moyo_PShelmet" or defName="Moyo_SShelmet"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>12</ArmorRating_Blunt>
		</value>
	</Operation>

	<!--Evasuit-->

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

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

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

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

	<!--Deepdiving Gear-->

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

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

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

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Moyo_DDgear"]/equippedStatOffsets</xpath>
		<value>
			<CarryWeight>85</CarryWeight>
			<CarryBulk>10</CarryBulk>
			<ToxicEnvironmentResistance>0.50</ToxicEnvironmentResistance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Moyo_DDgear"]/costList/Moyo_Abyssteel</xpath>
		<value>
			<Moyo_Abyssteel>190</Moyo_Abyssteel>
			<DevilstrandCloth>40</DevilstrandCloth>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="Moyo_PowerArmorBase"]/apparel/bodyPartGroups</xpath>
		<value>
			<li>Hands</li>
			<li>Feet</li>
		</value>
	</Operation>

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

	<!--Deepdiving Helmet-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Moyo_DDhelmet"]/statBases</xpath>
		<value>
			<Bulk>6</Bulk>
			<WornBulk>3</WornBulk>
			<NightVisionEfficiency_Apparel>0.4</NightVisionEfficiency_Apparel>
		</value>
	</Operation>

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

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

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

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

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Moyo_DDhelmet"]/costList/Moyo_Abyssteel</xpath>
		<value>
			<Moyo_Abyssteel>60</Moyo_Abyssteel>
			<DevilstrandCloth>20</DevilstrandCloth>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="Moyo_PowerHelmetBase"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>OnHead</li>
				<li>StrappedHead</li>
				<li>Overhead</li>
			</layers>
		</value>
	</Operation>

	<!--Diving Gear-->

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Moyo_LDgear"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>14</ArmorRating_Sharp>
			<ArmorRating_Electric>0.50</ArmorRating_Electric>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Moyo_LDgear"]</xpath>
		<value>
			<equippedStatOffsets>
				<CarryWeight>75</CarryWeight>
				<CarryBulk>10</CarryBulk>
				<ToxicEnvironmentResistance>0.50</ToxicEnvironmentResistance>
			</equippedStatOffsets>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="Moyo_LDgear"]</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>Leg</li>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.90</ArmorRating_Blunt>
						<parts>
							<li>Leg</li>
							<li>Arm</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Sharp>0.80</ArmorRating_Sharp>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
					<li>
						<ArmorRating_Blunt>0.80</ArmorRating_Blunt>
						<parts>
							<li>Hand</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<!--Diving Helmet-->

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Moyo_LDhelmet"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>12</ArmorRating_Sharp>
			<ArmorRating_Electric>0.35</ArmorRating_Electric>
		</value>
	</Operation>

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

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

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

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

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

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