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

	<!-- Nomad Rifle : Meant to be a scrapped version of the Charge Rifle, so pretty much everything has been nerfed. -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>NS_NomadRifle</defName>
		<statBases>
			<WorkToMake>18500</WorkToMake>
			<SightsEfficiency>0.98</SightsEfficiency>
			<ShotSpread>0.09</ShotSpread>
			<SwayFactor>1.35</SwayFactor>
			<Bulk>7.70</Bulk>
			<Mass>2.5</Mass>
			<RangedWeapon_Cooldown>0.38</RangedWeapon_Cooldown>			
		</statBases>
		<costList>
			<Plasteel>15</Plasteel>
			<Steel>30</Steel>			
			<WoodLog>10</WoodLog>
			<ComponentIndustrial>3</ComponentIndustrial>
			<Chemfuel>10</Chemfuel>
			<ComponentSpacer>1</ComponentSpacer>
		</costList>
		<Properties>
			<recoilAmount>1.51</recoilAmount>			
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_6x24mmCharged</defaultProjectile>
			<warmupTime>1.1</warmupTime>
			<range>43</range>
			<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
			<burstShotCount>6</burstShotCount>				
			<soundCast>Shot_ChargeRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>6</magazineSize> 
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_6x24mmCharged</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>TRUE</aiUseBurstMode>			
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_AR</li>
		</weaponTags>
		<researchPrerequisite>Gunsmithing</researchPrerequisite>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="NS_NomadRifle"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE"> <!-- Stock is a wood log -->
					<label>stock</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>2</power>
					<cooldownTime>0.99</cooldownTime>
					<chanceFactor>1.5</chanceFactor>
					<armorPenetrationBlunt>0.288</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.415</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>bayonet</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>17</power>
					<cooldownTime>1.38</cooldownTime>
					<armorPenetrationBlunt>1.08</armorPenetrationBlunt>
					<armorPenetrationSharp>0.72</armorPenetrationSharp> 
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>							
		
</Patch>