<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- Hammond P2020 -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>ARL_CombatHandgun</defName>
		<statBases>
			<WorkToMake>5000</WorkToMake>
			<Bulk>1.2</Bulk>
			<Mass>1.2</Mass>
			<SightsEfficiency>0.7</SightsEfficiency>
			<ShotSpread>0.2</ShotSpread>
			<SwayFactor>1</SwayFactor>
			<RangedWeapon_Cooldown>0.3</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>2.53</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_38ACP_FMJ</defaultProjectile>
			<warmupTime>0.3</warmupTime>
			<range>12</range>
			<soundCast>Shot_Autopistol</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>10</magazineSize>
			<reloadTime>1.25</reloadTime>
			<ammoSet>AmmoSet_38ACP</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_CombatHandgun"]/label</xpath>
		<value>
			<label>Hammond P2020</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_CombatHandgun"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>grip</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.075</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Grip</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.102</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.075</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Re-45 -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>ARL_ChargePistol</defName>
		<statBases>
			<WorkToMake>10000</WorkToMake>
			<Bulk>1.75</Bulk>
			<Mass>0.85</Mass>
			<SightsEfficiency>0.7</SightsEfficiency>
			<ShotSpread>0.18</ShotSpread>
			<SwayFactor>0.87</SwayFactor>
			<RangedWeapon_Cooldown>0.38</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>2.60</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_6x24mmCharged</defaultProjectile>
			<burstShotCount>15</burstShotCount>
			<ticksBetweenBurstShots>3</ticksBetweenBurstShots>
			<warmupTime>0.6</warmupTime>
			<range>14</range>
			<soundCast>Shot_ChargeRifle</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>15</magazineSize>
			<reloadTime>1.74</reloadTime>
			<ammoSet>AmmoSet_6x24mmCharged</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_ChargePistol"]/label</xpath>
		<value>
			<label>Re-45 Autopistol</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_ChargePistol"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>grip</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.102</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Grip</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.102</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.75</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Wingman -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>ARL_HandCannon</defName>
		<statBases>
			<WorkToMake>4500</WorkToMake>
			<Bulk>2.1</Bulk>
			<Mass>0.82</Mass>
			<SightsEfficiency>0.7</SightsEfficiency>
			<ShotSpread>0.19</ShotSpread>
			<SwayFactor>0.91</SwayFactor>
			<RangedWeapon_Cooldown>1.4</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>2.42</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_762x39mmSoviet_FMJ</defaultProjectile>
			<warmupTime>0.46</warmupTime>
			<range>16</range>
			<soundCast>Shot_Revolver</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>3.66</reloadTime>
			<ammoSet>AmmoSet_762x39mmSoviet</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_HandCannon"]/label</xpath>
		<value>
			<label>B3 Wingman</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_HandCannon"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>grip</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.075</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Grip</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.102</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.075</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- Mozambique -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>ARL_ShotgunHandgun</defName>
		<statBases>
			<WorkToMake>6000</WorkToMake>
			<Bulk>1.6</Bulk>
			<Mass>0.82</Mass>
			<SightsEfficiency>0.9</SightsEfficiency>
			<ShotSpread>0.19</ShotSpread>
			<SwayFactor>0.91</SwayFactor>
			<RangedWeapon_Cooldown>2</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>3.76</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_38ACP_FMJ</defaultProjectile>
			<burstShotCount>3</burstShotCount>
			<ticksBetweenBurstShots>1</ticksBetweenBurstShots>
			<warmupTime>1.8</warmupTime>
			<range>12</range>
			<soundCast>Shot_Revolver</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>3.66</reloadTime>
			<ammoSet>AmmoSet_38ACP</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_ShotgunHandgun"]/label</xpath>
		<value>
			<label>SA-3 Mozambique</label>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="ARL_ShotgunHandgun"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>grip</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.75</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Grip</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.102</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>9</power>
					<cooldownTime>2</cooldownTime>
					<armorPenetrationBlunt>0.75</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>
</Patch>