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

	<!-- === Tools === -->

	<!-- == Rifles == -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="Gun_Kantrael" or
			defName="Gun_Kantraelsanctified" or
			defName="Gun_Kantraelt" or
			defName="Gun_Lascarbinefour" or
			defName="Gun_Lascarbinefoursanctified" or
			defName="Gun_VossPattern" or
			defName="Gun_VossPatternsanctified" or
			defName="Gun_Accatranfive" or
			defName="Gun_Lucius" or
			defName="Gun_Hellgun" or
			defName="Gun_Locke" or
			defName="Gun_LongLas"
			]/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>

	<!-- == Pistols == -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[
			defName="Gun_Kantraeldefender" or
			defName="Gun_Kantraeldefendert"
			]/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>

	<!-- === Kantrael MG === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_Kantrael</defName>
		<statBases>
			<Mass>3.80</Mass>
			<Bulk>15.00</Bulk>
			<SwayFactor>1.35</SwayFactor>
			<ShotSpread>0.06</ShotSpread>
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.5</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_Rifle</defaultProjectile>
			<warmupTime>0.75</warmupTime>
			<range>60</range>
			<soundCast>VWE_LaserShot_Rifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>150</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_Lasgun_Rifle</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<!-- === Sanctified Kantrael MG === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_Kantraelsanctified</defName>
		<statBases>
			<Mass>3.80</Mass>
			<Bulk>15.00</Bulk>
			<SwayFactor>1.25</SwayFactor>
			<ShotSpread>0.03</ShotSpread>
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.4</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_Rifle</defaultProjectile>
			<warmupTime>0.75</warmupTime>
			<range>60</range>
			<soundCast>VWE_LaserShot_Rifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>150</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_Lasgun_Rifle</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<!-- === Kantrael MG-t === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_Kantraelt</defName>
		<statBases>
			<Mass>3.80</Mass>
			<Bulk>15.00</Bulk>
			<SwayFactor>1.2</SwayFactor>
			<ShotSpread>0.06</ShotSpread>
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_Rifle</defaultProjectile>
			<warmupTime>0.7</warmupTime>
			<range>60</range>
			<soundCast>VWE_LaserShot_Rifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>150</magazineSize>
			<reloadTime>3.5</reloadTime>
			<ammoSet>AmmoSet_Lasgun_Rifle</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<!-- === MK4 Lascarbine === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_Lascarbinefour</defName>
		<statBases>
			<Mass>3.40</Mass>
			<Bulk>13.50</Bulk>
			<SwayFactor>1.25</SwayFactor>
			<ShotSpread>0.06</ShotSpread>
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.4</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_Rifle</defaultProjectile>
			<warmupTime>0.2</warmupTime>
			<range>45</range>
			<soundCast>VWE_LaserShot_Rifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>100</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_Lasgun_Rifle</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<!-- === Sanctified MK4 Lascarbine === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_Lascarbinefoursanctified</defName>
		<statBases>
			<Mass>3.40</Mass>
			<Bulk>13.50</Bulk>
			<SwayFactor>1.15</SwayFactor>
			<ShotSpread>0.03</ShotSpread>
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.3</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_Rifle</defaultProjectile>
			<warmupTime>0.2</warmupTime>
			<range>45</range>
			<soundCast>VWE_LaserShot_Rifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>100</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_Lasgun_Rifle</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<!-- === Voss MKI === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_VossPattern</defName>
		<statBases>
			<Mass>3.20</Mass>
			<Bulk>12.0</Bulk>
			<SwayFactor>1.15</SwayFactor>
			<ShotSpread>0.06</ShotSpread>
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.7</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_Rifle</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>40</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>8</ticksBetweenBurstShots>
			<soundCast>VWE_LaserShot_Rifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>150</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_Lasgun_Rifle</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
			<aiUseBurstMode>True</aiUseBurstMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
		</FireModes>
	</Operation>

	<!-- === Sanctified Voss MKI === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_VossPatternsanctified</defName>
		<statBases>
			<Mass>3.20</Mass>
			<Bulk>12.0</Bulk>
			<SwayFactor>1.05</SwayFactor>
			<ShotSpread>0.03</ShotSpread>
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.6</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_Rifle</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>45</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>8</ticksBetweenBurstShots>
			<soundCast>VWE_LaserShot_Rifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>150</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_Lasgun_Rifle</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
			<aiUseBurstMode>True</aiUseBurstMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
		</FireModes>
	</Operation>

	<!-- === Accatran MKIV === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_Accatranfive</defName><!-- I know that IV is 4, this is the mod dev's mistake -FT -->
		<statBases>
			<Mass>3.20</Mass>
			<Bulk>10.0</Bulk>
			<SwayFactor>1.3</SwayFactor>
			<ShotSpread>0.06</ShotSpread>
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.7</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_Rifle</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>45</range>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
			<soundCast>VWE_LaserShot_Rifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>150</magazineSize>
			<reloadTime>4.5</reloadTime>
			<ammoSet>AmmoSet_Lasgun_Rifle</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
			<aiUseBurstMode>True</aiUseBurstMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
		</FireModes>
	</Operation>

	<!-- === Lucius MKI === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_Lucius</defName>
		<statBases>
			<Mass>3.80</Mass>
			<Bulk>16.00</Bulk>
			<SwayFactor>1.35</SwayFactor>
			<ShotSpread>0.06</ShotSpread>
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.9</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_HellGun</defaultProjectile>
			<warmupTime>0.75</warmupTime>
			<range>70</range>
			<soundCast>VWE_LaserShot_Rifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>80</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_Lasgun_HellGun</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<!-- === Kantrael MG Defender === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_Kantraeldefender</defName>
		<statBases>
			<Mass>1.20</Mass>
			<Bulk>3.20</Bulk>
			<SwayFactor>1.2</SwayFactor>
			<ShotSpread>0.06</ShotSpread>
			<SightsEfficiency>0.7</SightsEfficiency>
			<RangedWeapon_Cooldown>0.35</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_Pistol</defaultProjectile>
			<warmupTime>0.3</warmupTime>
			<range>20</range>
			<soundCast>VWE_LaserShot_Light</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>80</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_Lasgun_Pistol</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>SpacerGun</li>
			<li>LaserGun</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!-- === Kantrael MG-t Defender === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_Kantraeldefendert</defName>
		<statBases>
			<Mass>1.20</Mass>
			<Bulk>3.20</Bulk>
			<SwayFactor>1.15</SwayFactor>
			<ShotSpread>0.06</ShotSpread>
			<SightsEfficiency>0.7</SightsEfficiency>
			<RangedWeapon_Cooldown>0.2</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_Pistol</defaultProjectile>
			<warmupTime>0.25</warmupTime>
			<range>20</range>
			<soundCast>VWE_LaserShot_Light</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>80</magazineSize>
			<reloadTime>3.5</reloadTime>
			<ammoSet>AmmoSet_Lasgun_Pistol</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>SpacerGun</li>
			<li>LaserGun</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!-- === Ryza Hellgun === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_Hellgun</defName>
		<statBases>
			<Mass>3.80</Mass>
			<Bulk>16.00</Bulk>
			<SwayFactor>1.35</SwayFactor>
			<ShotSpread>0.06</ShotSpread>
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.9</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_HellGun</defaultProjectile>
			<warmupTime>0.75</warmupTime>
			<range>70</range>
			<soundCast>VWE_LaserShot_Rifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>80</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_Lasgun_HellGun</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<!-- === MK4 Lascarbine === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>Gun_Locke</defName>
		<statBases>
			<Mass>3.40</Mass>
			<Bulk>13.50</Bulk>
			<SwayFactor>1.25</SwayFactor>
			<ShotSpread>0.07</ShotSpread>
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.4</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_Lasgun_Rifle</defaultProjectile>
			<warmupTime>0.18</warmupTime>
			<range>45</range>
			<soundCast>VWE_LaserShot_Rifle</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>100</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_Lasgun_Rifle</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

</Patch>