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

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Vanilla Factions Expanded - Pirates</li>
		</mods>

		<match Class="PatchOperationSequence">
			<operations>

				<!-- ========== Mech Controller Warcasket ========== -->
				<li Class="PatchOperationAdd">
					<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_MechController"]/statBases</xpath>
					<value>
						<Bulk>275</Bulk>
						<WornBulk>35</WornBulk>
					</value>
				</li>

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

				<li Class="PatchOperationReplace">
					<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_MechController"]/statBases/ArmorRating_Blunt</xpath>
					<value>
						<ArmorRating_Blunt>85</ArmorRating_Blunt>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_MechController"]/equippedStatOffsets</xpath>
					<value>
						<CarryWeight>250</CarryWeight>
						<CarryBulk>225</CarryBulk>
						<Suppressability>-100</Suppressability>
					</value>
				</li>

				<!-- Increase Cost -->
				<li Class="PatchOperationReplace">
					<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_MechController"]/costList/Plasteel</xpath>
					<value>
						<Plasteel>240</Plasteel>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_MechController"]/costList/ComponentSpacer</xpath>
					<value>
						<ComponentSpacer>4</ComponentSpacer>
					</value>
				</li>

				<!-- === Energy Shield === -->

				<li Class="PatchOperationReplace">
					<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_MechController"]/statBases/EnergyShieldEnergyMax</xpath>
					<value>
						<EnergyShieldEnergyMax>3.75</EnergyShieldEnergyMax>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_MechController"]/statBases/EnergyShieldRechargeRate</xpath>
					<value>
						<EnergyShieldRechargeRate>0.01</EnergyShieldRechargeRate>
					</value>
				</li>

				<!-- ========== Siegebreaker Warcasket - Shoulders ========== -->

				<li Class="PatchOperationAdd">
					<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_Shoulders_MechController"]/statBases</xpath>
					<value>
						<Bulk>15</Bulk>
						<WornBulk>5</WornBulk>
					</value>
				</li>

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

				<li Class="PatchOperationReplace">
					<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_Shoulders_MechController"]/statBases/ArmorRating_Blunt</xpath>
					<value>
						<ArmorRating_Blunt>85</ArmorRating_Blunt>
					</value>
				</li>

				<!-- Increase Cost -->
				<li Class="PatchOperationReplace">
					<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_Shoulders_MechController"]/costList/Plasteel</xpath>
					<value>
						<Plasteel>90</Plasteel>
					</value>
				</li>

				<!-- === Siegebreaker Warcasket Helmet === -->
				<li Class="PatchOperationAdd">
					<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_Helmet_MechController"]/statBases</xpath>
					<value>
						<Bulk>20</Bulk>
						<WornBulk>10</WornBulk>
						<NightVisionEfficiency_Apparel>0.75</NightVisionEfficiency_Apparel>
					</value>
				</li>

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

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

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

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

				<!-- Increase Cost -->
				<li Class="PatchOperationReplace">
					<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_Helmet_MechController"]/costList/Plasteel</xpath>
					<value>
						<Plasteel>90</Plasteel>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/VFEPirates.WarcasketDef[defName="VFEP_Warcasket_Helmet_MechController"]/costList/ComponentSpacer</xpath>
					<value>
						<ComponentSpacer>6</ComponentSpacer>
					</value>
				</li>

			</operations>
		</match>
	</Operation>

</Patch>