<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Vehicle Framework</li>
		</mods>
		<match Class="PatchOperationSequence">
			<operations>

				<!--===== Las Cannon =====-->

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_Lasgun"]/magazineCapacity</xpath>
					<value>
						<magazineCapacity>600</magazineCapacity>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_Lasgun"]/genericAmmo</xpath>
					<value>
						<genericAmmo>false</genericAmmo>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_Lasgun"]/projectile</xpath>
					<value>
						<projectile>Bullet_Lasgun_Cannon</projectile>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_Lasgun"]/maxRange</xpath>
					<value>
						<maxRange>75</maxRange>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_Lasgun"]/ammunition/thingDefs</xpath>
					<value>
						<thingDefs>
							<li>Ammo_LasgunPowerPack</li>
						</thingDefs>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_Lasgun"]</xpath>
					<value>
						<chargePerAmmoCount>5</chargePerAmmoCount>
					</value>
				</li>

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_Lasgun"]</xpath>
					<value>
						<li Class="Vehicles.CETurretDataDefModExtension">
							<ammoSet>AmmoSet_Lasgun_Cannon</ammoSet>
							<shotHeight>2</shotHeight>
							<sway>1.0</sway>
							<spread>0.01</spread>
						</li>
					</value>
				</li>

				<!--===== Heavy Bolter Turret =====-->

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolter"]/projectile</xpath>
					<value>
						<projectile>Bullet_Bolter998_Standard</projectile>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolter"]/reloadTimer</xpath>
					<value>
						<reloadTimer>7.8</reloadTimer>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolter"]/warmUpTimer</xpath>
					<value>
						<warmUpTimer>2.3</warmUpTimer>
					</value>
				</li>

				<li Class="PatchOperationRemove">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolter"]/chargePerAmmoCount</xpath>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolter"]/genericAmmo</xpath>
					<value>
						<genericAmmo>false</genericAmmo>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolter"]/maxRange</xpath>
					<value>
						<maxRange>62</maxRange>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolter"]/ammunition/thingDefs</xpath>
					<value>
						<thingDefs>
							<li>Ammo_Bolter998_Standard</li>
							<li>Ammo_Bolter998_MetalStorm</li>
							<li>Ammo_Bolter998_Kraken</li>
							<li>Ammo_Bolter998_Inferno</li>
						</thingDefs>
					</value>
				</li>

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolter"]</xpath>
					<value>
						<li Class="Vehicles.CETurretDataDefModExtension">
							<ammoSet>AmmoSet_Bolter998</ammoSet>
							<shotHeight>1.5</shotHeight>
							<speed>229</speed>
							<sway>1.0</sway>
							<spread>0.01</spread>
						</li>
					</value>
				</li>

				<!--===== Heavy Bolter Turret =====-->

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolterCen"]/projectile</xpath>
					<value>
						<projectile>Bullet_Bolter998_Standard</projectile>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolterCen"]/reloadTimer</xpath>
					<value>
						<reloadTimer>7.8</reloadTimer>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolterCen"]/warmUpTimer</xpath>
					<value>
						<warmUpTimer>2.3</warmUpTimer>
					</value>
				</li>

				<li Class="PatchOperationRemove">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolterCen"]/chargePerAmmoCount</xpath>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolterCen"]/genericAmmo</xpath>
					<value>
						<genericAmmo>false</genericAmmo>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolterCen"]/maxRange</xpath>
					<value>
						<maxRange>62</maxRange>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolterCen"]/ammunition/thingDefs</xpath>
					<value>
						<thingDefs>
							<li>Ammo_Bolter998_Standard</li>
							<li>Ammo_Bolter998_MetalStorm</li>
							<li>Ammo_Bolter998_Kraken</li>
							<li>Ammo_Bolter998_Inferno</li>
						</thingDefs>
					</value>
				</li>

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_HeavyBolter"]</xpath>
					<value>
						<li Class="Vehicles.CETurretDataDefModExtension">
							<ammoSet>AmmoSet_Bolter998</ammoSet>
							<shotHeight>1.5</shotHeight>
							<speed>229</speed>
							<sway>1.0</sway>
							<spread>0.01</spread>
						</li>
					</value>
				</li>

				<!-- Mega Battle Cannon Turret -->
				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_PrimaryTwins"]/projectile</xpath>
					<value>
						<projectile>Bullet_120mmCannonShell_HEAT</projectile>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_PrimaryTwins"]/reloadTimer</xpath>
					<value>
						<reloadTimer>7.2</reloadTimer>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_PrimaryTwins"]/warmUpTimer</xpath>
					<value>
						<warmUpTimer>2.8</warmUpTimer>
					</value>
				</li>

				<li Class="PatchOperationRemove">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_PrimaryTwins"]/chargePerAmmoCount</xpath>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_PrimaryTwins"]/genericAmmo</xpath>
					<value>
						<genericAmmo>false</genericAmmo>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_PrimaryTwins"]/maxRange</xpath>
					<value>
						<maxRange>106</maxRange>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_PrimaryTwins"]/ammunition/thingDefs</xpath>
					<value>
						<thingDefs>
							<li>Ammo_120mmCannonShell_HEAT</li>
							<li>Ammo_120mmCannonShell_HE</li>
						</thingDefs>
					</value>
				</li>

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhammer_PrimaryTwins"]</xpath>
					<value>
						<li Class="Vehicles.CETurretDataDefModExtension">
							<ammoSet>AmmoSet_120mmCannonShell</ammoSet>
							<shotHeight>2</shotHeight>
							<speed>102</speed>
							<sway>1.0</sway>
							<spread>0.03</spread>
						</li>
					</value>
				</li>

				<!--===== Stormhammer =====-->

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_Stormhammer"]/statBases/ArmorRating_Blunt</xpath>
					<value>
						<ArmorRating_Blunt>52</ArmorRating_Blunt>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_Stormhammer"]/statBases/ArmorRating_Sharp</xpath>
					<value>
						<ArmorRating_Sharp>26</ArmorRating_Sharp>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_Stormhammer"]/vehicleStats/CargoCapacity</xpath>
					<value>
						<CargoCapacity>2500</CargoCapacity>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_Stormhammer"]/components/li[key="FrontArmorPlating"]/health</xpath>
					<value>
						<health>1500</health>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_Stormhammer"]/components/li[key="FrontArmorPlating"]/armor/ArmorRating_Blunt</xpath>
					<value>
						<ArmorRating_Blunt>76</ArmorRating_Blunt>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_Stormhammer"]/components/li[key="FrontArmorPlating"]/armor/ArmorRating_Sharp</xpath>
					<value>
						<ArmorRating_Sharp>38</ArmorRating_Sharp>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_Stormhammer"]/components/li[key="LeftArmorPlating"]/health</xpath>
					<value>
						<health>1250</health>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_Stormhammer"]/components/li[key="LeftArmorPlating"]/armor/ArmorRating_Blunt</xpath>
					<value>
						<ArmorRating_Blunt>50</ArmorRating_Blunt>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_Stormhammer"]/components/li[key="LeftArmorPlating"]/armor/ArmorRating_Sharp</xpath>
					<value>
						<ArmorRating_Sharp>25</ArmorRating_Sharp>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_Stormhammer"]/components/li[key="RightArmorPlating"]/health</xpath>
					<value>
						<health>1150</health>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_Stormhammer"]/components/li[key="RightArmorPlating"]/armor/ArmorRating_Blunt</xpath>
					<value>
						<ArmorRating_Blunt>50</ArmorRating_Blunt>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_Stormhammer"]/components/li[key="RightArmorPlating"]/armor/ArmorRating_Sharp</xpath>
					<value>
						<ArmorRating_Sharp>25</ArmorRating_Sharp>
					</value>
				</li>
			</operations>
		</match>
	</Operation>

</Patch>