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

	<!--===== Melee Attacks =====-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="GW_TotE_Firepike"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>5</power>
					<cooldownTime>2.02</cooldownTime>
					<armorPenetrationBlunt>1.63</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<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>
			</tools>
		</value>
	</Operation>
	
	<!--===== Firepike =====-->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>GW_TotE_Firepike</defName>
		<statBases>
			<Mass>38.6</Mass>
			<RangedWeapon_Cooldown>0.82</RangedWeapon_Cooldown>
			<SightsEfficiency>1.65</SightsEfficiency>
			<ShotSpread>4.0</ShotSpread>
			<SwayFactor>1</SwayFactor>
			<Bulk>19.8</Bulk>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_Flamethrower_Prometheum</defaultProjectile>
			<warmupTime>1.3</warmupTime>
			<range>42</range>
			<minRange>4</minRange>
			<burstShotCount>8</burstShotCount>
			<soundCast>GW_SM_Flamer_Sound</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
			<recoilAmount>0.3</recoilAmount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<ai_AvoidFriendlyFireRadius>3</ai_AvoidFriendlyFireRadius>
		</Properties>
		<AmmoUser>
			<magazineSize>80</magazineSize>
			<reloadTime>3</reloadTime>
			<ammoSet>AmmoSet_Flamethrower</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>False</aiUseBurstMode>
			<aiAimMode>SuppressFire</aiAimMode>
			<noSingleShot>true</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>NoSwitch</li>
		</weaponTags>
	</Operation>

</Patch>