<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- ========== Reduce meals and medicine carried by all pawns ========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[@Name="WWII_SovietPawnKind_Base"]/invNutrition</xpath>
		<value>
			<invNutrition>1</invNutrition>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/PawnKindDef[@Name="WWII_SovietPawnKind_Base"]/inventoryOptions</xpath>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[
			defName="WWII_Soviet_Grunt" or
			defName="WWII_Soviet_Assault" or
			defName="WWII_Soviet_Assault_TierII" or
			defName="WWII_Soviet_Sniper" or
			defName="WWII_Soviet_Sniper_TierII" or
			defName="WWII_Soviet_Grenadier" or
			defName="WWII_Soviet_Boss"
			]/inventoryOptions/subOptionsChooseOne/li[thingDef="MedicineIndustrial"]/countRange </xpath>
		<value>
			<countRange>
				<min>0</min>
				<max>1</max>
			</countRange>
		</value>
	</Operation>

	<!-- ========== WWII Soviet Faction Grunts should always spawn with harnesses, to compensate for the added bulk of their primary weapon, ammo and kit ========== -->

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

	<!-- ========== WWII Soviet Faction Komandirs should always spawn with harnesses instead of smokepop belts, to compensate for the added bulk of their primary weapon, ammo and kit ========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/PawnKindDef[defName="WWII_Soviet_Boss"]/apparelRequired</xpath>
		<value>
			<apparelRequired>
				<li>Apparel_SovietCoat</li>
				<li>Apparel_SN-42Armor</li>
				<li>Apparel_M35_Uniform</li>
				<li>Apparel_Ushanka</li>
				<li>Apparel_M73_Harness</li>
			</apparelRequired>
		</value>
	</Operation>

	<!-- ========== WWII Soviet Faction pawns should spawn with ammo appropriate to their primary weapon ========== -->

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/PawnKindDef[
			defName="WWII_Soviet_Grunt" or
			defName="WWII_Soviet_Assault" or
			defName="WWII_Soviet_Assault_TierII" or
			defName="WWII_Soviet_Sniper" or
			defName="WWII_Soviet_Sniper_TierII" or
			defName="WWII_Soviet_Grenadier" or
			defName="WWII_Soviet_Stormtrooper" or
			defName="WWII_Soviet_Boss" or
			defName="WWII_Soviet_Trader"
			] </xpath>
		<value>
			<li Class="CombatExtended.LoadoutPropertiesExtension">
				<primaryMagazineCount>
					<min>6</min>
					<max>8</max>
				</primaryMagazineCount>
			</li>
		</value>
	</Operation>
</Patch>