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

	<!-- Stranger -->
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="Stranger"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>3</min>
					<max>6</max>
				</primaryMagazineCount>
			</li>
		</value>
	</Operation>

	<!-- Riot Armor -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ZSP_EliteRiotArmor" or defName="ZSP_StuffableEliteRiotArmor"]/equippedStatOffsets</xpath>
		<value>
			<CarryBulk>10</CarryBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ZSP_EliteRiotArmor" or defName="ZSP_StuffableEliteRiotArmor"]/statBases</xpath>
		<value>
			<Bulk>40</Bulk>
			<WornBulk>15</WornBulk>
		</value>
	</Operation>

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

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

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

	<!-- Riot Helmet -->

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

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ZSP_StuffableEliteRiotHelmet" or defName= "ZSP_EliteRiotHelmet"]/statBases</xpath>
		<value>
			<Bulk>4</Bulk>
			<NightVisionEfficiency_Apparel>0.6</NightVisionEfficiency_Apparel>
		</value>
	</Operation>

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

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

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

	<!-- Riot Armor Jacket -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ZSP_StuffableEliteRiotJacket" or defName="ZSP_EliteRiotJacket"]/equippedStatOffsets</xpath>
		<value>
			<CarryBulk>10</CarryBulk>
		</value>
	</Operation>

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

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

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

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

</Patch>