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

	<!-- ========== Give ammo to Mutant ranged PawnKinds. ========== -->
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[
			defName="Mutant_Archer" or
			defName="Mutant_Hunter" or
			defName="Mutant_HeavyArcher" or
			defName="Mutant_ChiefRanged"]
		</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>3</min>
					<max>6</max>
				</primaryMagazineCount>
				<forcedSidearm>
					<sidearmMoney>
						<min>150</min>
						<max>350</max>
					</sidearmMoney>
					<weaponTags>
						<li>NeolithicMeleeBasic</li>
					</weaponTags>
				</forcedSidearm>
			</li>
		</value>
	</Operation>

	<!-- ========== Vaulter ========== -->

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="RW_Vault_Villager" or defName="RW_Vault_Town_Trader" or defName="RW_Vault_Town_Councilman"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>1</min>
					<max>2</max>
				</primaryMagazineCount>
				<sidearms>
					<li>
						<generateChance>0.5</generateChance>
						<sidearmMoney>
							<min>20</min>
							<max>120</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Melee</li>
						</weaponTags>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="RW_Vault_Town_Guard"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>3</min>
					<max>5</max>
				</primaryMagazineCount>
				<sidearms>
					<li>
						<generateChance>0.5</generateChance>
						<sidearmMoney>
							<min>20</min>
							<max>120</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Melee</li>
						</weaponTags>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<!-- ========== Vaulter Mercenary ========== -->

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="RW_Vault_Grenadier_Destructive"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>10</min>
					<max>30</max>
				</primaryMagazineCount>
				<shieldMoney>
					<min>200</min>
					<max>600</max>
				</shieldMoney>
				<shieldTags>
					<li>OutlanderShield</li>
				</shieldTags>
				<shieldChance>0.5</shieldChance>
				<forcedSidearm>
					<sidearmMoney>
						<min>150</min>
						<max>350</max>
					</sidearmMoney>
					<weaponTags>
						<li>CE_Sidearm_Melee</li>
					</weaponTags>
				</forcedSidearm>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="RW_Vault_Grenadier_EMP"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>10</min>
					<max>30</max>
				</primaryMagazineCount>
				<forcedSidearm>
					<sidearmMoney>
						<min>100</min>
						<max>250</max>
					</sidearmMoney>
					<weaponTags>
						<li>CE_Sidearm</li>
					</weaponTags>
					<magazineCount>
						<min>2</min>
						<max>5</max>
					</magazineCount>
				</forcedSidearm>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="RW_Vault_Grenadier_EMP"]/label</xpath>
		<value>
			<label>vault advanced grenadier</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/PawnKindDef[defName="RW_Vault_Grenadier_EMP"]/weaponTags</xpath>
		<value>
			<li>CE_GrenadeFlashbang</li>
			<li>GrenadeSmoke</li>
			<li>GrenadeDestructive</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="RW_Vault_Grenadier_Smoke"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>10</min>
					<max>30</max>
				</primaryMagazineCount>
				<forcedSidearm>
					<sidearmMoney>
						<min>100</min>
						<max>250</max>
					</sidearmMoney>
					<weaponTags>
						<li>CE_Sidearm</li>
					</weaponTags>
					<magazineCount>
						<min>2</min>
						<max>5</max>
					</magazineCount>
				</forcedSidearm>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="RW_Vault_Grenadier_Smoke"]/label</xpath>
		<value>
			<label>vault advanced grenadier</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/PawnKindDef[defName="RW_Vault_Grenadier_Smoke"]/weaponTags</xpath>
		<value>
			<li>CE_GrenadeFlashbang</li>
			<li>GrenadeSmoke</li>
			<li>GrenadeDestructive</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="RW_Vault_Mercenary_Gunner" or defName="RW_Vault_Mercenary_Gunner_Acidifier"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>2</min>
					<max>4</max>
				</primaryMagazineCount>
				<shieldMoney>
					<min>200</min>
					<max>600</max>
				</shieldMoney>
				<shieldTags>
					<li>OutlanderShield</li>
				</shieldTags>
				<shieldChance>0.8</shieldChance>
				<sidearms>
					<li>
						<generateChance>0.5</generateChance>
						<sidearmMoney>
							<min>20</min>
							<max>120</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Melee</li>
						</weaponTags>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="RW_Vault_Mercenary_Sniper" or defName="RW_Vault_Mercenary_Sniper_Acidifier"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>3</min>
					<max>5</max>
				</primaryMagazineCount>
				<sidearms>
					<li>
						<generateChance>1</generateChance>
						<sidearmMoney>
							<min>60</min>
							<max>150</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Melee</li>
						</weaponTags>
					</li>
					<li>
						<generateChance>0.5</generateChance>
						<sidearmMoney>
							<min>80</min>
							<max>120</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm</li>
						</weaponTags>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="RW_Vault_Mercenary_Heavy"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>6</min>
					<max>14</max>
				</primaryMagazineCount>
				<forcedSidearm>
					<sidearmMoney>
						<min>150</min>
						<max>350</max>
					</sidearmMoney>
					<weaponTags>
						<li>CE_SMG</li>
					</weaponTags>
					<magazineCount>
						<min>0</min>
						<max>1</max>
					</magazineCount>
				</forcedSidearm>
				<sidearms>
					<li>
						<generateChance>0.5</generateChance>
						<sidearmMoney>
							<min>60</min>
							<max>150</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Melee</li>
						</weaponTags>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="RW_Vault_Mercenary_Slasher" or defName="RW_Vault_Mercenary_Slasher_Acidifier"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<shieldMoney>
					<min>500</min>
					<max>1400</max>
				</shieldMoney>
				<shieldTags>
					<li>OutlanderShield</li>
				</shieldTags>
				<shieldChance>0.9</shieldChance>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="RW_Vault_PirateBoss"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>3</min>
					<max>5</max>
				</primaryMagazineCount>
				<shieldMoney>
					<min>1300</min>
					<max>1700</max>
				</shieldMoney>
				<shieldTags>
					<li>OutlanderShield</li>
				</shieldTags>
				<shieldChance>0.9</shieldChance>
				<sidearms>
					<li>
						<sidearmMoney>
							<min>400</min>
							<max>800</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Melee</li>
						</weaponTags>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[@Name="MercenaryEliteTierBase" or defName="RW_Vault_Mercenary_Elite" or defName="RW_Vault_Mercenary_Elite_Acidifier"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>3</min>
					<max>5</max>
				</primaryMagazineCount>
				<shieldMoney>
					<min>1000</min>
					<max>1600</max>
				</shieldMoney>
				<shieldTags>
					<li>OutlanderShield</li>
				</shieldTags>
				<shieldChance>0.9</shieldChance>
				<sidearms>
					<li>
						<sidearmMoney>
							<min>400</min>
							<max>800</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Melee</li>
						</weaponTags>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>
</Patch>