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

	<ThingCategoryDef>
		<defName>Ammo12mmsubsonicRailgunOE</defName>
		<label>12mm subsonic Railgun (OE)</label>
		<parent>AmmoAdvanced</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberRailgunPistol</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_12mmsubsonicRailgunOE</defName>
		<label>12mm subsonic Railgun (OE)</label>
		<ammoTypes>
			<Ammo_12mmsubsonicRailgun_SabotOE>Bullet_12mmsubsonicRailgun_SabotOE</Ammo_12mmsubsonicRailgun_SabotOE>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="SpacerAmmoBase">
		<defName>Ammo_12mmsubsonicRailgun_SabotOE</defName>
		<label>12mm subsonic Railgun cartridge (Sabot:OE)</label>
		<description>Fin-stabilized tungsten carbide penetrator with discarding sabot, designed for high calibar subsonic railguns.</description>
		<statBases>
			<Mass>0.016</Mass>
			<Bulk>0.016</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting_FabricationBench</li>
			<li>CE_AutoEnableCrafting_TableMachining</li>
			<!-- Railgun ammo isn't handloaded because it contains no propellant, and the sabots must be precision-machined anyway -->
		</tradeTags>
		<thingCategories>
			<li>Ammo12mmautoRailgunOE</li>
		</thingCategories>
		<graphicData>
			<texPath>Things/Ammo/Railgun/Pistol</texPath>
			<graphicClass>CombatExtended.Graphic_StackCountRanged</graphicClass>
		</graphicData>
		<ammoClass>RailgunSabot</ammoClass>
	</ThingDef>

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

	<ThingDef ParentName="Base9x39mmSovietBullet">
		<defName>Bullet_12mmsubsonicRailgun_SabotOE</defName>
		<label>12mm subsonic Railgun bullet (Sabot:OE)</label>
		<graphicData>
			<texPath>Things/Projectile/Bullet_Small</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<damageAmountBase>23</damageAmountBase>
			<armorPenetrationSharp>50</armorPenetrationSharp>
			<armorPenetrationBlunt>210.80</armorPenetrationBlunt>
			<speed>229</speed>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_12mmsubsonicRailgun_SabotOE</defName>
		<label>make 12mm subsonic Railgun cartridge (Sabot:OE) x500</label>
		<description>Craft 500 12mm subsonic Railgun (Sabot:OE) cartridges.</description>
		<jobString>Making 12mm auto Railgun (Sabot:OE) cartridges.</jobString>
		<workAmount>1000</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>6</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_12mmsubsonicRailgun_SabotOE>500</Ammo_12mmsubsonicRailgun_SabotOE>
		</products>
	</RecipeDef>
</Defs>