<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- Make the YMIR usable -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[@Name="RE_Gun_MechHeavyMassAccelerator"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>stock</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>36</power>
					<cooldownTime>3</cooldownTime>
					<armorPenetrationBlunt>148</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Stock</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>barrel</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>43</power>
					<cooldownTime>2.88</cooldownTime>
					<armorPenetrationBlunt>100</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>muzzle</label>
					<capacities>
						<li>Poke</li>
					</capacities>
					<power>38</power>
					<cooldownTime>2.48</cooldownTime>
					<armorPenetrationBlunt>90</armorPenetrationBlunt>
					<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="CombatExtended.PatchOperationMakeGunCECompatible">
		<defName>RE_YMIRMassAccelerator</defName>
		<statBases>
			<Mass>20.00</Mass>
			<RangedWeapon_Cooldown>0.65</RangedWeapon_Cooldown>
			<SightsEfficiency>1</SightsEfficiency>
			<ShotSpread>0.03</ShotSpread>
			<SwayFactor>1.33</SwayFactor>
			<Bulk>1.00</Bulk>
		</statBases>
		<Properties>
			<recoilAmount>1.33</recoilAmount>
			<verbClass>CombatExtended.Verb_ShootCE</verbClass>
			<hasStandardCommand>true</hasStandardCommand>
			<defaultProjectile>RE_YmirBullet</defaultProjectile>
			<warmupTime>1.4</warmupTime>
			<range>75</range>
			<ticksBetweenBurstShots>3</ticksBetweenBurstShots>
			<burstShotCount>16</burstShotCount>
			<minRange>1.5</minRange>
			<soundCast>RE_Shot_YMIRCannon</soundCast>
			<soundCastTail>GunTail_Heavy</soundCastTail>
			<muzzleFlashScale>12</muzzleFlashScale>
		</Properties>
		<AmmoUser>
			<magazineSize>100</magazineSize>
			<reloadTime>5</reloadTime>
		</AmmoUser>
		<FireModes>
			<aiAimMode>AimedShot</aiAimMode>
			<aimedBurstShotCount>8</aimedBurstShotCount>
		</FireModes>
		<weaponTags>
			<li>NoSwitch</li>
		</weaponTags>
	</Operation>
</Patch>