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

	<!-- ========== Melee Tools ========== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="VWEFT_Gun_HeavyRevolver" or
			defName="VWEFT_Gun_VolcanicPistol" or
			defName="VWEFT_Gun_FrontierPistol"
			]/tools </xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>grip</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.54</cooldownTime>
					<chanceFactor>1.5</chanceFactor>
					<armorPenetrationBlunt>0.555</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Grip</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.54</cooldownTime>
					<armorPenetrationBlunt>0.555</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VWEFT_Gun_RollingBlockRifle" or defName="VWEFT_Gun_RepeatingShotgun"]/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>

	<!-- Crafting Recipes -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="VWEFT_Gun_HeavyRevolver" or
			defName="VWEFT_Gun_VolcanicPistol" or
			defName="VWEFT_Gun_FrontierPistol"
			]/costList/ComponentIndustrial </xpath>
		<value>
			<ComponentIndustrial>2</ComponentIndustrial>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VWEFT_Gun_RepeatingShotgun"]/costList/ComponentIndustrial</xpath>
		<value>
			<ComponentIndustrial>3</ComponentIndustrial>
		</value>
	</Operation>

	<!-- Heavy Revolver -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWEFT_Gun_HeavyRevolver</defName>
		<statBases>
			<Mass>1.90</Mass>
			<RangedWeapon_Cooldown>0.88</RangedWeapon_Cooldown>
			<SightsEfficiency>0.7</SightsEfficiency>
			<ShotSpread>0.15</ShotSpread>
			<SwayFactor>1.88</SwayFactor>
			<Bulk>3.75</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>2.2</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_44MagnumHR_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>12</range>
			<soundCast>Shot_Revolver</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>5.1</reloadTime>
			<ammoSet>AmmoSet_44MagnumHR</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Pistol</li>
			<li>CE_OneHandedWeapon</li>
			<li>FrontierGunAdvanced</li>
		</weaponTags>
	</Operation>

	<!-- Volcanic Pistol -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWEFT_Gun_VolcanicPistol</defName>
		<statBases>
			<Mass>1.31</Mass>
			<RangedWeapon_Cooldown>0.75</RangedWeapon_Cooldown>
			<SightsEfficiency>0.70</SightsEfficiency>
			<ShotSpread>0.16</ShotSpread>
			<SwayFactor>1.70</SwayFactor>
			<Bulk>3.80</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.5</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_25ACPHR_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>12</range>
			<soundCast>Shot_Revolver</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>10</magazineSize>
			<reloadTime>0.85</reloadTime>
			<ammoSet>AmmoSet_25ACPHR</ammoSet>
			<reloadOneAtATime>true</reloadOneAtATime>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
			<noSnapshot>false</noSnapshot>
			<noSingleShot>false</noSingleShot>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Pistol</li>
			<li>CE_OneHandedWeapon</li>
			<li>FrontierGunSimple</li>
		</weaponTags>
	</Operation>

	<!-- ========== Frontier Pistol ========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWEFT_Gun_FrontierPistol</defName>
		<statBases>
			<Mass>1.13</Mass>
			<RangedWeapon_Cooldown>0.37</RangedWeapon_Cooldown>
			<SightsEfficiency>0.7</SightsEfficiency>
			<ShotSpread>0.16</ShotSpread>
			<SwayFactor>1.42</SwayFactor>
			<Bulk>3.12</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>2.5</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_763x25mmMauserHR_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>12</range>
			<soundCast>Shot_Autopistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>10</magazineSize>
			<reloadTime>4.3</reloadTime>
			<ammoSet>AmmoSet_763x25mmMauserHR</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
		</FireModes>
		<weaponTags>
			<li>CE_OneHandedWeapon</li>
			<li>SimpleGun</li>
			<li>FrontierGunSimple</li>
		</weaponTags>
	</Operation>

	<!-- ========== Rolling Block Rifle ========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWEFT_Gun_RollingBlockRifle</defName>
		<statBases>
			<Mass>4.20</Mass>
			<RangedWeapon_Cooldown>0.88</RangedWeapon_Cooldown>
			<SightsEfficiency>2.15</SightsEfficiency>
			<ShotSpread>0.01</ShotSpread>
			<SwayFactor>1.73</SwayFactor>
			<Bulk>12.80</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>2.3</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_4570GovHR_FMJ</defaultProjectile>
			<warmupTime>1.1</warmupTime>
			<range>64</range>
			<soundCast>Shot_SniperRifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>1</magazineSize>
			<AmmoGenPerMagOverride>7</AmmoGenPerMagOverride>
			<reloadTime>2.2</reloadTime>
			<ammoSet>AmmoSet_4570GovHR</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
			<li>FrontierGunAdvanced</li>
		</weaponTags>
		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>

	<!-- ========== Repeating Shotgun ========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>VWEFT_Gun_RepeatingShotgun</defName>
		<statBases>
			<Mass>3.60</Mass>
			<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>1.36</SwayFactor>
			<Bulk>9.97</Bulk>
			<SightsEfficiency>1</SightsEfficiency>
		</statBases>
		<Properties>
			<recoilAmount>3.0</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_12GaugeHR_Buck</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>16</range>
			<soundCast>Shot_Shotgun</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>5</magazineSize>
			<reloadOneAtATime>true</reloadOneAtATime>
			<reloadTime>0.85</reloadTime>
			<ammoSet>AmmoSet_12GaugeHR</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
	</Operation>

</Patch>