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

	<ThingCategoryDef>
		<defName>AmmoRailShotOE</defName>
		<label>railgun shot shell (OE)</label>
		<parent>AmmoShells</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberShotgun</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_RailShellOE</defName>
		<label>rail shotgun shells (OE)</label>
		<ammoTypes>
			<Ammo_Railgun_BuckOE>Bullet_Railgun_BuckOE</Ammo_Railgun_BuckOE>
			<Ammo_Railgun_SlugOE>Bullet_Railgun_SlugOE</Ammo_Railgun_SlugOE>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="RailGaugeBase" ParentName="SmallAmmoBase" Abstract="True">
		<description>Unlike other railgun rounds these require a casing to be used effectively, and unlike shotguns, the buckshot isn't as easily foiled by armor.</description>
		<statBases>
			<Mass>0.023</Mass>
			<Bulk>0.06</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting_FabricationBench</li>
			<li>CE_AutoEnableCrafting_TableMachining</li>
		</tradeTags>
		<thingCategories>
			<li>AmmoRailShotOE</li>
		</thingCategories>
		<stackLimit>5000</stackLimit>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="RailGaugeBase">
		<defName>Ammo_Railgun_BuckOE</defName>
		<label>railgun shell (Buck:OE)</label>
		<graphicData>
			<texPath>ThirdParty/Orassans/Ammo/Shotgun/RailShot</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>BuckShot</ammoClass>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="RailGaugeBase">
		<defName>Ammo_Railgun_SlugOE</defName>
		<label>railgun shell (Slug:OE)</label>
		<graphicData>
			<texPath>ThirdParty/Orassans/Ammo/Shotgun/RailSlug</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.048</Mass>
		</statBases>
		<ammoClass>Slug</ammoClass>
	</ThingDef>

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

	<ThingDef Name="BaseRailShotBullet" ParentName="Base12GaugeBullet" Abstract="true">
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<dropsCasings>true</dropsCasings>
			<casingMoteDefname>Fleck_ShotgunShell</casingMoteDefname>
			<casingFilthDefname>Filth_ShotgunAmmoCasings</casingFilthDefname>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseRailShotBullet">
		<defName>Bullet_Railgun_BuckOE</defName>
		<label>rail buckshot pellet</label>
		<graphicData>
			<texPath>Things/Projectile/Shotgun_Pellet</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>12</damageAmountBase>
			<pelletCount>9</pelletCount>
			<armorPenetrationSharp>9</armorPenetrationSharp>
			<armorPenetrationBlunt>20</armorPenetrationBlunt>
			<spreadMult>15.8</spreadMult>
			<speed>380</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseRailShotBullet">
		<defName>Bullet_Railgun_SlugOE</defName>
		<label>rail shotgun slug (sabot:OE)</label>
		<graphicData>
			<texPath>Things/Projectile/Bullet_big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>38</damageAmountBase>
			<armorPenetrationSharp>20</armorPenetrationSharp>
			<armorPenetrationBlunt>160.450</armorPenetrationBlunt>
			<speed>310</speed>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Railgun_BuckOE</defName>
		<label>make railgun (Buck:OE) shell x200</label>
		<description>Craft 200 12 gauge (Buck:OE) shells.</description>
		<jobString>Making 12 gauge (Buck:OE) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Railgun_BuckOE>200</Ammo_Railgun_BuckOE>
		</products>
		<workAmount>1200</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Railgun_SlugOE</defName>
		<label>make railgun (Slug:OE) shell x200</label>
		<description>Craft 200 railgun (Slug:OE) shells.</description>
		<jobString>Making railgun (Slug:OE) shells.</jobString>
		<workAmount>900</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>5</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Railgun_SlugOE>200</Ammo_Railgun_SlugOE>
		</products>
	</RecipeDef>

</Defs>