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

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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="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>
				<sidearms>
					<li>
						<generateChance>0.2</generateChance>
						<sidearmMoney>
							<min>80</min>
							<max>160</max>
						</sidearmMoney>
						<weaponTags>
							<li>GrenadeSmoke</li>
						</weaponTags>
						<magazineCount>
							<min>0</min>
							<max>1</max>
						</magazineCount>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="Grenadier_EMP"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>10</min>
					<max>30</max>
				</primaryMagazineCount>
				<weightedAmmoCategories>
					<GrenadeHE>0.5</GrenadeHE>
					<GrenadeHETF>0.25</GrenadeHETF>
					<GrenadeHEDP>0.25</GrenadeHEDP>
					<GrenadeEMP>0.1</GrenadeEMP>
				</weightedAmmoCategories>
				<forcedSidearm>
					<sidearmMoney>
						<min>170</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="Grenadier_EMP"]/label</xpath>
		<value>
			<label>advanced grenadier</label>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="Grenadier_EMP"]/combatPower</xpath>
		<value>
			<combatPower>85</combatPower>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[@Name="MercenaryGunnerBase" or defName="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>
				<minAmmoCount>20</minAmmoCount>
				<sidearms>
					<li>
						<generateChance>0.5</generateChance>
						<sidearmMoney>
							<min>20</min>
							<max>120</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Melee</li>
						</weaponTags>
					</li>
					<li>
						<generateChance>0.1</generateChance>
						<sidearmMoney>
							<min>80</min>
							<max>160</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_FlareLauncher</li>
						</weaponTags>
						<magazineCount>
							<min>1</min>
							<max>3</max>
						</magazineCount>
					</li>
					<li>
						<generateChance>0.1</generateChance>
						<sidearmMoney>
							<min>80</min>
							<max>160</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_GrenadeFlashbang</li>
							<li>GrenadeSmoke</li>
							<li>GrenadeDestructive</li>
						</weaponTags>
						<magazineCount>
							<min>0</min>
							<max>1</max>
						</magazineCount>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/PawnKindDef[@Name="MercenarySniperBase" or defName="Mercenary_Sniper_Acidifier"]</xpath>
		<value>
			<weaponMoney>415~600</weaponMoney>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[@Name="MercenarySniperBase" or defName="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>170</min>
							<max>250</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm</li>
						</weaponTags>
					</li>
					<li>
						<generateChance>0.15</generateChance>
						<sidearmMoney>
							<min>80</min>
							<max>160</max>
						</sidearmMoney>
						<weaponTags>
							<li>GrenadeSmoke</li>
						</weaponTags>
						<magazineCount>
							<min>0</min>
							<max>0</max>
						</magazineCount>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[@Name="MercenaryHeavyBase"]</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>
					<li>
						<generateChance>0.15</generateChance>
						<sidearmMoney>
							<min>80</min>
							<max>160</max>
						</sidearmMoney>
						<weaponTags>
							<li>GrenadeSmoke</li>
						</weaponTags>
						<magazineCount>
							<min>0</min>
							<max>0</max>
						</magazineCount>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/PawnKindDef[@Name="MercenarySlasherBase"]/skills</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/PawnKindDef[@Name="MercenarySlasherBase"]</xpath>
			<value>
				<skills>
					<li>
						<skill>Melee</skill>
						<range>4~12</range>
					</li>
				</skills>
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="Mercenary_Slasher" or defName="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="PatchOperationConditional">
		<xpath>Defs/PawnKindDef[@Name="MercenaryEliteTierBase"]/skills</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/PawnKindDef[@Name="MercenaryEliteTierBase"]</xpath>
			<value>
				<skills>
					<li>
						<skill>Shooting</skill>
						<range>6~14</range>
					</li>
				</skills>
			</value>
		</nomatch>
	</Operation>

	<!-- Gives all elite-tier pirates and mercs access to charge weapons. -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/PawnKindDef[@Name="MercenaryEliteTierBase"]/weaponTags</xpath>
		<value>
			<li>SpacerGun</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[@Name="MercenaryEliteTierBase" or defName="Mercenary_Elite_Acidifier"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>3</min>
					<max>5</max>
				</primaryMagazineCount>
				<weightedAmmoCategories>
					<FullMetalJacket>0.2</FullMetalJacket>
					<ArmorPiercing>0.2</ArmorPiercing>
					<HollowPoint>0.1</HollowPoint>
					<IncendiaryAP>0.33</IncendiaryAP>
					<ExplosiveAP>0.33</ExplosiveAP>
					<Sabot>0.25</Sabot>
				</weightedAmmoCategories>
				<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>
					<li>
						<generateChance>0.1</generateChance>
						<sidearmMoney>
							<min>80</min>
							<max>160</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_FlareLauncher</li>
						</weaponTags>
						<magazineCount>
							<min>1</min>
							<max>3</max>
						</magazineCount>
					</li>
					<li>
						<generateChance>0.5</generateChance>
						<sidearmMoney>
							<min>160</min>
							<max>320</max>
						</sidearmMoney>
						<weaponTags>
							<li>GrenadeDestructive</li>
						</weaponTags>
						<magazineCount>
							<min>0</min>
							<max>2</max>
						</magazineCount>
					</li>
					<li>
						<generateChance>0.5</generateChance>
						<sidearmMoney>
							<min>160</min>
							<max>320</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_GrenadeFlashbang</li>
							<li>GrenadeSmoke</li>
						</weaponTags>
						<magazineCount>
							<min>0</min>
							<max>1</max>
						</magazineCount>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<!-- ========== Outlander ========== -->

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[@Name="VillagerBase" or @Name="TraderBase" or @Name="CouncilmanBase"]</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[@Name="GuardBase"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>2</min>
					<max>4</max>
				</primaryMagazineCount>
				<sidearms>
					<li>
						<generateChance>0.5</generateChance>
						<sidearmMoney>
							<min>20</min>
							<max>120</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Melee</li>
						</weaponTags>
					</li>
					<li>
						<generateChance>0.1</generateChance>
						<sidearmMoney>
							<min>80</min>
							<max>160</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_FlareLauncher</li>
						</weaponTags>
						<magazineCount>
							<min>1</min>
							<max>3</max>
						</magazineCount>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<!-- ========== Pirate ========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[@Name="ScavengerBase"]/weaponMoney</xpath>
		<value>
			<weaponMoney>
				<min>160</min>
				<max>300</max>
			</weaponMoney>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[@Name="ScavengerBase"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>1</min>
					<max>2</max>
				</primaryMagazineCount>
				<sidearms>
					<li>
						<generateChance>0.7</generateChance>
						<sidearmMoney>
							<min>10</min>
							<max>60</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Melee</li>
						</weaponTags>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[@Name="PirateKindBase"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>2</min>
					<max>3</max>
				</primaryMagazineCount>
				<sidearms>
					<li>
						<generateChance>0.5</generateChance>
						<sidearmMoney>
							<min>10</min>
							<max>100</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Melee</li>
						</weaponTags>
					</li>
					<li>
						<generateChance>0.15</generateChance>
						<sidearmMoney>
							<min>80</min>
							<max>160</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_FlareLauncher</li>
						</weaponTags>
						<magazineCount>
							<min>2</min>
							<max>5</max>
						</magazineCount>
					</li>
					<li>
						<generateChance>0.1</generateChance>
						<sidearmMoney>
							<min>80</min>
							<max>160</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_GrenadeFlashbang</li>
							<li>GrenadeSmoke</li>
							<li>GrenadeDestructive</li>
						</weaponTags>
						<magazineCount>
							<min>0</min>
							<max>0</max>
						</magazineCount>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<!-- ========== Spacer ========== -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/PawnKindDef[defName="AncientSoldier"]/skills</xpath>
		<value>
			<li>
				<skill>Melee</skill>
				<range>4~12</range>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="AncientSoldier"]/weaponMoney</xpath>
		<value>
			<weaponMoney>
				<min>820</min>
				<max>1100</max>
			</weaponMoney>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="AncientSoldier"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>3</min>
					<max>5</max>
				</primaryMagazineCount>
				<shieldMoney>
					<min>1300</min>
					<max>1800</max>
				</shieldMoney>
				<shieldTags>
					<li>OutlanderShield</li>
				</shieldTags>
				<shieldChance>0.5</shieldChance>
				<sidearms>
					<li>
						<sidearmMoney>
							<min>400</min>
							<max>800</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Melee</li>
						</weaponTags>
					</li>
					<li>
						<generateChance>0.4</generateChance>
						<sidearmMoney>
							<min>10</min>
							<max>100</max>
						</sidearmMoney>
						<weaponTags>
							<li>GrenadeSmoke</li>
						</weaponTags>
						<magazineCount>
							<min>0</min>
							<max>1</max>
						</magazineCount>
					</li>
					<li>
						<generateChance>0.125</generateChance>
						<sidearmMoney>
							<min>80</min>
							<max>160</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_FlareLauncher</li>
						</weaponTags>
						<magazineCount>
							<min>5</min>
							<max>7</max>
						</magazineCount>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<!-- ========== Tribal ========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="Tribal_Penitent"]/combatPower</xpath>
		<value>
			<combatPower>16</combatPower>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="Tribal_Warrior"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<shieldMoney>
					<min>100</min>
					<max>150</max>
				</shieldMoney>
				<shieldTags>
					<li>TribalShield</li>
				</shieldTags>
				<shieldChance>0.9</shieldChance>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="Tribal_Warrior"]/combatPower</xpath>
		<value>
			<combatPower>24</combatPower>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="Tribal_Archer"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>4</min>
					<max>6</max>
				</primaryMagazineCount>
				<shieldMoney>
					<min>100</min>
					<max>130</max>
				</shieldMoney>
				<shieldTags>
					<li>TribalShield</li>
				</shieldTags>
				<shieldChance>0.6</shieldChance>
				<sidearms>
					<li>
						<sidearmMoney>
							<min>80</min>
							<max>160</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Tribal</li>
						</weaponTags>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="Tribal_Archer"]/combatPower</xpath>
		<value>
			<combatPower>30</combatPower>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="Tribal_Hunter"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>5</min>
					<max>7</max>
				</primaryMagazineCount>
				<shieldMoney>
					<min>100</min>
					<max>140</max>
				</shieldMoney>
				<shieldTags>
					<li>TribalShield</li>
				</shieldTags>
				<shieldChance>0.6</shieldChance>
				<sidearms>
					<li>
						<sidearmMoney>
							<min>80</min>
							<max>240</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Tribal</li>
						</weaponTags>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="Tribal_Hunter"]/combatPower</xpath>
		<value>
			<combatPower>45</combatPower>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="Tribal_HeavyArcher"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>4</min>
					<max>7</max>
				</primaryMagazineCount>
				<shieldMoney>
					<min>100</min>
					<max>160</max>
				</shieldMoney>
				<shieldTags>
					<li>TribalShield</li>
				</shieldTags>
				<shieldChance>0.6</shieldChance>
				<sidearms>
					<li>
						<sidearmMoney>
							<min>80</min>
							<max>300</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Tribal</li>
						</weaponTags>
					</li>
					<li>
						<generateChance>0.1</generateChance>
						<sidearmMoney>
							<min>80</min>
							<max>160</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_GrenadeNeolithic_Incendiary</li>
						</weaponTags>
						<magazineCount>
							<min>0</min>
							<max>0</max>
						</magazineCount>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="Tribal_HeavyArcher"]/combatPower</xpath>
		<value>
			<combatPower>60</combatPower>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="Tribal_Berserker"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<shieldMoney>
					<min>120</min>
					<max>160</max>
				</shieldMoney>
				<shieldTags>
					<li>TribalShield</li>
				</shieldTags>
				<shieldChance>0.9</shieldChance>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="Tribal_Berserker"]/combatPower</xpath>
		<value>
			<combatPower>60</combatPower>
		</value>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/PawnKindDef[defName="Tribal_ChiefMelee"]/skills</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/PawnKindDef[defName="Tribal_ChiefMelee"]</xpath>
			<value>
				<skills>
					<li>
						<skill>Melee</skill>
						<range>6~12</range>
					</li>
				</skills>
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/PawnKindDef[defName="Tribal_ChiefMelee"]/weaponTags</xpath>
		<value>
			<li>MedievalMeleeDecent</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[@Name="TribalChiefBase"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>3</min>
					<max>6</max>
				</primaryMagazineCount>
				<shieldMoney>
					<min>120</min>
					<max>160</max>
				</shieldMoney>
				<shieldTags>
					<li>TribalShield</li>
				</shieldTags>
				<shieldChance>0.5</shieldChance>
				<sidearms>
					<li>
						<sidearmMoney>
							<min>100</min>
							<max>600</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Tribal</li>
						</weaponTags>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/PawnKindDef[defName="Tribal_ChiefRanged"]/skills</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/PawnKindDef[defName="Tribal_ChiefRanged"]</xpath>
			<value>
				<skills>
					<li>
						<skill>Shooting</skill>
						<range>6~12</range>
					</li>
				</skills>
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="Tribal_ChiefRanged"]/weaponTags/li[.="NeolithicRangedChief"]</xpath>
		<value>
			<li>SimpleGun</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/PawnKindDef[@Name="TribalChiefBase"]/apparelRequired</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/PawnKindDef[@Name="TribalChiefBase"]</xpath>
			<value>
				<apparelRequired>
					<li>CE_Apparel_TribalBackpack</li>
				</apparelRequired>
			</value>
		</nomatch>
		<match Class="PatchOperationAdd">
			<xpath>Defs/PawnKindDef[@Name="TribalChiefBase"]/apparelRequired</xpath>
			<value>
				<li>CE_Apparel_TribalBackpack</li>
			</value>
		</match>
	</Operation>

	<!-- Combat drugs for tribals  -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/PawnKindDef[
			defName="Tribal_Berserker" or
			defName="Tribal_HeavyArcher" or
			@Name="TribalChiefBase"
			] </xpath>
		<value>
			<combatEnhancingDrugsChance>0.3</combatEnhancingDrugsChance>
			<combatEnhancingDrugsCount>1~2</combatEnhancingDrugsCount>
		</value>
	</Operation>

	<!-- Stranger in Black -->
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="StrangerInBlack"]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>5</min>
					<max>8</max>
				</primaryMagazineCount>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/PawnKindDef[defName="StrangerInBlack"]/apparelRequired</xpath>
		<value>
			<li>CE_Apparel_Backpack</li>
		</value>
	</Operation>

</Patch>