<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="BioTurretGun"]/thingClass</xpath>
		<value>
			<thingClass>CombatExtended.Building_TurretGunCE</thingClass>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="BioTurretGun"]/statBases</xpath>
		<value>
			<AimingAccuracy>0.25</AimingAccuracy>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="BioTurretGun"]/statBases/ShootingAccuracyTurret</xpath>
		<value>
			<ShootingAccuracyTurret>0.5</ShootingAccuracyTurret>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="BioTurretGun"]/statBases/Mass</xpath>
		<value>
			<Mass>25</Mass>
		</value>
	</Operation>

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

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

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

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>BioGun_TurretImprovised</defName>
		<statBases>
			<Mass>5.35</Mass>
			<Bulk>5.70</Bulk>
			<SwayFactor>1.31</SwayFactor>
			<ShotSpread>0.18</ShotSpread>
			<SightsEfficiency>1</SightsEfficiency>
			<RangedWeapon_Cooldown>0.39</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_MantoLauncher</defaultProjectile>
			<warmupTime>1.1</warmupTime>
			<range>31</range>
			<ticksBetweenBurstShots>10</ticksBetweenBurstShots>
			<burstShotCount>3</burstShotCount>
			<soundCast>ShotMantoLauncher</soundCast>
			<muzzleFlashScale>14</muzzleFlashScale>
			<recoilAmount>2.93</recoilAmount>
			<ignorePartialLoSBlocker>True</ignorePartialLoSBlocker>
			<targetParams>
				<canTargetLocations>True</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>63</magazineSize>
			<reloadTime>5.1</reloadTime>
			<ammoSet>AmmoSet_MantoPoison</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
			<noSnapshot>true</noSnapshot>
			<noSingleShot>true</noSingleShot>
		</FireModes>
		<!-- Disallow with Run And Gun -->
		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>
</Patch>