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

	<!-- ========== Royal Warcasket ========== -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="Warcasket_Royal"]/statBases</xpath>
		<value>
			<Bulk>250</Bulk>
			<WornBulk>25</WornBulk>
		</value>
	</Operation>

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

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

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

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

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

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

	<!-- === Royal Warcasket Helmet === -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/VFEPirates.WarcasketDef[defName="WarcasketHelmet_Royal"]/statBases</xpath>
		<value>
			<Bulk>15</Bulk>
			<WornBulk>8</WornBulk>
			<NightVisionEfficiency_Apparel>0.6</NightVisionEfficiency_Apparel>
		</value>
	</Operation>

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

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

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

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

</Patch>