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

	<!-- Medieval Pawnkinds -->
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="RE_Elven_Archer"] </xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>4</min>
					<max>7</max>
				</primaryMagazineCount>
				<sidearms>
					<li>
						<sidearmMoney>
							<min>80</min>
							<max>160</max>
						</sidearmMoney>
						<weaponTags>
							<li>NeolithicMeleeBasic</li>
						</weaponTags>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="RE_Elven_Levy"] </xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<shieldMoney>
					<min>80</min>
					<max>110</max>
				</shieldMoney>
				<shieldTags>
					<li>TribalShield</li>
				</shieldTags>
				<shieldChance>0.25</shieldChance>
			</li>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="RE_Elven_Ranger"] </xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>8</min>
					<max>14</max>
				</primaryMagazineCount>
				<sidearms>
					<li>
						<sidearmMoney>
							<min>120</min>
							<max>180</max>
						</sidearmMoney>
						<weaponTags>
							<li>MedievalMeleeBasic</li>
							<li>NeolithicMeleeDecent</li>
						</weaponTags>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="Elven_Supreme_NobleRanged"] </xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>6</min>
					<max>14</max>
				</primaryMagazineCount>
				<sidearms>
					<li>
						<sidearmMoney>
							<min>150</min>
							<max>240</max>
						</sidearmMoney>
						<weaponTags>
							<li>ElvenMedievalMelee</li>
							<li>MedievalMeleeAdvanced</li>
						</weaponTags>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<!-- Spacer Pawnkinds -->
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[@Name="ElvenSoldierBase" or @Name="ElvenKnightBase"] </xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>6</min>
					<max>10</max>
				</primaryMagazineCount>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="Elven_Soldier_Grenadier"] </xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>6</min>
					<max>12</max>
				</primaryMagazineCount>
				<sidearms>
					<li>
						<generateChance>0.8</generateChance>
						<sidearmMoney>
							<min>10</min>
							<max>100</max>
						</sidearmMoney>
						<weaponTags>
							<li>CE_Sidearm</li>
						</weaponTags>
						<magazineCount>
							<min>3</min>
							<max>6</max>
						</magazineCount>
					</li>
				</sidearms>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[defName="Elven_Soldier_Lancer"] </xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>20</min>
					<max>40</max>
				</primaryMagazineCount>
			</li>
		</value>
	</Operation>

</Patch>