<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Vehicle Framework</li>
		</mods>
		<match Class="PatchOperationSequence">
			<operations>
				<!-- Generic -->				
				
				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[
						defName="GW_Stormhawk_Stormcannon" or
						defName="GW_Stormhawk_Lastalon" or
						defName="GW_Stormhawk_AssaultCannon"
						]/genericAmmo</xpath>
					<value>
						<genericAmmo>false</genericAmmo>
					</value>
				</li>
				
				<!-- Lascannon -->

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

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

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

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhawk_Lastalon"]/fireModes</xpath>
					<value>
						<fireModes>
							<li>
								<shotsPerBurst>1</shotsPerBurst>
								<ticksBetweenShots>0</ticksBetweenShots>
								<ticksBetweenBursts>30</ticksBetweenBursts>
								<label>Single</label>
								<texPath>UI/Gizmos/FireRate_Single</texPath>
							</li>
							<li>
								<shotsPerBurst>2</shotsPerBurst>
								<ticksBetweenShots>5</ticksBetweenShots>
								<ticksBetweenBursts>30</ticksBetweenBursts>
								<label>Burst</label>
								<texPath>UI/Gizmos/FireRate_Burst</texPath>
							</li>
						</fireModes>
					</value>
				</li>

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

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhawk_Lastalon"]</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>

				<!--===== Assault Cannon =====-->

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

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

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

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

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhawk_AssaultCannon"]/ammunition/thingDefs</xpath>
					<value>
						<thingDefs>
							<li>Ammo_20x102mmNATO_AP</li>
							<li>Ammo_20x102mmNATO_Incendiary</li>
							<li>Ammo_20x102mmNATO_HE</li>
							<li>Ammo_20x102mmNATO_Sabot</li>
						</thingDefs>
					</value>
				</li>

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhawk_AssaultCannon"]</xpath>
					<value>
						<li Class="Vehicles.CETurretDataDefModExtension">
							<ammoSet>AmmoSet_20x102mmNATO</ammoSet>
							<shotHeight>1.5</shotHeight>
							<speed>182</speed>
							<sway>4.64</sway>
							<spread>0.06</spread>
						</li>
					</value>
				</li>

				<!--===== Icarus Stormcannon =====-->

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

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

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

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

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhawk_Stormcannon"]/ammunition/thingDefs</xpath>
					<value>
						<thingDefs>
							<li>Ammo_30x173mmNATO_AP</li>
							<li>Ammo_30x173mmNATO_Incendiary</li>
							<li>Ammo_30x173mmNATO_HE</li>
							<li>Ammo_30x173mmNATO_Sabot</li>
						</thingDefs>
					</value>
				</li>

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_Stormhawk_Stormcannon"]</xpath>
					<value>
						<li Class="Vehicles.CETurretDataDefModExtension">
							<ammoSet>AmmoSet_30x173mmNATO</ammoSet>
							<shotHeight>1.5</shotHeight>
							<speed>181</speed>
							<sway>4.64</sway>
							<spread>0.06</spread>
						</li>
					</value>
				</li>

				<!--===== Pawn =====-->

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

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

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="stormHawkpawn"]/components/li[key="Primaryplating"]/health</xpath>
					<value>
						<health>1140</health>
					</value>
				</li>
			</operations>
		</match>
	</Operation>
</Patch>