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

	<ThingCategoryDef>
		<defName>Ammo7mmMiniRailgun</defName>
		<label>7mm Railgun</label>
		<parent>AmmoAdvanced</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberRailgunPistol</iconPath>
	</ThingCategoryDef>

	<!-- ==================== AmmoSet ========================== -->

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_7mmMiniRailgun</defName>
		<label>7mm Railgun</label>
		<ammoTypes>
			<Ammo_7mmMiniRailgun_Sabot>Bullet_7mmMiniRailgun_Sabot</Ammo_7mmMiniRailgun_Sabot>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<!-- ==================== Ammo ========================== -->

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="SpacerSmallAmmoBase">
		<defName>Ammo_7mmMiniRailgun_Sabot</defName>
		<label>7mm Railgun cartridge (Sabot)</label>
		<description>Powerful tungsten carbide penetrator with discarding sabot, designed for railgun pistols.</description>
		<statBases>
			<Mass>0.01</Mass>
			<Bulk>0.012</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting_FabricationBench</li>
			<!-- Railgun ammo isn't handloaded because it contains no propellant, and the sabots must be precision-machined anyway -->
		</tradeTags>
		<thingCategories>
			<li>Ammo7mmMiniRailgun</li>
		</thingCategories>
		<graphicData>
			<texPath>Things/Ammo/Railgun/Pistol</texPath>
			<graphicClass>CombatExtended.Graphic_StackCountRanged</graphicClass>
		</graphicData>
		<ammoClass>RailgunSabot</ammoClass>
	</ThingDef>

	<!-- ================== Projectiles ================== -->

	<ThingDef ParentName="Base45ACPBullet">
		<defName>Bullet_7mmMiniRailgun_Sabot</defName>
		<label>7mm Railgun bullet (Sabot)</label>
		<graphicData>
			<texPath>Things/Projectile/Bullet_Small</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<damageAmountBase>14</damageAmountBase>
			<armorPenetrationSharp>20</armorPenetrationSharp>
			<armorPenetrationBlunt>76.720</armorPenetrationBlunt>
			<speed>202</speed>
		</projectile>
	</ThingDef>

	<!-- ==================== Recipes ========================== -->

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_7mmMiniRailgun_Sabot</defName>
		<label>make 7mm Railgun cartridge (Sabot) x500</label>
		<description>Craft 500 7mm Railgun (Sabot) cartridges.</description>
		<jobString>Making 7mm Railgun (Sabot) cartridges.</jobString>
		<workAmount>5000</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>9</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>3</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_7mmMiniRailgun_Sabot>500</Ammo_7mmMiniRailgun_Sabot>
		</products>
	</RecipeDef>

</Defs>