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

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Athena Framework</li>
		</mods>
		<match Class="PatchOperationSequence">
			<operations>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="DV_ImpactSlugger"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>stock</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>12</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>10</power>
								<cooldownTime>1.55</cooldownTime>
								<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
								<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
							</li>
						</tools>
					</value>
				</li>

				<li Class="PatchOperationRemove">
					<xpath>Defs/ThingDef[defName="DV_ImpactSlugger"]/verbs</xpath>
				</li>

				<!-- === Slugger === -->
				<li Class="CombatExtended.PatchOperationMakeGunCECompatible">
					<defName>DV_ImpactSlugger</defName>
					<statBases>
						<SightsEfficiency>0.85</SightsEfficiency>
						<ShotSpread>0.01</ShotSpread>
						<SwayFactor>2.55</SwayFactor>
						<Bulk>10.5</Bulk>
						<Mass>5.6</Mass>
						<RangedWeapon_Cooldown>0.42</RangedWeapon_Cooldown>
					</statBases>
					<Properties>
						<recoilAmount>3.22</recoilAmount>
						<verbClass>CombatExtended.Verb_ShootCE</verbClass>
						<hasStandardCommand>true</hasStandardCommand>
						<defaultProjectile>Bullet_ImpactShellsSlugger</defaultProjectile>
						<warmupTime>1.3</warmupTime>
						<range>22</range>
						<soundCast>Shot_ImpactSlugger</soundCast>
						<soundCastTail>GunTail_Heavy</soundCastTail>
						<muzzleFlashScale>9</muzzleFlashScale>
						<targetParams>
							<canTargetLocations>true</canTargetLocations>
						</targetParams>
					</Properties>
					<AmmoUser>
						<magazineSize>5</magazineSize>
						<reloadTime>6.2</reloadTime>
						<ammoSet>AmmoSet_ImpactShellsSlugger</ammoSet>
					</AmmoUser>
					<FireModes>
						<aiAimMode>AimedShot</aiAimMode>
					</FireModes>
				</li>

			</operations>
		</match>
	</Operation>

</Patch>