<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- ========== OC Tank Cannon ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_OCTurret</defName>
		<statBases>
			<Mass>1120</Mass>
			<RangedWeapon_Cooldown>2.61</RangedWeapon_Cooldown>
			<SightsEfficiency>1.10</SightsEfficiency>
			<ShotSpread>0.01</ShotSpread>
			<SwayFactor>3.04</SwayFactor>
			<Bulk>54.83</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>4.61</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_90mmCannonShell_HEAT</defaultProjectile>
			<warmupTime>4</warmupTime>
			<range>86</range>
			<soundCast>TCannon</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Mounted</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>1</magazineSize>
			<reloadTime>9.8</reloadTime>
			<ammoSet>AmmoSet_90mmCannonShell</ammoSet>
		</AmmoUser>

		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>

		<weaponTags>
			<li>TurretGun</li>
		</weaponTags>

		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>

	<!-- Change cannon name and description to something other than the placeholder "inferno cannon" -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Gun_OCTurret"]/label</xpath>
		<value>
			<label>OC tank cannon</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Gun_OCTurret"]/description</xpath>
		<value>
			<description>90mm cannon mounted on Orion Corp tanks.</description>
		</value>
	</Operation>
</Patch>