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

	<!-- === Tools === -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="GF40K_Flamer"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>stock</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>8</power>
					<cooldownTime>1.55</cooldownTime>
					<chanceFactor>1.5</chanceFactor>
					<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Stock</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5</power>
					<cooldownTime>2.02</cooldownTime>
					<armorPenetrationBlunt>1.630</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>8</power>
					<cooldownTime>1.55</cooldownTime>
					<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === Tools === -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="GF40K_RelicFlamer"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>stock</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>9</power>
					<cooldownTime>1.44</cooldownTime>
					<chanceFactor>1.5</chanceFactor>
					<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Stock</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>6</power>
					<cooldownTime>1.9</cooldownTime>
					<armorPenetrationBlunt>1.630</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>1.44</cooldownTime>
					<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- === Flamer === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GF40K_Flamer</defName>
		<statBases>
			<Mass>6.5</Mass>
			<Bulk>8.0</Bulk>
			<SwayFactor>1.25</SwayFactor>
			<ShotSpread>2.0</ShotSpread>
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.0</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Flamethrower_Prometheum</defaultProjectile>
			<burstShotCount>20</burstShotCount>
			<ticksBetweenBurstShots>3</ticksBetweenBurstShots>
			<warmupTime>1.0</warmupTime>
			<range>16</range>
			<minRange>3</minRange>
			<soundCast>HissFlamethrower</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>0</muzzleFlashScale>
			<ai_IsBuildingDestroyer>True</ai_IsBuildingDestroyer>
			<targetParams>
				<canTargetLocations>True</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>60</magazineSize>
			<reloadTime>5</reloadTime>
			<ammoSet>AmmoSet_Flamethrower</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>SuppressFire</aiAimMode>
			<aiUseBurstMode>True</aiUseBurstMode>
			<aimedBurstShotCount>10</aimedBurstShotCount>
		</FireModes>
	</Operation>

	<!-- === Relic Flamer === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GF40K_RelicFlamer</defName>
		<statBases>
			<Mass>6.5</Mass>
			<Bulk>8.0</Bulk>
			<SwayFactor>1.20</SwayFactor>
			<ShotSpread>1.8</ShotSpread>
			<SightsEfficiency>1.1</SightsEfficiency>
			<RangedWeapon_Cooldown>0.32</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.0</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Flamethrower_Prometheum</defaultProjectile>
			<burstShotCount>20</burstShotCount>
			<ticksBetweenBurstShots>3</ticksBetweenBurstShots>
			<warmupTime>1.0</warmupTime>
			<range>18</range>
			<minRange>3</minRange>
			<soundCast>HissFlamethrower</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>0</muzzleFlashScale>
			<ai_IsBuildingDestroyer>True</ai_IsBuildingDestroyer>
			<targetParams>
				<canTargetLocations>True</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>60</magazineSize>
			<reloadTime>5</reloadTime>
			<ammoSet>AmmoSet_Flamethrower</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>SuppressFire</aiAimMode>
			<aiUseBurstMode>True</aiUseBurstMode>
			<aimedBurstShotCount>10</aimedBurstShotCount>
		</FireModes>
	</Operation>

</Patch>