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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[
			defName="RE_Merchant" or
			defName="RE_Colonist" or
			defName="RE_Farmer" or
			defName="RE_AllianceOfficer" or
			defName="RE_AllianceRecruit" or
			defName="RE_AllianceMilitia" or
			defName="RE_Official" or
			defName="RE_Ranger" or
			defName="RE_Scientist" or
			defName="RE_Medic" or
			defName="RE_Scientist" or
			defName="RE_PrimeMinister"
			]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>2</min>
					<max>3</max>
				</primaryMagazineCount>
				<sidearms>
					<li>
						<generateChance>0.25</generateChance>
						<sidearmMoney>
							<min>20</min>
							<max>120</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Melee</li>
						</weaponTags>
					</li>
					<li>
						<generateChance>0.075</generateChance>
						<sidearmMoney>
							<min>80</min>
							<max>160</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_FlareLauncher</li>
						</weaponTags>
						<magazineCount>
							<min>1</min>
							<max>1</max>
						</magazineCount>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[
			defName="RE_Alliance_Adept" or
			defName="RE_Alliance_Marine" or
			defName="RE_Spectre" or
			defName="RE_Alliance_Engineer"
			]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>4</min>
					<max>6</max>
				</primaryMagazineCount>
				<sidearms>
					<li>
						<generateChance>0.25</generateChance>
						<sidearmMoney>
							<min>100</min>
							<max>300</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm_Melee</li>
						</weaponTags>
					</li>
					<li>
						<generateChance>0.125</generateChance>
						<sidearmMoney>
							<min>10</min>
							<max>100</max>
						</sidearmMoney>
						<weaponTags>
							<li>GrenadeSmoke</li>
							<li>GrenadeDestructive</li>
						</weaponTags>
						<magazineCount>
							<min>0</min>
							<max>1</max>
						</magazineCount>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="RE_Alliance_MarineHeavy"
			]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>6</min>
					<max>12</max>
				</primaryMagazineCount>
				<sidearms>
					<li>
						<generateChance>0.75</generateChance>
						<sidearmMoney>
							<min>200</min>
							<max>300</max>
						</sidearmMoney>
						<weaponTags>
							<li>RE_Bullet_AlliancePistol</li>
						</weaponTags>
						<magazineCount>
							<min>2</min>
							<max>3</max>
						</magazineCount>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[
			defName="RE_Alliance_MarineSniper"
			]</xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>12</min>
					<max>21</max>
				</primaryMagazineCount>
			</li>
		</value>
	</Operation>

	<!-- ======= Combat Power ======= -->

	<!-- Trooper -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[
			defName="RE_Alliance_Marine"
			]/combatPower</xpath>
		<value>
			<combatPower>200</combatPower>
		</value>
	</Operation>

	<!-- Infiltrator -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[
			defName="RE_Ranger" or
			defName="RE_AllianceMilitia"
			]/combatPower</xpath>
		<value>
			<combatPower>80</combatPower>
		</value>
	</Operation>

</Patch>