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

	<!-- Unique Revolver -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gun_Revolver_Unique"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_AmmoUser">
				<magazineSize>6</magazineSize>
				<reloadTime>4.6</reloadTime>
				<ammoSet>AmmoSet_44Magnum</ammoSet>
			</li>
			<li Class="CombatExtended.CompProperties_FireModes">
				<aiUseBurstMode>FALSE</aiUseBurstMode>
				<aiAimMode>Snapshot</aiAimMode>
			</li>
			<li Class="CombatExtended.CompProperties_UnderBarrel"/>
		</value>
	</Operation>

	<!-- Unique Bolt Action -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gun_BoltActionRifle_Unique"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_AmmoUser">
				<magazineSize>10</magazineSize>
				<reloadTime>4.3</reloadTime>
				<ammoSet>AmmoSet_303British</ammoSet>
			</li>
			<li Class="CombatExtended.CompProperties_FireModes">
				<aiAimMode>AimedShot</aiAimMode>
			</li>
			<li Class="CombatExtended.CompProperties_UnderBarrel"/>
		</value>
	</Operation>

	<!-- Unique Chain Shotgun -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gun_ChainShotgun_Unique"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_AmmoUser">
				<magazineSize>8</magazineSize>
				<reloadTime>4</reloadTime>
				<ammoSet>AmmoSet_12Gauge</ammoSet>
			</li>
			<li Class="CombatExtended.CompProperties_FireModes">
				<aiAimMode>Snapshot</aiAimMode>
			</li>
			<li Class="CombatExtended.CompProperties_UnderBarrel"/>
		</value>
	</Operation>

	<!-- Unique LMG -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gun_LMG_Unique"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_AmmoUser">
				<magazineSize>50</magazineSize>
				<reloadTime>4.9</reloadTime>
				<ammoSet>AmmoSet_303British</ammoSet>
			</li>
			<li Class="CombatExtended.CompProperties_FireModes">
				<aimedBurstShotCount>5</aimedBurstShotCount>
				<aiUseBurstMode>FALSE</aiUseBurstMode>
				<aiAimMode>SuppressFire</aiAimMode>
			</li>
			<li Class="CombatExtended.CompProperties_UnderBarrel"/>
		</value>
	</Operation>
	
	<!-- Unique Heavy SMG -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gun_HeavySMG_Unique"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_AmmoUser">
				<magazineSize>25</magazineSize>
				<reloadTime>4</reloadTime>
				<ammoSet>AmmoSet_45ACP</ammoSet>
			</li>
			<li Class="CombatExtended.CompProperties_FireModes">
				<aimedBurstShotCount>3</aimedBurstShotCount>
				<aiUseBurstMode>FALSE</aiUseBurstMode>
				<aiAimMode>Snapshot</aiAimMode>
			</li>
			<li Class="CombatExtended.CompProperties_UnderBarrel"/>
		</value>
	</Operation>

	<!-- Unique Assault Rifle -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gun_AssaultRifle_Unique"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_AmmoUser">
				<magazineSize>30</magazineSize>
				<reloadTime>4</reloadTime>
				<ammoSet>AmmoSet_556x45mmNATO</ammoSet>
			</li>
			<li Class="CombatExtended.CompProperties_FireModes">
				<aimedBurstShotCount>3</aimedBurstShotCount>
				<aiUseBurstMode>TRUE</aiUseBurstMode>
				<aiAimMode>AimedShot</aiAimMode>
			</li>
			<li Class="CombatExtended.CompProperties_UnderBarrel"/>
		</value>
	</Operation>

	<!-- Unique Assault Rifle -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gun_SniperRifle_Unique"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_AmmoUser">
				<magazineSize>5</magazineSize>
				<reloadTime>4</reloadTime>
				<ammoSet>AmmoSet_762x51mmNATO</ammoSet>
			</li>
			<li Class="CombatExtended.CompProperties_FireModes">
				<aiAimMode>AimedShot</aiAimMode>
			</li>
			<li Class="CombatExtended.CompProperties_UnderBarrel"/>
		</value>
	</Operation>

	<!-- Unique Minigun -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gun_Minigun_Unique"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_AmmoUser">
				<magazineSize>250</magazineSize>
				<reloadTime>9.2</reloadTime>
				<ammoSet>AmmoSet_762x51mmNATO</ammoSet>
			</li>
			<li Class="CombatExtended.CompProperties_FireModes">
				<aimedBurstShotCount>25</aimedBurstShotCount>
				<aiAimMode>Snapshot</aiAimMode>
			</li>
			<li Class="CombatExtended.CompProperties_UnderBarrel"/>
		</value>
	</Operation>

	<!-- Unique Great Bow -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Bow_Great_Unique"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_AmmoUser">
				<ammoSet>AmmoSet_GreatArrow</ammoSet>
				<AmmoGenPerMagOverride>5</AmmoGenPerMagOverride>
			</li>
			<li Class="CombatExtended.CompProperties_FireModes"/>
		</value>
	</Operation>

	<!-- Unique Charge Rifle -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gun_ChargeRifle_Unique"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_AmmoUser">
				<magazineSize>30</magazineSize>
				<reloadTime>4</reloadTime>
				<ammoSet>AmmoSet_6x24mmCharged</ammoSet>
			</li>
			<li Class="CombatExtended.CompProperties_FireModes">
				<aimedBurstShotCount>3</aimedBurstShotCount>
				<aiUseBurstMode>TRUE</aiUseBurstMode>
				<aiAimMode>AimedShot</aiAimMode>
			</li>
			<li Class="CombatExtended.CompProperties_UnderBarrel"/>
		</value>
	</Operation>

	<!-- Unique Charge Lance -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gun_ChargeLance_Unique"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_AmmoUser">
				<magazineSize>10</magazineSize>
				<reloadTime>4</reloadTime>
				<ammoSet>AmmoSet_5x35mmCharged</ammoSet>
			</li>
			<li Class="CombatExtended.CompProperties_FireModes">
				<aiAimMode>AimedShot</aiAimMode>
			</li>
			<li Class="CombatExtended.CompProperties_UnderBarrel"/>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gun_ChargeLance_Unique"]</xpath>
		<value>
			<costList>
				<Plasteel>60</Plasteel>
				<ComponentSpacer>3</ComponentSpacer>
			</costList>
			<destroyOnDrop>false</destroyOnDrop>
		</value>
	</Operation>

	<!-- Unique Beam Repeater -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Gun_BeamRepeater_Unique"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_AmmoUser">
				<magazineSize>300</magazineSize>
				<reloadTime>4</reloadTime>
				<ammoSet>AmmoSet_BeamRepeater</ammoSet>
				<AmmoGenPerMagOverride>100</AmmoGenPerMagOverride>
			</li>
			<li Class="CombatExtended.CompProperties_FireModes">
				<aiAimMode>AimedShot</aiAimMode>
				<aimedBurstShotCount>10</aimedBurstShotCount>
			</li>
		</value>
	</Operation>

	<!-- Unique Hellcat -->
	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Anomaly</li>
		</mods>
		<match Class="PatchOperationSequence">
			<operations>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="Gun_HellcatRifle_Unique"]/comps</xpath>
					<value>
						<li Class="CombatExtended.CompProperties_AmmoUser">
							<magazineSize>30</magazineSize>
							<reloadTime>4</reloadTime>
							<ammoSet>AmmoSet_556x45mmNATO_SB</ammoSet>
						</li>
						<li Class="CombatExtended.CompProperties_FireModes">
							<aiUseBurstMode>TRUE</aiUseBurstMode>
							<aiAimMode>AimedShot</aiAimMode>
							<aimedBurstShotCount>3</aimedBurstShotCount>
						</li>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="Gun_HellcatRifle_Unique"]/comps/li[@Class="CompProperties_EquippableAbilityReloadable"]</xpath>
					<value>
						<li Class="CombatExtended.CompProperties_UnderBarrel">
							<standardLabel>switch to rifle</standardLabel>
							<underBarrelLabel>switch to flamethrower</underBarrelLabel>
							<propsUnderBarrel>
								<magazineSize>20</magazineSize>
								<reloadTime>5</reloadTime>
								<ammoSet>AmmoSet_Flamethrower</ammoSet>
							</propsUnderBarrel>
							<verbPropsUnderBarrel>
								<recoilAmount>0.35</recoilAmount>
								<verbClass>CombatExtended.Verb_ShootCE</verbClass>
								<hasStandardCommand>true</hasStandardCommand>
								<defaultProjectile>Bullet_Flamethrower_Prometheum</defaultProjectile>
								<ai_AvoidFriendlyFireRadius>3</ai_AvoidFriendlyFireRadius>
								<warmupTime>1.1</warmupTime>
								<range>8</range>
								<minRange>1</minRange>
								<ticksBetweenBurstShots>3</ticksBetweenBurstShots>
								<burstShotCount>20</burstShotCount>
								<soundCast>HissFlamethrower</soundCast>
								<muzzleFlashScale>0</muzzleFlashScale>
								<targetParams>
									<canTargetLocations>true</canTargetLocations>
								</targetParams>
							</verbPropsUnderBarrel>
							<propsFireModesUnderBarrel>
								<aiUseBurstMode>FALSE</aiUseBurstMode>
								<aiAimMode>AimedShot</aiAimMode>
								<aimedBurstShotCount>5</aimedBurstShotCount>
								<noSingleShot>true</noSingleShot>
							</propsFireModesUnderBarrel>
						</li>
						<li>
							<compClass>CompEquippable</compClass>
						</li>
					</value>
				</li>

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

</Patch>