<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- ========== XCOM ========== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparello_XcomOne"]/equippedStatOffsets</xpath>
		<value>
			<CarryBulk>5</CarryBulk>
		</value>
	</Operation>

	<!-- ========== Padded vest ========== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparello_Sheet"]/statBases</xpath>
		<value>
			<Bulk>10</Bulk>
			<WornBulk>5</WornBulk>
		</value>
	</Operation>

	<!-- ========== Ammo belt ========== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Ammobelt"]/equippedStatOffsets/AimingDelayFactor</xpath>
		<value>
			<CarryBulk>5</CarryBulk>
			<ReloadSpeed>0.05</ReloadSpeed>
		</value>
	</Operation>

	<!-- ========== Trader coat ========== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparello_Trypophobiaa"]/statBases</xpath>
		<value>
			<Bulk>15</Bulk>
			<WornBulk>3</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparello_Trypophobiaa"]/equippedStatOffsets</xpath>
		<value>
			<CarryBulk>50</CarryBulk>
			<ReloadSpeed>0.05</ReloadSpeed>
		</value>
	</Operation>
	<!--
<li Class="PatchOperationAdd">
	<xpath>Defs/ThingDef[defName="Apparello_Trypophobiaa"]/apparel/layers</xpath>
	<value>
		<li>Belt</li>
	</value>
</li>
-->
	<!-- ========== Tribal shield ========== -->
	<Operation Class="PatchOperationAttributeSet">
		<xpath>Defs/ThingDef[defName="Apparello_Tribalshield"]</xpath>
		<attribute>ParentName</attribute>
		<value>ShieldBase</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Tribalshield"]/apparel</xpath>
		<value>
			<apparel>
				<tags>
					<li>TribalShield</li>
				</tags>
			</apparel>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparello_Tribalshield"]/statBases</xpath>
		<value>
			<Bulk>8</Bulk>
			<WornBulk>5</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparello_Tribalshield"]</xpath>
		<value>
			<equippedStatOffsets>
				<ReloadSpeed>-0.05</ReloadSpeed>
				<MeleeHitChance>-0.05</MeleeHitChance>
				<ShootingAccuracyPawn>-0.05</ShootingAccuracyPawn>
				<AimingAccuracy>-0.05</AimingAccuracy>
				<Suppressability>-0.25</Suppressability>
				<MeleeCritChance>-0.05</MeleeCritChance>
				<MeleeParryChance>1.0</MeleeParryChance>
			</equippedStatOffsets>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="Apparello_Tribalshield"]/generateCommonality</xpath>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="Apparello_Tribalshield"]</xpath>
		<value>
			<li Class="CombatExtended.ShieldDefExtension">
				<shieldCoverage>
					<li>Hands</li>
					<li>Arms</li>
					<li>Shoulders</li>
					<li>Torso</li>
					<li>Neck</li>
				</shieldCoverage>
			</li>
		</value>
	</Operation>
</Patch>