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

	<!-- ==========  Unisuit =========== -->

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

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

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

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

	<!-- ==========  Smart Visor =========== -->

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_SmartVisor"]/statBases</xpath>
		<value>
			<NightVisionEfficiency_Apparel>0.80</NightVisionEfficiency_Apparel>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAttributeAdd">
		<xpath>Defs/ThingDef[defName="Apparel_SmartVisor"]/costList</xpath>
		<attribute>Inherit</attribute>
		<value>false</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_SmartVisor"]/equippedStatOffsets</xpath>
		<value>
			<equippedStatOffsets Inherit="False">
				<AimingAccuracy>0.3</AimingAccuracy>
				<AimingDelayFactor>-0.25</AimingDelayFactor>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_SmartVisor"]/apparel</xpath>
		<value>
			<layers Inherit="False">
				<li>StrappedHead</li>
			</layers>
		</value>
	</Operation>
	
	<!-- ========== Data Glasses =========== -->

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

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

	<Operation Class="PatchOperationAttributeAdd">
		<xpath>Defs/ThingDef[defName="Apparel_DataGlasses"]/costList</xpath>
		<attribute>Inherit</attribute>
		<value>false</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparel_DataGlasses"]/equippedStatOffsets</xpath>
		<value>
			<equippedStatOffsets Inherit="False">
				<ResearchSpeed>0.25</ResearchSpeed>
				<SocialImpact>0.25</SocialImpact>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparel_DataGlasses"]/apparel</xpath>
		<value>
			<layers Inherit="False">
				<li>StrappedHead</li>
			</layers>
		</value>
	</Operation>
	
	<!-- ========== Foam Pack ========== -->

	<Operation Class="PatchOperationAdd" MayRequire="rimsenal.EVP">
		<xpath>Defs/ThingDef[defName="Apparel_OmnifoamPack"]/statBases</xpath>
		<value>
			<Bulk>10</Bulk>
			<WornBulk>2</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace" MayRequire="rimsenal.EVP">
		<xpath>Defs/ThingDef[defName="Apparel_OmnifoamPack"]/verbs</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<label>deploy omnifoam</label>
					<verbClass>CombatExtended.Verb_LaunchProjectileStaticCE</verbClass>
					<warmupTime>0.5</warmupTime>
					<range>8</range>
					<burstShotCount>1</burstShotCount>
					<onlyManualCast>true</onlyManualCast>
					<hasStandardCommand>true</hasStandardCommand>
					<targetable>true</targetable>
					<violent>false</violent>
					<range>25</range>
					<soundCast>Shot_IncendiaryLauncher</soundCast>
					<soundCastTail>GunTail_Medium</soundCastTail>
					<muzzleFlashScale>14</muzzleFlashScale>
					<targetParams>
						<canTargetPawns>false</canTargetPawns>
						<canTargetBuildings>false</canTargetBuildings>
						<canTargetLocations>true</canTargetLocations>
					</targetParams>
					<defaultProjectile>Proj_Omnifoam</defaultProjectile>
					<rangedFireRulepack>Combat_RangedFire_Thrown</rangedFireRulepack>
					<canGoWild>false</canGoWild>
				</li>
			</verbs>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace" MayRequire="rimsenal.EVP">
		<xpath>Defs/ThingDef[defName="Proj_Omnifoam"]/thingClass</xpath>
		<value>
			<thingClass>CombatExtended.ProjectileCE_SpawnsThing</thingClass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace" MayRequire="rimsenal.EVP">
		<xpath>Defs/ThingDef[defName="Proj_Omnifoam"]/projectile</xpath>
		<value>
			<projectile Class="CombatExtended.ProjectilePropertiesCE">
				<dropsCasings>false</dropsCasings>
				<dangerFactor>0</dangerFactor>
				<airborneSuppressionFactor>0</airborneSuppressionFactor>
				<speed>12</speed>
				<spawnsThingDef>Omnifoam_chunk</spawnsThingDef>
				<tryAdjacentFreeSpaces>true</tryAdjacentFreeSpaces>
			</projectile>
		</value>
	</Operation>

</Patch>