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

	<!-- ========== Colt Peacemaker ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNGun_Revolver_ColtPeacemaker</defName>
		<statBases>
			<Mass>1.19</Mass>
			<RangedWeapon_Cooldown>0.89</RangedWeapon_Cooldown>
			<SightsEfficiency>0.70</SightsEfficiency>
			<ShotSpread>0.16</ShotSpread>
			<SwayFactor>1.33</SwayFactor>
			<Bulk>2.79</Bulk>
			<WorkToMake>3500</WorkToMake>
		</statBases>
		<costList>
			<Steel>30</Steel>
			<ComponentIndustrial>1</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>2.84</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_45Colt_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>12</range>
			<soundCast>RNShot_GenericRevolver</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>4.6</reloadTime>
			<ammoSet>AmmoSet_45Colt</ammoSet>
		</AmmoUser>

		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>

		<weaponTags>
			<li>CE_AI_Pistol</li>
			<li>CE_Sidearm</li>
		</weaponTags>
	</Operation>

	<!-- ========== Colt Walker ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNGun_Revolver_ColtWalker</defName>
		<statBases>
			<Mass>1.79</Mass>
			<RangedWeapon_Cooldown>0.38</RangedWeapon_Cooldown>
			<SightsEfficiency>0.70</SightsEfficiency>
			<ShotSpread>0.36</ShotSpread>
			<SwayFactor>1.22</SwayFactor>
			<Bulk>3.56</Bulk>
			<WorkToMake>5000</WorkToMake>
		</statBases>
		<costList>
			<Steel>35</Steel>
			<ComponentIndustrial>2</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>2.58</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_SlowMusketBall</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>12</range>
			<soundCast>RNShot_GenericRevolver</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>5</magazineSize>
			<reloadTime>15</reloadTime>
			<ammoSet>AmmoSet_SlowMusketBall</ammoSet>
		</AmmoUser>

		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>

		<weaponTags>
			<li>CE_Sidearm</li>
		</weaponTags>
	</Operation>

	<!-- ========== Remington 1875 ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNGun_Revolver_RemingtonSingleActionArmy</defName>
		<statBases>
			<Mass>1.18</Mass>
			<RangedWeapon_Cooldown>0.90</RangedWeapon_Cooldown>
			<SightsEfficiency>0.70</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>1.56</SwayFactor>
			<Bulk>3.51</Bulk>
			<WorkToMake>3500</WorkToMake>
		</statBases>
		<costList>
			<Steel>30</Steel>
			<ComponentIndustrial>1</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>3.28</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_45Colt_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>15</range>
			<soundCast>RNShot_GenericRevolver</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>4.6</reloadTime>
			<ammoSet>AmmoSet_45Colt</ammoSet>
		</AmmoUser>

		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>

		<weaponTags>
			<li>CE_AI_Pistol</li>
			<li>CE_Sidearm</li>
		</weaponTags>
	</Operation>

	<!-- ========== Smith & Wesson Model 3R ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNGun_Revolver_SWModel3R</defName>
		<statBases>
			<Mass>1.35</Mass>
			<RangedWeapon_Cooldown>0.39</RangedWeapon_Cooldown>
			<SightsEfficiency>0.70</SightsEfficiency>
			<ShotSpread>0.15</ShotSpread>
			<SwayFactor>1.47</SwayFactor>
			<Bulk>3.05</Bulk>
			<WorkToMake>5000</WorkToMake>
		</statBases>
		<costList>
			<Steel>30</Steel>
			<ComponentIndustrial>2</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>2.93</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_44Magnum_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>16</range>
			<soundCast>RNShotColtPython</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>5</reloadTime>
			<ammoSet>AmmoSet_44Magnum</ammoSet>
		</AmmoUser>

		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>

		<weaponTags>
			<li>CE_AI_Pistol</li>
			<li>CE_Sidearm</li>
		</weaponTags>
	</Operation>

	<!-- ========== Smith & Wesson Model 29 ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNGun_Revolver_SWModel29R</defName>
		<statBases>
			<Mass>1.35</Mass>
			<RangedWeapon_Cooldown>0.39</RangedWeapon_Cooldown>
			<SightsEfficiency>0.70</SightsEfficiency>
			<ShotSpread>0.15</ShotSpread>
			<SwayFactor>1.47</SwayFactor>
			<Bulk>3.05</Bulk>
			<WorkToMake>5000</WorkToMake>
		</statBases>
		<costList>
			<Steel>30</Steel>
			<ComponentIndustrial>2</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>2.93</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_44Magnum_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>12</range>
			<soundCast>RNShotColtPython</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>4.6</reloadTime>
			<ammoSet>AmmoSet_44Magnum</ammoSet>
		</AmmoUser>

		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>

		<weaponTags>
			<li>CE_AI_Pistol</li>
			<li>CE_Sidearm</li>
		</weaponTags>
	</Operation>

	<!-- ========== Browning HiPower ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RNGun_BrowningHiPower_Pistol</defName>
		<statBases>
			<WorkToMake>5000</WorkToMake>
			<Mass>1.11</Mass>
			<Bulk>2.00</Bulk>
			<SwayFactor>1.07</SwayFactor>
			<ShotSpread>0.15</ShotSpread>
			<SightsEfficiency>0.80</SightsEfficiency>
			<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>30</Steel>
			<ComponentIndustrial>2</ComponentIndustrial>
		</costList>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_9x19mmPara_FMJ</defaultProjectile>
			<warmupTime>0.3</warmupTime>
			<range>18</range>
			<soundCast>RNShot_CZ75B</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>13</magazineSize>
			<reloadTime>1.7</reloadTime>
			<ammoSet>AmmoSet_9x19mmPara</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>SimpleGun</li>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!-- == Shared patches for firearm melee tools == -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="RNGun_Revolver_RemingtonSingleActionArmy" or
			defName="RNGun_Revolver_ColtPeacemaker" or
			defName="RNGun_Revolver_ColtWalker" or
			defName="RNGun_Revolver_SWModel3R" or
			defName="RNGun_Revolver_SWModel29R" or
			defName="RNGun_BrowningHiPower_Pistol"
			]/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>

</Patch>