<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- === Tools === -->
	<Operation Class="PatchOperationReplace">
		<xpath>
			Defs/ThingDef[
			defName="SI_SeventhSeraphSI" or
			defName="SMG_SeventhSeraphVY" or
			defName="HC_SeventhSeraphOfficerRevolver"]/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="SG_SeventhSeraphCQC" or
			defName="AR_seventhseraphcarbine" or
			defName="MG_SevethSeraphSAW"
			]/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>

	<!-- === SI-2 === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>SI_SeventhSeraphSI</defName>
		<statBases>
			<WorkToMake>20000</WorkToMake>
			<Mass>0.78</Mass>
			<Bulk>1.86</Bulk>
			<SwayFactor>0.88</SwayFactor>
			<ShotSpread>0.16</ShotSpread>
			<SightsEfficiency>0.8</SightsEfficiency>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>10</Steel>
			<Plasteel>30</Plasteel>
			<Chemfuel>5</Chemfuel>
			<ComponentIndustrial>5</ComponentIndustrial>
		</costList>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_6x18mmCharged</defaultProjectile>
			<warmupTime>0.5</warmupTime>
			<range>14</range>
			<soundCast>shot_seventhseraphsi2</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>15</magazineSize>
			<reloadTime>3</reloadTime>
			<ammoSet>AmmoSet_6x18mmCharged</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>SpacerGun</li>
			<li>CE_Sidearm</li>
			<li>CE_OneHandedWeapon</li>
		</weaponTags>
		<researchPrerequisite>ChargedShot</researchPrerequisite>
	</Operation>

	<!-- === VY-7 === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>SMG_SeventhSeraphVY</defName>
		<statBases>
			<WorkToMake>38000</WorkToMake>
			<Mass>2.80</Mass>
			<Bulk>4.50</Bulk>
			<SwayFactor>0.75</SwayFactor>
			<ShotSpread>0.16</ShotSpread>
			<SightsEfficiency>1</SightsEfficiency>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>45</Steel>
			<Plasteel>35</Plasteel>
			<Chemfuel>15</Chemfuel>
			<ComponentIndustrial>10</ComponentIndustrial>
		</costList>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_6x18mmCharged</defaultProjectile>
			<burstShotCount>4</burstShotCount>
			<ticksBetweenBurstShots>4</ticksBetweenBurstShots>
			<warmupTime>0.5</warmupTime>
			<range>35</range>
			<soundCast>shot_seventhseraphvy7</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilAmount>1.20</recoilAmount>
		</Properties>
		<AmmoUser>
			<magazineSize>27</magazineSize>
			<reloadTime>3</reloadTime>
			<ammoSet>AmmoSet_6x18mmCharged</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>Snapshot</aiAimMode>
			<aiUseBurstMode>True</aiUseBurstMode>
			<aimedBurstShotCount>3</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>SpacerGun</li>
		</weaponTags>
		<researchPrerequisite>ChargedShot</researchPrerequisite>
	</Operation>

	<!-- === CQC-12 === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>SG_SeventhSeraphCQC</defName>
		<statBases>
			<WorkToMake>47500</WorkToMake>
			<Mass>3.0</Mass>
			<Bulk>8.8</Bulk>
			<SwayFactor>1.25</SwayFactor>
			<ShotSpread>0.12</ShotSpread>
			<SightsEfficiency>1</SightsEfficiency>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>30</Steel>
			<Plasteel>40</Plasteel>
			<Chemfuel>15</Chemfuel>
			<ComponentIndustrial>10</ComponentIndustrial>
		</costList>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_12GaugeCharged</defaultProjectile>
			<warmupTime>0.5</warmupTime>
			<range>20</range>
			<soundCast>shot_seventhseraphcqc</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>6</magazineSize>
			<reloadOneAtATime>true</reloadOneAtATime>
			<reloadTime>0.7</reloadTime>
			<ammoSet>AmmoSet_12GaugeCharged</ammoSet>
		</AmmoUser>
		<FireModes/>
		<weaponTags>
			<li>SpacerGun</li>
			<li>CE_AI_AssaultWeapon</li>
		</weaponTags>
		<researchPrerequisite>ChargedShot</researchPrerequisite>
	</Operation>

	<!-- === 7S-SAW === -->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>MG_SevethSeraphSAW</defName>
		<statBases>
			<WorkToMake>60000</WorkToMake>
			<Mass>8.0</Mass>
			<Bulk>13.00</Bulk>
			<SwayFactor>1.26</SwayFactor>
			<ShotSpread>0.06</ShotSpread>
			<SightsEfficiency>1.1</SightsEfficiency>
			<RangedWeapon_Cooldown>0.36</RangedWeapon_Cooldown>
		</statBases>
		<costList>
			<Steel>45</Steel>
			<Plasteel>50</Plasteel>
			<Chemfuel>15</Chemfuel>
			<ComponentIndustrial>10</ComponentIndustrial>
		</costList>
		<Properties>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>True</hasStandardCommand>
			<defaultProjectile>Bullet_8x35mmCharged</defaultProjectile>
			<burstShotCount>10</burstShotCount>
			<ticksBetweenBurstShots>4</ticksBetweenBurstShots>
			<warmupTime>1.2</warmupTime>
			<range>62</range>
			<soundCast>shot_seventhseraphsaw</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilAmount>1.10</recoilAmount>
			<recoilPattern>Mounted</recoilPattern>
			<targetParams>
				<canTargetLocations>True</canTargetLocations>
			</targetParams>
		</Properties>
		<AmmoUser>
			<magazineSize>60</magazineSize>
			<reloadTime>5.8</reloadTime>
			<ammoSet>AmmoSet_8x35mmCharged</ammoSet>
		</AmmoUser>
		<FireModes>
			<aiAimMode>SuppressFire</aiAimMode>
			<aiUseBurstMode>False</aiUseBurstMode>
			<aimedBurstShotCount>5</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>SpacerGun</li>
			<li>CE_MachineGun</li>
		</weaponTags>
		<researchPrerequisite>ChargedShot</researchPrerequisite>
		<AllowWithRunAndGun>false</AllowWithRunAndGun>
	</Operation>

	<!-- ========== Officer Revolver ========== -->

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>HC_SeventhSeraphOfficerRevolver</defName>
		<statBases>
			<Mass>1.25</Mass>
			<RangedWeapon_Cooldown>0.41</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.16</ShotSpread>
			<SwayFactor>1.33</SwayFactor>
			<Bulk>2.75</Bulk>
			<WorkToMake>5500</WorkToMake>
		</statBases>
		<costList>
			<Steel>20</Steel>
			<Plasteel>10</Plasteel>
			<ComponentIndustrial>2</ComponentIndustrial>
		</costList>
		<Properties>
			<recoilAmount>2.00</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_454Casull_FMJ</defaultProjectile>
			<warmupTime>0.6</warmupTime>
			<range>20</range>
			<soundCast>shot_seventhseraphofficerrevolver</soundCast>
			<soundCastTail>GunTail_Light</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
			<recoilPattern>Regular</recoilPattern>
		</Properties>

		<AmmoUser>
			<magazineSize>11</magazineSize>
			<reloadTime>4.6</reloadTime>
			<ammoSet>AmmoSet_454Casull</ammoSet>
		</AmmoUser>

		<FireModes>
			<aiUseBurstMode>FALSE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>

		<weaponTags>
			<li>CE_AI_Pistol</li>
			<li>CE_Sidearm</li>
		</weaponTags>
	</Operation>

	<!--===== Carbine =====-->
	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>AR_seventhseraphcarbine</defName>
		<statBases>
			<Mass>3.0</Mass>
			<RangedWeapon_Cooldown>0.3</RangedWeapon_Cooldown>
			<SightsEfficiency>1.2</SightsEfficiency>
			<ShotSpread>0.10</ShotSpread>
			<SwayFactor>1.10</SwayFactor>
			<Bulk>8.90</Bulk>
			<WorkToMake>35000</WorkToMake>
		</statBases>
		<costList>
			<Steel>45</Steel>
			<Plasteel>10</Plasteel>
			<ComponentIndustrial>5</ComponentIndustrial>
			<Chemfuel>10</Chemfuel>
		</costList>
		<Properties>
			<recoilAmount>1.3</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>Bullet_556x45mmNATO_FMJ</defaultProjectile>
			<warmupTime>1.0</warmupTime>
			<range>50</range>
			<burstShotCount>6</burstShotCount>
			<ticksBetweenBurstShots>7</ticksBetweenBurstShots>
			<soundCast>shot_seventhseraphcarbine</soundCast>
			<soundCastTail>GunTail_Medium</soundCastTail>
			<muzzleFlashScale>9</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>34</magazineSize>
			<reloadTime>3.6</reloadTime>
			<ammoSet>AmmoSet_556x45mmNATO</ammoSet>
		</AmmoUser>
		<FireModes>
			<aimedBurstShotCount>3</aimedBurstShotCount>
			<aiUseBurstMode>TRUE</aiUseBurstMode>
			<aiAimMode>AimedShot</aiAimMode>
		</FireModes>
		<weaponTags>
			<li>CE_AI_Rifle</li>
		</weaponTags>
	</Operation>

</Patch>