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

	<!--Clean and Replace-->
	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="DankPyon_Turret_Scorpio"]/comps/li[@Class="CompProperties_Refuelable"]</xpath>
	</Operation>

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

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

	<!-- ========== Scorpio - Weapon ========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>DankPyon_Gun_ScorpioTurret</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_ScorpioBolt_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_ScorpioBolt</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
			<noSnapshot>true</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
	</Operation>

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

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/RecipeDef[defName="DankPyon_MakeBullet_ScorpioBolt" or defName="DankPyon_MakeBullet_ScorpioBoltBulk"]</xpath>
	</Operation>

</Patch>