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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName ="CAT_StellicRevolver" or defName ="CAT_StellicSMG"]/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>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="CAT_StellicCarbine" or defName="CAT_StellicSniper"]/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>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="CAT_StellicShotgun"]/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>Bayonet</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>15</power>
					<cooldownTime>1.55</cooldownTime>
					<armorPenetrationSharp>15</armorPenetrationSharp>
					<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="CAT_StellicShotgun" or defName="CAT_StellicSniper"]/equippedStatOffsets/MoveSpeed</xpath>
	</Operation>

	<!-- === Ion Pistol === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CAT_StellicRevolver</defName>
		<statBases>
			<Mass>1.20</Mass>
			<Bulk>2.25</Bulk>
			<SwayFactor>0.90</SwayFactor>
			<ShotSpread>0.17</ShotSpread>
			<SightsEfficiency>0.8</SightsEfficiency>
			<RangedWeapon_Cooldown>0.51</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.2</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_6x24mmChargedStellic</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>20</range>
			<soundCast>ChargeLance_Fire</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadTime>3.5</reloadTime>
			<ammoSet>AmmoSet_6x24mmStellicCharged</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!-- === Ion PDW === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CAT_StellicSMG</defName>
		<statBases>
			<Mass>3</Mass>
			<Bulk>4</Bulk>
			<SwayFactor>1.2</SwayFactor>
			<ShotSpread>0.2</ShotSpread>
			<SightsEfficiency>0.8</SightsEfficiency>
			<RangedWeapon_Cooldown>0.51</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.40</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_6x24mmCharged</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>6</ticksBetweenBurstShots>
			<range>27</range>
			<soundCast>Shot_ChargeRifle</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>30</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_6x24mmCharged</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiAimMode>Snapshot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
	</Operation>

	<!-- === Ion Rifle === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CAT_StellicCarbine</defName>
		<statBases>
			<Mass>5</Mass>
			<Bulk>8</Bulk>
			<SwayFactor>1.25</SwayFactor>
			<ShotSpread>0.07</ShotSpread>
			<SightsEfficiency>1.10</SightsEfficiency>
			<RangedWeapon_Cooldown>0.38</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.3</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_6x24mmCharged</defaultProjectile>
			<warmupTime>1.1</warmupTime>
			<range>50</range>
			<burstShotCount>5</burstShotCount>
			<ticksBetweenBurstShots>5</ticksBetweenBurstShots>
			<soundCast>Shot_ChargeRifle</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>40</magazineSize>
			<reloadTime>4</reloadTime>
			<ammoSet>AmmoSet_6x24mmCharged</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
			<aiUseBurstMode>True</aiUseBurstMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="CAT_StellicCarbine"]/comps/li[@Class="MVCF.Comps.CompProperties_VerbProps"]</xpath>
	</Operation>

	<!-- === Ion DMR === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CAT_StellicSniper</defName>
		<statBases>
			<Mass>6</Mass>
			<Bulk>9.15</Bulk>
			<SwayFactor>1.20</SwayFactor>
			<ShotSpread>0.03</ShotSpread>
			<SightsEfficiency>2.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.82</RangedWeapon_Cooldown>
			<NightVisionEfficiency_Weapon>0.6</NightVisionEfficiency_Weapon>
		</statBases>
		<Properties>
			<recoilAmount>1.4</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_8x35mmCharged</defaultProjectile>
			<warmupTime>1.5</warmupTime>
			<range>86</range>
			<soundCast>ChargeLance_Fire</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>5</magazineSize>
			<reloadTime>3</reloadTime>
			<ammoSet>AmmoSet_8x35mmCharged</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>SpacerGun</li>
			<li>CE_AI_SR</li>
			<li>Bipod_DMR</li>
		</weaponTags>
	</Operation>

	<!-- === Ion Slugthrower === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>CAT_StellicShotgun</defName>
		<statBases>
			<Mass>5</Mass>
			<Bulk>12</Bulk>
			<SwayFactor>1.50</SwayFactor>
			<ShotSpread>0.07</ShotSpread>
			<SightsEfficiency>1.0</SightsEfficiency>
			<RangedWeapon_Cooldown>0.98</RangedWeapon_Cooldown>
		</statBases>
		<Properties>
			<recoilAmount>1.3</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_12GaugeCharged</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>21</range>
			<soundCast>ChargeLance_Fire</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>8</magazineSize>
			<reloadTime>0.8</reloadTime>
			<reloadOneAtATime>true</reloadOneAtATime>
			<ammoSet>AmmoSet_12GaugeCharged</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/AbilityDef[defName="CAT_PunishmentBlast"]/comps/li[@Class="CompProperties_AbilityLaunchProjectile"]/projectileDef</xpath>
		<value>
			<projectileDef>CAT_PunishmentBlast_CE</projectileDef>
		</value>
	</Operation>

</Patch>