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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_GermanRiflemanKit" or defName="ODZ_WWII_GermanAssaultKit" or defName="ODZ_WWII_GermanMGKit" or defName="ODZ_WWII_GermanPlatoonLeaderKit" or defName="ODZ_WWII_SovietRiflemanKit" or defName="ODZ_WWII_SovietAssaultKit" or defName="ODZ_WWII_SovietMGKit" or defName="ODZ_WWII_SovietPlatoonLeaderKit"]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>Shoulders</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_GermanRiflemanKit" or defName="ODZ_WWII_GermanAssaultKit" or defName="ODZ_WWII_GermanMGKit" or defName="ODZ_WWII_GermanPlatoonLeaderKit" or defName="ODZ_WWII_SovietRiflemanKit" or defName="ODZ_WWII_SovietAssaultKit" or defName="ODZ_WWII_SovietMGKit" or defName="ODZ_WWII_SovietPlatoonLeaderKit"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Webbing</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_GermanRiflemanKit" or defName="ODZ_WWII_GermanAssaultKit" or defName="ODZ_WWII_GermanMGKit" or defName="ODZ_WWII_GermanPlatoonLeaderKit" or defName="ODZ_WWII_SovietRiflemanKit" or defName="ODZ_WWII_SovietAssaultKit" or defName="ODZ_WWII_SovietMGKit" or defName="ODZ_WWII_SovietPlatoonLeaderKit"]/statBases</xpath>
		<value>
			<Bulk>10</Bulk>
			<WornBulk>5</WornBulk>
		</value>
	</Operation>

	<!-- ===== Rifleman Kit ===== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_GermanRiflemanKit" or defName="ODZ_WWII_SovietRiflemanKit"]/equippedStatOffsets</xpath>
		<value>
			<equippedStatOffsets>
				<CarryBulk>30</CarryBulk>
				<AimingDelayFactor>-0.05</AimingDelayFactor>
				<MedicalTendSpeed>0.05</MedicalTendSpeed>
				<ReloadSpeed>0.08</ReloadSpeed>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- ===== Assault Kit ===== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_GermanAssaultKit" or defName="ODZ_WWII_SovietAssaultKit"]/equippedStatOffsets</xpath>
		<value>
			<equippedStatOffsets>
				<CarryBulk>27</CarryBulk>
				<AimingDelayFactor>-0.08</AimingDelayFactor>
				<MedicalTendSpeed>0.05</MedicalTendSpeed>
				<ReloadSpeed>0.09</ReloadSpeed>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- ===== Machinegunner Kit ===== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_GermanMGKit" or defName="ODZ_WWII_SovietMGKit"]/equippedStatOffsets</xpath>
		<value>
			<equippedStatOffsets>
				<CarryBulk>25</CarryBulk>
				<AimingDelayFactor>-0.10</AimingDelayFactor>
				<MedicalTendSpeed>0.05</MedicalTendSpeed>
				<ReloadSpeed>0.1</ReloadSpeed>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- ===== Platoon Leader Kit ===== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_GermanPlatoonLeaderKit" or defName="ODZ_WWII_SovietPlatoonLeaderKit"]/equippedStatOffsets</xpath>
		<value>
			<equippedStatOffsets>
				<CarryBulk>30</CarryBulk>
				<AimingDelayFactor>-0.06</AimingDelayFactor>
				<MedicalTendSpeed>0.05</MedicalTendSpeed>
				<ReloadSpeed>0.08</ReloadSpeed>
			</equippedStatOffsets>
		</value>
	</Operation>

	<!-- ======= Headgear ======= -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_M24GermanSidecap" or defName="ODZ_WWII_GermanCrusherCap" or defName="ODZ_WWII_SovietPilotka" or defName="ODZ_WWII_SovietM24Cap"]/statBases</xpath>
		<value>
			<Bulk>1</Bulk>
			<WornBulk>0.8</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_GermanM42Stahlhelm" or defName="ODZ_WWII_SovietSSH40Helmet"]/statBases</xpath>
		<value>
			<Bulk>3</Bulk>
			<WornBulk>1</WornBulk>
		</value>
	</Operation>

	<!-- ===== Helmet ===== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_GermanM42Stahlhelm" or defName="ODZ_WWII_SovietSSH40Helmet"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>4</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<!-- ===== Caps ===== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_M24GermanSidecap" or defName="ODZ_WWII_GermanCrusherCap" or defName="ODZ_WWII_SovietPilotka" or defName="ODZ_WWII_SovietM24Cap"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>2</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<!-- ======= Uniforms ======= -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_M42GermanUniform" or defName="ODZ_WWII_M42PlatoonLeader" or defName="ODZ_WWII_Obr35SovietUniform" or defName="ODZ_WWII_Obr35PlatoonLeader"]/statBases</xpath>
		<value>
			<Bulk>4</Bulk>
			<WornBulk>2</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_M42GermanUniform" or defName="ODZ_WWII_M42PlatoonLeader" or defName="ODZ_WWII_Obr35SovietUniform" or defName="ODZ_WWII_Obr35PlatoonLeader"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>2</StuffEffectMultiplierArmor>
		</value>
	</Operation>

	<!-- ======= Coats ======= -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_GermanM40GreatCoat" or defName="ODZ_WWII_SovietM41Overcoat"]/statBases</xpath>
		<value>
			<Bulk>8</Bulk>
			<WornBulk>3</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_GermanM40GreatCoat" or defName="ODZ_WWII_SovietM41Overcoat"]/statBases/StuffEffectMultiplierArmor</xpath>
		<value>
			<StuffEffectMultiplierArmor>5</StuffEffectMultiplierArmor>
		</value>
	</Operation>

  <!-- ======= Cuirass ======= -->

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_SovietPlateArmor"]/statBases/ArmorRating_Sharp</xpath>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_SovietPlateArmor"]/statBases/ArmorRating_Blunt</xpath>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_SovietPlateArmor"]/equippedStatOffsets/MoveSpeed</xpath>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_SovietPlateArmor"]/stuffCategories/li[contains(text(), 'Metallic')]</xpath>
		<value>
			<li>Steeled</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_SovietPlateArmor"]/statBases</xpath>
		<value>
			<Bulk>4.5</Bulk>
			<WornBulk>3</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="ODZ_WWII_SovietPlateArmor"]/statBases</xpath>
		<value>
			<StuffEffectMultiplierArmor>2.65</StuffEffectMultiplierArmor>
		</value>
	</Operation>

</Patch>
