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

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Vanilla Weapons Expanded - Quickdraw</li>
		</mods>

		<match Class="PatchOperationSequence">
			<operations>

				<!-- ========== Melee Tools ========== -->
				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VWEFT_Gun_Derringer"]/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>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VWEFT_Gun_LeverActionShotgun"]/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>
				</li>

				<!-- Derringer -->
				<li Class="CombatExtended.PatchOperationMakeGunCECompatible">
					<defName>VWEFT_Gun_Derringer</defName>
					<statBases>
						<Mass>0.31</Mass>
						<RangedWeapon_Cooldown>0.85</RangedWeapon_Cooldown>
						<SightsEfficiency>0.70</SightsEfficiency>
						<ShotSpread>0.19</ShotSpread>
						<SwayFactor>0.51</SwayFactor>
						<Bulk>1.23</Bulk>
					</statBases>
					<Properties>
						<recoilAmount>2.0</recoilAmount>
						<verbClass>CombatExtended.Verb_ShootCE</verbClass>
						<hasStandardCommand>true</hasStandardCommand>
						<defaultProjectile>Bullet_41RimfireHR_FMJ</defaultProjectile>
						<warmupTime>0.4</warmupTime>
						<range>8</range>
						<soundCast>Shot_Revolver</soundCast>
						<soundCastTail>GunTail_Light</soundCastTail>
						<muzzleFlashScale>9</muzzleFlashScale>
					</Properties>
					<AmmoUser>
						<magazineSize>2</magazineSize>
						<reloadTime>1</reloadTime>
						<ammoSet>AmmoSet_41RimfireHR</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>
				</li>

				<!-- ========== Lever Action Shotgun ========== -->
				<li Class="CombatExtended.PatchOperationMakeGunCECompatible">
					<defName>VWEFT_Gun_LeverActionShotgun</defName>
					<statBases>
						<Mass>3.60</Mass>
						<RangedWeapon_Cooldown>0.79</RangedWeapon_Cooldown>
						<SightsEfficiency>1</SightsEfficiency>
						<ShotSpread>0.11</ShotSpread>
						<SwayFactor>1.36</SwayFactor>
						<Bulk>9.97</Bulk>
					</statBases>
					<Properties>
						<recoilAmount>2.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>
						<reloadTime>0.85</reloadTime>
						<ammoSet>AmmoSet_12GaugeHR</ammoSet>
						<reloadOneAtATime>true</reloadOneAtATime>
					</AmmoUser>
					<FireModes>
						<aiUseBurstMode>FALSE</aiUseBurstMode>
						<aiAimMode>Snapshot</aiAimMode>
					</FireModes>
					<weaponTags>
						<li>FrontierGunAdvanced</li>
					</weaponTags>
				</li>

			</operations>
		</match>
	</Operation>

</Patch>