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

	<!-- ========== Traders ammo stock ========== -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/TraderKindDef[
			defName="RHVisitor_141_Standard" or
			defName="RHBase_141_Standard" or
			defName="RHCaravan_141_MilitiaSupplier"
			]/stockGenerators </xpath>
		<value>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_Ammo</tradeTag>
				<countRange>
					<min>1000</min>
					<max>3000</max>
				</countRange>
				<price>Cheap</price>
				<thingDefCountRange>
					<min>5</min>
					<max>12</max>
				</thingDefCountRange>
			</li>
		</value>
	</Operation>

	<!-- ========== Weapon money ========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[
			defName="RH2_141_FNG" or
			defName="RH2_141_Gunner" or
			defName="RH2_141_Assault" or
			defName="RH2_141_Trader"
			]/weaponMoney/min </xpath>
		<value>
			<min>550</min>
		</value>
	</Operation>

	<!-- ========== Apparel, Webbing ========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[@Name="RH2_141_SpecialBase"]/specificApparelRequirements/li[1]</xpath>
		<value>
			<li>
				<bodyPartGroup>Eyes</bodyPartGroup>
				<apparelLayer>StrappedHead</apparelLayer>
				<stuff>Plasteel</stuff>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/PawnKindDef[
			@Name="RH2_Operator_NonEliteTierBase" or
			@Name="RH2_141_EliteTierBase" or
			@Name="RH2_141_BossTierBase" or
			@Name="RH2_141_SoapTierBase" or
			defName="RH2_141_Trader"
			]/apparelTags </xpath>
		<value>
			<li>RH2_XBelt_141</li>
			<li>RH2_Backpack_141</li>
		</value>
	</Operation>

	<!-- ========== Ammo ========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="RH2_141_EliteGunner"]/weaponTags</xpath>
		<value>
			<weaponTags>
				<li>RN_Coalition_MG</li>
				<li>RNGun_FNMinimi762</li>
			</weaponTags>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[
			defName="RH2_141_EliteGunner" or
			defName="RH2_141_Gunner"
			] </xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>2</min>
					<max>3</max>
				</primaryMagazineCount>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[
			defName="RH2_141_Trader" or
			defName="RH2_141_FNG" or
			defName="RH2_141_Assault" or
			defName="RH2_141_Sharpshooter" or
			defName="RH2_141_Boss" or
			defName="RH2_141_Elite"
			] </xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>4</min>
					<max>7</max>
				</primaryMagazineCount>
				<sidearms>
					<li>
						<generateChance>0.15</generateChance>
						<sidearmMoney>
							<min>10</min>
							<max>100</max>
						</sidearmMoney>
						<weaponTags>
							<li>GrenadeSmoke</li>
						</weaponTags>
						<magazineCount>
							<min>1</min>
							<max>2</max>
						</magazineCount>
					</li>
					<li>
						<generateChance>0.075</generateChance>
						<sidearmMoney>
							<min>50</min>
							<max>200</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_FlareLauncher</li>
						</weaponTags>
						<magazineCount>
							<min>2</min>
							<max>4</max>
						</magazineCount>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

</Patch>