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

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

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

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

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

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleTurretDef[defName="GW_LandRaider_Lasgun"]/fireModes</xpath>
					<value>
						<fireModes>
							<li>
								<shotsPerBurst>2</shotsPerBurst>
								<ticksBetweenShots>10</ticksBetweenShots>
								<ticksBetweenBursts>100</ticksBetweenBursts>
								<label>Single</label>
								<texPath>UI/Gizmos/FireRate_Single</texPath>
							</li>
						</fireModes>
					</value>
				</li>

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

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

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

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

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

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

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

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

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

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

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

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

				<!--===== Rhino =====-->

				<!-- Vehicle -->

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

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

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

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

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

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

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

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

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

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

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

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_LandRaider"]/components/li[key="RightArmorPlating"]/armor/ArmorRating_Sharp</xpath>
					<value>
						<ArmorRating_Sharp>24</ArmorRating_Sharp>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_LandRaider"]/components/li[key="BackArmorPlating"]/health</xpath>
					<value>
						<health>950</health>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_LandRaider"]/components/li[key="BackArmorPlating"]/armor/ArmorRating_Blunt</xpath>
					<value>
						<ArmorRating_Blunt>36</ArmorRating_Blunt>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_LandRaider"]/components/li[key="BackArmorPlating"]/armor/ArmorRating_Sharp</xpath>
					<value>
						<ArmorRating_Sharp>18</ArmorRating_Sharp>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_LandRaider"]/components/li[key="Roof"]/health</xpath>
					<value>
						<health>750</health>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/Vehicles.VehicleDef[defName="GW_LandRaider"]/components/li[key="Roof"]/armor/ArmorRating_Blunt</xpath>
					<value>
						<ArmorRating_Blunt>32</ArmorRating_Blunt>
					</value>
				</li>

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

</Patch>