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

	<!-- ========== Remove Vanilla Carry Capacity ========== -->
	<Operation Class="PatchOperationRemove">
		<xpath>Defs/VFEPirates.WarcasketDef[
			defName="VFEP_Warcasket_Barbatos"
			]/modExtensions/li/carryingCapacity </xpath>
	</Operation>

	<!-- ========== Barbatos (Aerial Warcasket) ========== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_Barbatos"]/statBases</xpath>
		<value>
			<Bulk>250</Bulk>
			<WornBulk>25</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_Barbatos"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>28</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_Barbatos"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>70</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_Barbatos"]/equippedStatOffsets</xpath>
		<value>
			<CarryWeight>250</CarryWeight>
			<CarryBulk>200</CarryBulk>
			<Suppressability>-100</Suppressability>
		</value>
	</Operation>

	<!-- Increase Cost -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_Barbatos"]/costList/Steel</xpath>
		<value>
			<Steel>290</Steel>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_Barbatos"]/costList/ComponentIndustrial</xpath>
		<value>
			<ComponentIndustrial>16</ComponentIndustrial>
		</value>
	</Operation>

	<!-- ========== Barbatos - Shoulders ========== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_WarcasketShoulders_Barbatos"]/statBases</xpath>
		<value>
			<Bulk>15</Bulk>
			<WornBulk>5</WornBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_WarcasketShoulders_Barbatos"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>28</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_WarcasketShoulders_Barbatos"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>70</ArmorRating_Blunt>
		</value>
	</Operation>

	<!-- Increase Cost -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_WarcasketShoulders_Barbatos"]/costList/Steel</xpath>
		<value>
			<Steel>40</Steel>
		</value>
	</Operation>

	<!-- === Barbatos Helmet === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_WarcasketHelmet_Barbatos"]/statBases</xpath>
		<value>
			<Bulk>15</Bulk>
			<WornBulk>8</WornBulk>
			<NightVisionEfficiency_Apparel>0.5</NightVisionEfficiency_Apparel>
		</value>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_WarcasketHelmet_Barbatos"]/apparel/immuneToToxGasExposure</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_WarcasketHelmet_Barbatos"]/apparel</xpath>
			<value>
				<immuneToToxGasExposure>true</immuneToToxGasExposure>
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_WarcasketHelmet_Barbatos"]/equippedStatOffsets</xpath>
		<value>
			<SmokeSensitivity>-1</SmokeSensitivity>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_WarcasketHelmet_Barbatos"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>25</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_WarcasketHelmet_Barbatos"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>56</ArmorRating_Blunt>
		</value>
	</Operation>

	<!-- Increase Cost -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_WarcasketHelmet_Barbatos"]/costList/Steel</xpath>
		<value>
			<Steel>90</Steel>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_WarcasketHelmet_Barbatos"]/costList/ComponentIndustrial</xpath>
		<value>
			<ComponentIndustrial>6</ComponentIndustrial>
		</value>
	</Operation>
</Patch>