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

	<!-- Pistols -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/thingDef[defName="JI_Trollsverd"]</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>
	<!-- Long guns-->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/thingDef[
			defName="JI_Hrunting" or
			defName="JI_Gramr" or
			defName="JI_Muspell"
			]</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>
	<!-- Heavy Weapons -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/thingDef[defName="JI_Grendel" or defName="JI_Fafnir"] </xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>10</power>
					<cooldownTime>2.44</cooldownTime>
					<armorPenetrationBlunt>3.5</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- ==========  Trollsverd Pistol =========== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/thingDef[defName="JI_Trollsverd"]/statBases</xpath>
		<value>
			<statBases>
				<WorkToMake>35500</WorkToMake>
				<SightsEfficiency>0.7</SightsEfficiency>
				<ShotSpread>0.17</ShotSpread>
				<SwayFactor>1.83</SwayFactor>
				<Bulk>2.90</Bulk>
				<Mass>2.81</Mass>
				<RangedWeapon_Cooldown>0.47</RangedWeapon_Cooldown>
			</statBases>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/thingDef[defName="JI_Trollsverd"]/verbs</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>2.2</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_JI_Molten</defaultProjectile>
					<warmupTime>1.0</warmupTime>
					<ammoConsumedPerShotCount>2</ammoConsumedPerShotCount>
					<range>12</range>
					<soundCast>RS_ShotJI</soundCast>
					<soundCastTail>GunTail_Medium</soundCastTail>
					<muzzleFlashScale>12</muzzleFlashScale>
				</li>
			</verbs>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/thingDef[defName="JI_Trollsverd"]</xpath>
		<value>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>8</magazineSize>
					<reloadTime>4.8</reloadTime>
					<ammoSet>AmmoSet_JIStandard</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
				</li>
			</comps>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/thingDef[defName="JI_Trollsverd"]/weaponTags</xpath>
		<value>
			<li>CE_Sidearm</li>
			<li>CE_AI_Pistol</li>
			<li>CE_OneHandedWeapon</li>
		</value>
	</Operation>
	<!-- ==========  Hrunting Rifle =========== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/thingDef[defName="JI_Hrunting"]/statBases</xpath>
		<value>
			<statBases>
				<WorkToMake>45500</WorkToMake>
				<SightsEfficiency>1</SightsEfficiency>
				<ShotSpread>0.05</ShotSpread>
				<SwayFactor>1.72</SwayFactor>
				<Bulk>11.40</Bulk>
				<Mass>5.81</Mass>
				<RangedWeapon_Cooldown>0.45</RangedWeapon_Cooldown>
			</statBases>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/thingDef[defName="JI_Hrunting"]/verbs</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>2.25</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_JI_Molten</defaultProjectile>
					<warmupTime>1.4</warmupTime>
					<ticksBetweenBurstShots>12</ticksBetweenBurstShots>
					<burstShotCount>3</burstShotCount>
					<ammoConsumedPerShotCount>2</ammoConsumedPerShotCount>
					<range>52</range>
					<soundCast>RS_ShotJI</soundCast>
					<soundCastTail>GunTail_Medium</soundCastTail>
					<muzzleFlashScale>11</muzzleFlashScale>
				</li>
			</verbs>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/thingDef[defName="JI_Hrunting"]</xpath>
		<value>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>40</magazineSize>
					<reloadTime>4.3</reloadTime>
					<ammoSet>AmmoSet_JIStandard</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiUseBurstMode>false</aiUseBurstMode>
					<aiAimMode>AimedShot</aiAimMode>
					<aimedBurstShotCount>2</aimedBurstShotCount>
				</li>
			</comps>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/thingDef[defName="JI_Hrunting"]</xpath>
		<value>
			<li Class="CombatExtended.GunDrawExtension">
				<DrawSize>1,1</DrawSize>
				<DrawOffset>0,0</DrawOffset>
			</li>
		</value>
	</Operation>

	<!-- ========== Gramr AMR =========== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/thingDef[defName="JI_Gramr"]/statBases</xpath>
		<value>
			<statBases>
				<WorkToMake>50500</WorkToMake>
				<SightsEfficiency>1.6</SightsEfficiency>
				<ShotSpread>0.01</ShotSpread>
				<SwayFactor>3.43</SwayFactor>
				<Bulk>25</Bulk>
				<Mass>15.50</Mass>
				<RangedWeapon_Cooldown>2.45</RangedWeapon_Cooldown>
			</statBases>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/thingDef[defName="JI_Gramr"]/verbs</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>12.77</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_JI_AMR</defaultProjectile>
					<warmupTime>3.525</warmupTime>
					<ammoConsumedPerShotCount>30</ammoConsumedPerShotCount>
					<range>68</range>
					<soundCast>RS_ShotJI</soundCast>
					<soundCastTail>GunTail_Heavy</soundCastTail>
					<muzzleFlashScale>15</muzzleFlashScale>
				</li>
			</verbs>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/thingDef[defName="JI_Gramr"]</xpath>
		<value>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>90</magazineSize>
					<reloadTime>6</reloadTime>
					<ammoSet>AmmoSet_JI_AMR</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiUseBurstMode>FALSE</aiUseBurstMode>
					<aiAimMode>AimedShot</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/thingDef[defName="JI_Gramr"]</xpath>
		<value>
			<li Class="CombatExtended.GunDrawExtension">
				<DrawSize>1.1,1.1</DrawSize>
				<DrawOffset>0,0</DrawOffset>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/thingDef[defName="JI_Gramr"]/weaponTags</xpath>
		<match Class="PatchOperationAdd">
			<xpath>Defs/thingDef[defName="JI_Gramr"]/weaponTags</xpath>
			<value>
				<li>Bipod_AMR</li>
			</value>
		</match>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/thingDef[defName="JI_Gramr"]</xpath>
			<value>
				<weaponTags>
					<li>Bipod_AMR</li>
				</weaponTags>
			</value>
		</nomatch>
	</Operation>

	<!-- ========== Grendel Rocket Launcher =========== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/thingDef[defName="JI_Grendel"]/statBases</xpath>
		<value>
			<statBases>
				<WorkToMake>90500</WorkToMake>
				<SightsEfficiency>1.6</SightsEfficiency>
				<ShotSpread>0.1</ShotSpread>
				<SwayFactor>2.99</SwayFactor>
				<Bulk>18.50</Bulk>
				<Mass>15</Mass>
				<RangedWeapon_Cooldown>3.63</RangedWeapon_Cooldown>
			</statBases>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/thingDef[defName="JI_Grendel"]/verbs</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>4.5</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_JISiegeRound</defaultProjectile>
					<warmupTime>2.075</warmupTime>
					<range>48</range>
					<ammoConsumedPerShotCount>80</ammoConsumedPerShotCount>
					<soundCast>RS_ShotJI</soundCast>
					<soundCastTail>GunTail_Heavy</soundCastTail>
					<muzzleFlashScale>15</muzzleFlashScale>
					<targetParams>
						<canTargetLocations>true</canTargetLocations>
					</targetParams>
				</li>
			</verbs>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/thingDef[defName="JI_Grendel"]</xpath>
		<value>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>240</magazineSize>
					<reloadTime>8</reloadTime>
					<ammoSet>AmmoSet_JISiege</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aiUseBurstMode>FALSE</aiUseBurstMode>
					<aiAimMode>AimedShot</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/thingDef[defName="JI_Grendel"]</xpath>
		<value>
			<li Class="CombatExtended.GunDrawExtension">
				<DrawSize>1.1,1.1</DrawSize>
				<DrawOffset>0,0</DrawOffset>
			</li>
		</value>
	</Operation>

	<!-- ==========  Suppression Cannon =========== -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/thingDef[defName="JI_Muspell"]/statBases</xpath>
		<value>
			<statBases>
				<WorkToMake>62500</WorkToMake>
				<SightsEfficiency>1.1</SightsEfficiency>
				<ShotSpread>0.1</ShotSpread>
				<SwayFactor>2.06</SwayFactor>
				<Bulk>12.5</Bulk>
				<Mass>8.1</Mass>
				<RangedWeapon_Cooldown>0.4</RangedWeapon_Cooldown>
			</statBases>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/thingDef[defName="JI_Muspell"]/verbs</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<recoilAmount>1.85</recoilAmount>
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_JI_Suppressor</defaultProjectile>
					<warmupTime>2.25</warmupTime>
					<range>62</range>
					<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
					<burstShotCount>20</burstShotCount>
					<soundCast>RS_ShotMuspell</soundCast>
					<soundCastTail>GunTail_Medium</soundCastTail>
					<muzzleFlashScale>12</muzzleFlashScale>
					<targetParams>
						<canTargetLocations>true</canTargetLocations>
					</targetParams>
					<recoilPattern>Mounted</recoilPattern>
				</li>
			</verbs>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/thingDef[defName="JI_Muspell"]</xpath>
		<value>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>200</magazineSize>
					<reloadTime>7.8</reloadTime>
					<ammoSet>AmmoSet_JISuppressor</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes">
					<aimedBurstShotCount>10</aimedBurstShotCount>
					<aiUseBurstMode>FALSE</aiUseBurstMode>
					<aiAimMode>SuppressFire</aiAimMode>
				</li>
			</comps>
		</value>
	</Operation>
	
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/thingDef[defName="JI_Muspell"]</xpath>
		<value>
			<li Class="CombatExtended.GunDrawExtension">
				<DrawSize>1.1,1.1</DrawSize>
				<DrawOffset>0,0</DrawOffset>
			</li>
		</value>
	</Operation>

	<!-- Siege Shotgun -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/thingDef[defName="JI_Fafnir"]/statBases</xpath>
		<value>
			<statBases>
				<WorkToMake>54500</WorkToMake>
				<SightsEfficiency>1.0</SightsEfficiency>
				<ShotSpread>0.2</ShotSpread>
				<SwayFactor>1.75</SwayFactor>
				<Bulk>11.5</Bulk>
				<Mass>6.03</Mass>
				<RangedWeapon_Cooldown>0.5</RangedWeapon_Cooldown>
			</statBases>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/thingDef[defName="JI_Fafnir"]/verbs</xpath>
		<value>
			<verbs>
				<li Class="CombatExtended.VerbPropertiesCE">
					<verbClass>CombatExtended.Verb_ShootCE</verbClass>
					<hasStandardCommand>true</hasStandardCommand>
					<defaultProjectile>Bullet_JI_Slag</defaultProjectile>
					<warmupTime>1.0</warmupTime>
					<range>14</range>
					<ammoConsumedPerShotCount>3</ammoConsumedPerShotCount>
					<soundCast>RS_ShotFafnir</soundCast>
					<soundCastTail>GunTail_Heavy</soundCastTail>
					<muzzleFlashScale>9</muzzleFlashScale>
					<ticksBetweenBurstShots>15</ticksBetweenBurstShots>
				</li>
			</verbs>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/thingDef[defName="JI_Fafnir"]</xpath>
		<value>
			<comps>
				<li Class="CombatExtended.CompProperties_AmmoUser">
					<magazineSize>21</magazineSize>
					<reloadTime>4.3</reloadTime>
					<ammoSet>AmmoSet_JISlag</ammoSet>
				</li>
				<li Class="CombatExtended.CompProperties_FireModes"/>
			</comps>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/thingDef[defName="JI_Fafnir"]</xpath>
		<value>
			<li Class="CombatExtended.GunDrawExtension">
				<DrawSize>1.1,1.1</DrawSize>
				<DrawOffset>0,0</DrawOffset>
			</li>
		</value>
	</Operation>

</Patch>