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

	<!-- ========== Advanced Mechanoid Gun ThingDef ========== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="AdvancedMechanoidGun"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>10</power>
					<cooldownTime>2.0</cooldownTime>
					<armorPenetrationBlunt>5.0</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- ========== Mini Rifle for Advanced Militor ========== -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_MiniRifle</defName>
		<statBases>
			<RangedWeapon_Cooldown>1.2</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.01</ShotSpread>
			<SwayFactor>0.55</SwayFactor>
			<Bulk>9.00</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.33</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_556x45mmNATO_FMJ_SB</defaultProjectile>
			<warmupTime>1.1</warmupTime>
			<range>42</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>4</ticksBetweenBurstShots>
			<soundCast>Shot_AssaultRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>24</magazineSize>
			<reloadTime>3</reloadTime>
			<ammoSet>AmmoSet_556x45mmNATO_SB</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AR</li>
			<li>NoSwitch</li>
			<li>MechanoidGunMiniRifle</li>
		</weaponTags>
	</Operation>

</Patch>