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

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Vanilla Factions Expanded - Mechanoids</li>
		</mods>

		<match Class="PatchOperationSequence">
			<operations>

				<!-- Siegebreaker -->
				<li Class="PatchOperationAdd">
					<xpath>Defs/PawnKindDef[defName="VFE_Mech_Siegebreaker" or defName="VFE_Mech_Advanced_Siegebreaker" or defName="VFE_Mech_Advanced_Siegebreaker_PlayerControlled"]</xpath>
					<value>
						<modExtensions>
							<li Class="CombatExtended.LoadoutPropertiesExtension">
								<primaryMagazineCount>
									<min>4</min>
									<max>7</max>
								</primaryMagazineCount>
							</li>
						</modExtensions>
					</value>
				</li>

				<!-- Fireworm -->
				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/PawnKindDef[defName="VFE_Mech_Fireworm" or defName="VFE_Mech_Advanced_Fireworm" or defName="VFE_Mech_Advanced_Fireworm_PlayerControlled"]</xpath>
					<value>
						<li Class="CombatExtended.LoadoutPropertiesExtension">
							<primaryMagazineCount>
								<min>2</min>
								<max>3</max>
							</primaryMagazineCount>
						</li>
					</value>
				</li>

				<!-- Goliath -->
				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/PawnKindDef[defName="VFE_Mech_Goliath" or defName="VFE_Mech_Advanced_Goliath" or defName="VFE_Mech_Advanced_Goliath_PlayerControlled"]</xpath>
					<value>
						<li Class="CombatExtended.LoadoutPropertiesExtension">
							<primaryMagazineCount>
								<min>4</min>
								<max>6</max>
							</primaryMagazineCount>
						</li>
					</value>
				</li>

				<!-- === combatPower Patches === -->

				<li Class="PatchOperationReplace">
					<xpath>Defs/PawnKindDef[defName="VFE_Mech_Goliath" or defName="VFE_Mech_Advanced_Goliath" or defName="VFE_Mech_Advanced_Goliath_PlayerControlled"]/combatPower</xpath>
					<value>
						<combatPower>550</combatPower>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/PawnKindDef[defName="VFE_Mech_Siegebreaker" or defName="VFE_Mech_Advanced_Siegebreaker" or defName="VFE_Mech_Advanced_Siegebreaker_PlayerControlled"]/combatPower</xpath>
					<value>
						<combatPower>500</combatPower>
					</value>
				</li>

			</operations>
		</match>
	</Operation>

</Patch>