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

	<!-- ========== Scorpion - Turret ========== -->

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="VFEC_Turret_Scorpion"]/comps/li[@Class="CompProperties_Refuelable"]</xpath>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VFEC_Turret_Scorpion"]/thingClass</xpath>
		<value>
			<thingClass>CombatExtended.Building_TurretGunCE</thingClass>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VFEC_Turret_Scorpion"]/fillPercent</xpath>
		<value>
			<fillPercent>0.85</fillPercent>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VFEC_Turret_Scorpion"]/building/turretBurstCooldownTime</xpath>
		<value>
			<turretBurstCooldownTime>1.8</turretBurstCooldownTime>
		</value>
	</Operation>

	<!-- ========== Scorpion - Weapon ========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VFEC_TurretGun_Scorpion</defName>
		<statBases>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>1</ShotSpread>
			<SwayFactor>1</SwayFactor>
			<Bulk>4.00</Bulk>
			<RangedWeapon_Cooldown>1.8</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Projectile_ScorpionBolt_Steel</defaultProjectile>
			<warmupTime>1.0</warmupTime>
			<range>42</range>
			<soundCast>Bow_Large</soundCast>
			<recoilPattern>Mounted</recoilPattern>
		</Properties>
		<AmmoUser>
			<magazineSize>1</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_ScorpionBolt</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
			<noSnapshot>true</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="VFEC_TurretGun_Scorpion"]</xpath>
		<value>
			<weaponTags>
				<li>TurretGun</li>
			</weaponTags>
		</value>
	</Operation>

</Patch>