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

	<!-- ===== Weapon Tools ===== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RM_Gun_InfernoRifle" or defName="RM_Gun_InfernoLauncher"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>stock</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2.14</cooldownTime>
					<armorPenetrationBlunt>2.75</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
						<li>Poke</li>
					</capacities>
					<power>11</power>
					<cooldownTime>2.74</cooldownTime>
					<armorPenetrationBlunt>3.75</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RM_Gun_ChargeLanceHeavy"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>11</power>
					<cooldownTime>2.74</cooldownTime>
					<armorPenetrationBlunt>3.75</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>rail</label>
					<capacities>
						<li>Blunt</li>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2.14</cooldownTime>
					<armorPenetrationBlunt>3.75</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- ===== Inferno Rifle ===== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RM_Gun_InfernoRifle</defName>
		<statBases>
			<Mass>50.00</Mass>
			<RangedWeapon_Cooldown>2.68</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.35</ShotSpread>
			<SwayFactor>0.19</SwayFactor>
			<Bulk>18.00</Bulk>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_80x256mmFuel_Incendiary</defaultProjectile>
			<warmupTime>4.5</warmupTime>
			<range>82</range>
			<soundCast>InfernoCannon_Fire</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>14</muzzleFlashScale>
			<ai_AvoidFriendlyFireRadius>5</ai_AvoidFriendlyFireRadius>
			<minRange>5</minRange>
			<ai_IsBuildingDestroyer>true</ai_IsBuildingDestroyer>
		</Properties>
		<AmmoUser>
			<magazineSize>1</magazineSize>
			<reloadTime>13.7</reloadTime>
			<ammoSet>AmmoSet_80x256mmFuel</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>MechanoidGunMedium</li>
			<li>NoSwitch</li>
		</weaponTags>
	</Operation>

	<!-- ===== Inferno Launcher ===== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RM_Gun_InfernoLauncher</defName>
		<statBases>
			<Mass>75.00</Mass>
			<RangedWeapon_Cooldown>2.53</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.35</ShotSpread>
			<SwayFactor>0.21</SwayFactor>
			<Bulk>20.00</Bulk>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_80x256mmFuel_Incendiary</defaultProjectile>
			<warmupTime>4.5</warmupTime>
			<range>76</range>
			<ticksBetweenBurstShots>25</ticksBetweenBurstShots>
			<burstShotCount>4</burstShotCount>
			<soundCast>InfernoCannon_Fire</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>14</muzzleFlashScale>
			<ai_AvoidFriendlyFireRadius>5</ai_AvoidFriendlyFireRadius>
			<minRange>5</minRange>
			<ai_IsBuildingDestroyer>true</ai_IsBuildingDestroyer>
		</Properties>
		<AmmoUser>
			<magazineSize>4</magazineSize>
			<reloadTime>14.7</reloadTime>
			<ammoSet>AmmoSet_80x256mmFuel</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>NoSwitch</li>
		</weaponTags>
	</Operation>

	<!-- ===== Heavy Charge Lance ===== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RM_Gun_ChargeLanceHeavy</defName>
		<statBases>
			<Mass>8.5</Mass>
			<RangedWeapon_Cooldown>0.45</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.02</ShotSpread>
			<SwayFactor>1</SwayFactor>
			<Bulk>14.00</Bulk>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_5x35mmCharged</defaultProjectile>
			<warmupTime>1.6</warmupTime>
			<range>62</range>
			<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
			<burstShotCount>3</burstShotCount>
			<soundCast>ChargeLance_Fire</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>15</magazineSize>
			<reloadTime>3</reloadTime>
			<ammoSet>AmmoSet_5x35mmCharged</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>MechanoidGunHeavy</li>
			<li>NoSwitch</li>
		</weaponTags>
	</Operation>

	<!-- ===== Locust Laser ===== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="RM_Bullet_LocustLaser"]/projectile/damageAmountBase</xpath>
		<value>
			<damageAmountBase>14</damageAmountBase>
		</value>
	</Operation>

</Patch>