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

	<!-- Turret -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/Vehicles.VehicleTurretDef[defName="AV_Hwacha_Turret"]/projectile</xpath>
		<value>
			<projectile>Projectile_GreatArrow_ExplosiveArrow</projectile>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/Vehicles.VehicleTurretDef[defName="AV_Hwacha_Turret"]/reloadTimer</xpath>
		<value>
			<reloadTimer>12.0</reloadTimer>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/Vehicles.VehicleTurretDef[defName="AV_Hwacha_Turret"]/warmUpTimer</xpath>
		<value>
			<warmUpTimer>3.0</warmUpTimer>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/Vehicles.VehicleTurretDef[defName="AV_Hwacha_Turret"]/magazineCapacity</xpath>
		<value>
			<magazineCapacity>64</magazineCapacity>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/Vehicles.VehicleTurretDef[defName="AV_Hwacha_Turret"]/maxRange</xpath>
		<value>
			<maxRange>20</maxRange>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/Vehicles.VehicleTurretDef[defName="AV_Hwacha_Turret"]/fireModes</xpath>
		<value>
			<fireModes>
				<li>
					<shotsPerBurst>64</shotsPerBurst>
					<ticksBetweenShots>6</ticksBetweenShots>
					<ticksBetweenBursts>15</ticksBetweenBursts>
					<label>Full Barrage</label>
					<texPath>UI/Gizmos/AV_ArrowBarrage</texPath>
				</li>
				<li>
					<shotsPerBurst>32</shotsPerBurst>
					<ticksBetweenShots>6</ticksBetweenShots>
					<ticksBetweenBursts>15</ticksBetweenBursts>
					<label>Half Barrage</label>
					<texPath>UI/Gizmos/FireRate_Auto</texPath>
				</li>
				<li>
					<shotsPerBurst>8</shotsPerBurst>
					<ticksBetweenShots>6</ticksBetweenShots>
					<ticksBetweenBursts>15</ticksBetweenBursts>
					<label>Burst</label>
					<texPath>UI/Gizmos/FireRate_Burst</texPath>
				</li>
			</fireModes>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/Vehicles.VehicleTurretDef[defName="AV_Hwacha_Turret"]</xpath>
		<value>
			<li Class="Vehicles.CETurretDataDefModExtension">
				<ammoSet>AmmoSet_Hwacha</ammoSet>
				<shotHeight>2.1</shotHeight>
				<speed>30</speed>
				<sway>10</sway>
				<spread>0.1</spread>
				<recoil>30</recoil>
			</li>
		</value>
	</Operation>

	<!-- Hwacha -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/Vehicles.VehicleDef[defName="AV_Hwacha"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>2</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/Vehicles.VehicleDef[defName="AV_Hwacha"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>1</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/Vehicles.VehicleDef[defName="AV_Hwacha"]/components/li[key="LeftWheel"]/armor/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>1</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/Vehicles.VehicleDef[defName="AV_Hwacha"]/components/li[key="LeftWheel"]/armor/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>0.5</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/Vehicles.VehicleDef[defName="AV_Hwacha"]/components/li[key="RightWheel"]/armor/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>1</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/Vehicles.VehicleDef[defName="AV_Hwacha"]/components/li[key="RightWheel"]/armor/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>0.5</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/Vehicles.VehicleDef[defName="AV_Hwacha"]/components/li[key="WoodenStructure"]/armor/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>2</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/Vehicles.VehicleDef[defName="AV_Hwacha"]/components/li[key="WoodenStructure"]/armor/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>1</ArmorRating_Sharp>
		</value>
	</Operation>

</Patch>