<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- ========== Remove EMP Device  =========== -->
	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="AD_EMB"]</xpath>
	</Operation>

	<!-- ========== Melee Tools  =========== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="AD_CruciblePistol" or
			defName="AD_FedPistol" or
			defName="AD_AuxPistol"
			]/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="AD_HeatProjector" or
			defName="AD_FedHeatCannon" or
			defName="AD_CruciblePresicionRifle" or
			defName="AD_FedSniperRifle" or
			defName="AD_CrucibleRifle" or
			defName="AD_FedRifle" or
			defName="AD_PlasmaCaliver" or
			defName="AD_FedPlasmaCaster" or
			defName="AD_CrucibleCarbine" or
			defName="Gun_MCrucibleRifle" or
			defName="AD_Sentinel"
			]/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>

	<!-- Aux Weapons -->

	<!-- ==========  Aux Plasma Rifle  =========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>AD_Sentinel</defName>
		<statBases>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>1.34</SwayFactor>
			<Bulk>10.80</Bulk>
			<Mass>5.60</Mass>
			<RangedWeapon_Cooldown>0.45</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>0.74</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_PlasmaRifle_Fed</defaultProjectile>
			<warmupTime>1.35</warmupTime>
			<range>55</range>
			<soundCast>RS_ShotCR</soundCast>
			<muzzleFlashScale>12</muzzleFlashScale>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
		</FireModes>
		<AmmoUser>
			<magazineSize>3</magazineSize>
			<reloadTime>5</reloadTime>
		</AmmoUser>
	</Operation>

	<!-- ==========  Aux Pistol  =========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>AD_AuxPistol</defName>
		<statBases>
			<SightsEfficiency>0.7</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>1.23</SwayFactor>
			<Bulk>2.50</Bulk>
			<Mass>1.60</Mass>
			<RangedWeapon_Cooldown>1.50</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_AuxiliaryPistol</defaultProjectile>
			<warmupTime>0.8</warmupTime>
			<burstShotCount>2</burstShotCount>
			<ticksBetweenBurstShots>25</ticksBetweenBurstShots>
			<range>18</range>
			<soundCast>RS_ShotCP</soundCast>
			<muzzleFlashScale>10</muzzleFlashScale>
		</Properties>
		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
		</FireModes>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>3</reloadTime>
		</AmmoUser>
	</Operation>

	<!-- ==========  Makeshift Crucible Rifle  =========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_MCrucibleRifle</defName>
		<statBases>
			<WorkToMake>20000</WorkToMake>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.14</ShotSpread>
			<SwayFactor>1.34</SwayFactor>
			<Bulk>9.90</Bulk>
			<Mass>4.20</Mass>
			<RangedWeapon_Cooldown>1.15</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>0.78</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_MakeshiftCrucibleRifle</defaultProjectile>
			<warmupTime>1.7</warmupTime>
			<range>55</range>
			<soundCast>RS_ShotCP</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<FireModes/>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>6</reloadTime>
		</AmmoUser>
	</Operation>

	<!-- ==========  AD Crucible Rifle  =========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>AD_CrucibleRifle</defName>
		<statBases>
			<WorkToMake>52000</WorkToMake>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.16</ShotSpread>
			<SwayFactor>1.44</SwayFactor>
			<Bulk>9.50</Bulk>
			<Mass>4.80</Mass>
			<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>0.78</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_CrucibleRifle</defaultProjectile>
			<warmupTime>1.6</warmupTime>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>25</ticksBetweenBurstShots>
			<range>55</range>
			<soundCast>RS_ShotCR</soundCast>
			<muzzleFlashScale>12</muzzleFlashScale>
		</Properties>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<AmmoUser>
			<magazineSize>15</magazineSize>
			<reloadTime>4</reloadTime>
		</AmmoUser>
	</Operation>
	
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="AD_CrucibleRifle"]/comps</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="AD_CrucibleRifle"]</xpath>
			<value>
				<comps />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="AD_CrucibleRifle"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_UnderBarrel">
				<standardLabel>switch to high-output crucible mode</standardLabel>
				<underBarrelLabel>switch to high-penetration optical mode</underBarrelLabel>
				<oneAmmoHolder>True</oneAmmoHolder>
				<propsUnderBarrel>
					<magazineSize>15</magazineSize>
					<reloadTime>4</reloadTime>
				</propsUnderBarrel>
				<verbPropsUnderBarrel>
					<recoilAmount>0.78</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_CrucibleRifleAD</defaultProjectile>
					<warmupTime>1.6</warmupTime>
					<burstShotCount>5</burstShotCount>
					<ticksBetweenBurstShots>25</ticksBetweenBurstShots>
					<range>55</range>
					<soundCast>RS_ShotCR</soundCast>
					<muzzleFlashScale>12</muzzleFlashScale>
				</verbPropsUnderBarrel>
				<propsFireModesUnderBarrel>
					<aiAimMode>AimedShot</aiAimMode>
					<noSingleShot>false</noSingleShot>
					<aimedBurstShotCount>3</aimedBurstShotCount>
					<aiUseBurstMode>TRUE</aiUseBurstMode>
				</propsFireModesUnderBarrel>
			</li>
		</value>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>AD_FedRifle</defName>
		<statBases>
			<WorkToMake>52000</WorkToMake>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.16</ShotSpread>
			<SwayFactor>1.44</SwayFactor>
			<Bulk>9.50</Bulk>
			<Mass>4.80</Mass>
			<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>0.78</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_CrucibleRifleAD</defaultProjectile>
			<warmupTime>1.6</warmupTime>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>18</ticksBetweenBurstShots>
			<range>55</range>
			<soundCast>RS_ShotCR</soundCast>
			<muzzleFlashScale>12</muzzleFlashScale>
		</Properties>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<AmmoUser>
			<magazineSize>15</magazineSize>
			<reloadTime>4</reloadTime>
		</AmmoUser>
	</Operation>

	<!-- ==========  AD Crucible Pistol  =========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>AD_CruciblePistol</defName>
		<statBases>
			<WorkToMake>30500</WorkToMake>
			<SightsEfficiency>0.7</SightsEfficiency>
			<ShotSpread>0.18</ShotSpread>
			<SwayFactor>1.08</SwayFactor>
			<Bulk>3.90</Bulk>
			<Mass>2.40</Mass>
			<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>0.89</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_CruciblePistol</defaultProjectile>
			<warmupTime>0.7</warmupTime>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>15</ticksBetweenBurstShots>
			<range>21</range>
			<soundCast>RS_ShotCP</soundCast>
			<muzzleFlashScale>12</muzzleFlashScale>
		</Properties>
		<weaponTags>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
		</FireModes>
		<AmmoUser>
			<magazineSize>15</magazineSize>
			<reloadTime>3</reloadTime>
		</AmmoUser>
	</Operation>
	
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="AD_CruciblePistol"]/comps</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="AD_CruciblePistol"]</xpath>
			<value>
				<comps />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="AD_CruciblePistol"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_UnderBarrel">
				<standardLabel>switch to high-output crucible mode</standardLabel>
				<underBarrelLabel>switch to high-penetration optical mode</underBarrelLabel>
				<oneAmmoHolder>True</oneAmmoHolder>
				<propsUnderBarrel>
					<magazineSize>15</magazineSize>
					<reloadTime>3</reloadTime>
				</propsUnderBarrel>
				<verbPropsUnderBarrel>
					<recoilAmount>0.89</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_CruciblePistolAD</defaultProjectile>
					<warmupTime>0.7</warmupTime>
					<burstShotCount>5</burstShotCount>
					<ticksBetweenBurstShots>15</ticksBetweenBurstShots>
					<range>21</range>
					<soundCast>RS_ShotCP</soundCast>
					<muzzleFlashScale>12</muzzleFlashScale>
				</verbPropsUnderBarrel>
				<propsFireModesUnderBarrel>
					<aiAimMode>AimedShot</aiAimMode>
					<noSingleShot>false</noSingleShot>
					<aimedBurstShotCount>3</aimedBurstShotCount>
					<aiUseBurstMode>FALSE</aiUseBurstMode>
				</propsFireModesUnderBarrel>
			</li>
		</value>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>AD_FedPistol</defName>
		<statBases>
			<WorkToMake>30500</WorkToMake>
			<SightsEfficiency>0.7</SightsEfficiency>
			<ShotSpread>0.18</ShotSpread>
			<SwayFactor>1.08</SwayFactor>
			<Bulk>3.90</Bulk>
			<Mass>2.40</Mass>
			<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>0.89</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_CruciblePistolAD</defaultProjectile>
			<warmupTime>0.7</warmupTime>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>15</ticksBetweenBurstShots>
			<range>21</range>
			<soundCast>RS_ShotCP</soundCast>
			<muzzleFlashScale>12</muzzleFlashScale>
		</Properties>
		<weaponTags>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
		</FireModes>
		<AmmoUser>
			<magazineSize>15</magazineSize>
			<reloadTime>3</reloadTime>
		</AmmoUser>
	</Operation>

	<!-- ==========  AD Heat Cannon  =========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>AD_HeatProjector</defName>
		<statBases>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.24</ShotSpread>
			<SwayFactor>1.48</SwayFactor>
			<Bulk>12.70</Bulk>
			<Mass>7.50</Mass>
			<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>0.79</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_HeatCannon</defaultProjectile>
			<warmupTime>1.35</warmupTime>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>40</ticksBetweenBurstShots>
			<range>55</range>
			<soundCast>RS_ShotHC</soundCast>
			<muzzleFlashScale>12</muzzleFlashScale>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
		</FireModes>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>6</reloadTime>
		</AmmoUser>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>AD_FedHeatCannon</defName>
		<statBases>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.24</ShotSpread>
			<SwayFactor>1.48</SwayFactor>
			<Bulk>12.70</Bulk>
			<Mass>7.50</Mass>
			<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>0.79</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_HeatCannon</defaultProjectile>
			<warmupTime>1.35</warmupTime>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>40</ticksBetweenBurstShots>
			<range>55</range>
			<soundCast>RS_ShotHC</soundCast>
			<muzzleFlashScale>12</muzzleFlashScale>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
		</Properties>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
		</FireModes>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>6</reloadTime>
		</AmmoUser>
	</Operation>

	<!-- ==========  AD Crucible Precision Rifle  =========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>AD_CruciblePresicionRifle</defName>
		<statBases>
			<SightsEfficiency>2.60</SightsEfficiency>
			<ShotSpread>0.09</ShotSpread>
			<SwayFactor>1.46</SwayFactor>
			<Bulk>12.40</Bulk>
			<Mass>5.20</Mass>
			<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>0.53</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_CruciblePrecisionRifle</defaultProjectile>
			<warmupTime>1.6</warmupTime>
			<range>75</range>
			<soundCast>RS_ShotCPR</soundCast>
			<muzzleFlashScale>12</muzzleFlashScale>
		</Properties>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>4</reloadTime>
		</AmmoUser>
	</Operation>
	
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="AD_CruciblePresicionRifle"]/comps</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="AD_CruciblePresicionRifle"]</xpath>
			<value>
				<comps />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="AD_CruciblePresicionRifle"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_UnderBarrel">
				<standardLabel>switch to high-output crucible mode</standardLabel>
				<underBarrelLabel>switch to high-penetration optical mode</underBarrelLabel>
				<oneAmmoHolder>True</oneAmmoHolder>
				<propsUnderBarrel>
					<magazineSize>15</magazineSize>
					<reloadTime>4</reloadTime>
				</propsUnderBarrel>
				<verbPropsUnderBarrel>
					<recoilAmount>0.53</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_CruciblePrecisionRifleAD</defaultProjectile>
					<warmupTime>1.6</warmupTime>
					<range>75</range>
					<soundCast>RS_ShotCPR</soundCast>
					<muzzleFlashScale>12</muzzleFlashScale>
				</verbPropsUnderBarrel>
				<propsFireModesUnderBarrel>
					<aiAimMode>AimedShot</aiAimMode>
					<noSingleShot>false</noSingleShot>
					<aimedBurstShotCount>1</aimedBurstShotCount>
				</propsFireModesUnderBarrel>
			</li>
		</value>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>AD_FedSniperRifle</defName>
		<statBases>
			<SightsEfficiency>2.60</SightsEfficiency>
			<ShotSpread>0.09</ShotSpread>
			<SwayFactor>1.46</SwayFactor>
			<Bulk>12.40</Bulk>
			<Mass>5.20</Mass>
			<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>0.53</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_CruciblePrecisionRifleAD</defaultProjectile>
			<warmupTime>1.6</warmupTime>
			<range>75</range>
			<soundCast>RS_ShotCPR</soundCast>
			<muzzleFlashScale>12</muzzleFlashScale>
		</Properties>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>4</reloadTime>
		</AmmoUser>
	</Operation>

	<!-- ==========  AD Plasma Caster  =========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>AD_PlasmaCaliver</defName>
		<statBases>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.25</ShotSpread>
			<SwayFactor>1.96</SwayFactor>
			<Bulk>18.20</Bulk>
			<Mass>10.00</Mass>
			<RangedWeapon_Cooldown>1.2</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>0.50</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_PlasmaCaster</defaultProjectile>
			<warmupTime>1.9</warmupTime>
			<minRange>3</minRange>
			<range>35</range>
			<soundCast>RS_ShotHarmonizer</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>18</muzzleFlashScale>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
			<ignorePartialLoSBlocker>true</ignorePartialLoSBlocker>
		</Properties>
		<FireModes/>
		<AmmoUser>
			<magazineSize>3</magazineSize>
			<reloadTime>5</reloadTime>
		</AmmoUser>
	</Operation>
	
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="AD_PlasmaCaliver"]/comps</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="AD_PlasmaCaliver"]</xpath>
			<value>
				<comps />
			</value>
		</nomatch>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="AD_PlasmaCaliver"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_UnderBarrel">
				<standardLabel>switch to cluster mode</standardLabel>
				<underBarrelLabel>switch to siege mode</underBarrelLabel>
				<oneAmmoHolder>True</oneAmmoHolder>
				<propsUnderBarrel>
					<magazineSize>3</magazineSize>
					<reloadTime>5</reloadTime>
				</propsUnderBarrel>
				<verbPropsUnderBarrel>
					<recoilAmount>0.50</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_PlasmaCaster_Fed</defaultProjectile>
					<warmupTime>1.9</warmupTime>
					<minRange>3</minRange>
					<range>35</range>
					<soundCast>RS_ShotHarmonizer</soundCast>
					<soundCastTail>GunTail_Heavy</soundCastTail>
					<muzzleFlashScale>18</muzzleFlashScale>
					<targetParams>
						<canTargetLocations>true</canTargetLocations>
					</targetParams>
					<ignorePartialLoSBlocker>true</ignorePartialLoSBlocker>
				</verbPropsUnderBarrel>
				<propsFireModesUnderBarrel>
					<aiAimMode>AimedShot</aiAimMode>
				</propsFireModesUnderBarrel>
			</li>
		</value>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>AD_FedPlasmaCaster</defName>
		<statBases>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.25</ShotSpread>
			<SwayFactor>1.96</SwayFactor>
			<Bulk>18.20</Bulk>
			<Mass>10.00</Mass>
			<RangedWeapon_Cooldown>1.2</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>0.50</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_PlasmaCaster_Fed</defaultProjectile>
			<warmupTime>1.9</warmupTime>
			<minRange>3</minRange>
			<range>35</range>
			<soundCast>RS_ShotHarmonizer</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>18</muzzleFlashScale>
			<targetParams>
				<canTargetLocations>true</canTargetLocations>
			</targetParams>
			<ignorePartialLoSBlocker>true</ignorePartialLoSBlocker>
		</Properties>
		<FireModes/>
		<AmmoUser>
			<magazineSize>3</magazineSize>
			<reloadTime>5</reloadTime>
		</AmmoUser>
	</Operation>

	<!-- ==========  AD Crucible Carbine  =========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>AD_CrucibleCarbine</defName>
		<statBases>
			<WorkToMake>50000</WorkToMake>
			<SightsEfficiency>1.0</SightsEfficiency>
			<ShotSpread>0.16</ShotSpread>
			<SwayFactor>1.11</SwayFactor>
			<Bulk>8.20</Bulk>
			<Mass>4.10</Mass>
			<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>0.69</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_CrucibleCarbine_CE</defaultProjectile>
			<warmupTime>1.07</warmupTime>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>22</ticksBetweenBurstShots>
			<range>32</range>
			<soundCast>RS_ShotCR</soundCast>
			<muzzleFlashScale>10</muzzleFlashScale>
		</Properties>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
		</FireModes>
		<AmmoUser>
			<magazineSize>15</magazineSize>
			<reloadTime>4</reloadTime>
		</AmmoUser>
	</Operation>
</Patch>