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

	<ThingCategoryDef>
		<defName>AmmoSlugthrowerShell</defName>
		<label>Slugthrower shell</label>
		<parent>AmmoShotguns</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberShotgun</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_SlugthrowerShell</defName>
		<label>Slugthrower shell</label>
		<ammoTypes>
			<Ammo_Slugthrower_Buck>Bullet_Slugthrower_Buck</Ammo_Slugthrower_Buck>
			<Ammo_Slugthrower_Slug>Bullet_Slugthrower_Slug</Ammo_Slugthrower_Slug>
			<Ammo_Slugthrower_Beanbag>Bullet_Slugthrower_Beanbag</Ammo_Slugthrower_Beanbag>
			<Ammo_Slugthrower_ElectroSlug>Bullet_Slugthrower_ElectroSlug</Ammo_Slugthrower_ElectroSlug>
		</ammoTypes>
		<similarTo>AmmoSet_Shotgun</similarTo>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="SlugthrowerShellBase" ParentName="AmmoBase" Abstract="True">
		<description>Large 40mm shotgun shells designed to be fired by the warcasket slugthrower shotgun.</description>
		<statBases>
			<Mass>0.17</Mass>
			<Bulk>0.38</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
		</tradeTags>
		<thingCategories>
			<li>AmmoSlugthrowerShell</li>
		</thingCategories>
		<stackLimit>500</stackLimit>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="SlugthrowerShellBase">
		<defName>Ammo_Slugthrower_Buck</defName>
		<label>Slugthrower shell (Buck)</label>
		<graphicData>
			<texPath>Things/Ammo/Shotgun/Shot</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>BuckShot</ammoClass>
		<cookOffProjectile>Bullet_Slugthrower_Buck</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="SlugthrowerShellBase">
		<defName>Ammo_Slugthrower_Slug</defName>
		<label>Slugthrower shell (Slug)</label>
		<graphicData>
			<texPath>Things/Ammo/Shotgun/Slug</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.16</Mass>
		</statBases>
		<ammoClass>Slug</ammoClass>
		<cookOffProjectile>Bullet_Slugthrower_Slug</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="SlugthrowerShellBase">
		<defName>Ammo_Slugthrower_Beanbag</defName>
		<label>Slugthrower shell (Bean)</label>
		<generateAllowChance>0</generateAllowChance>
		<graphicData>
			<texPath>Things/Ammo/Shotgun/Beanbag</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.205</Mass>
		</statBases>
		<ammoClass>Beanbag</ammoClass>
		<cookOffProjectile>Bullet_Slugthrower_Beanbag</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="SlugthrowerShellBase">
		<defName>Ammo_Slugthrower_ElectroSlug</defName>
		<label>Slugthrower shell (EMP)</label>
		<graphicData>
			<texPath>Things/Ammo/Shotgun/EMP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.186</Mass>
		</statBases>
		<ammoClass>ElectroSlug</ammoClass>
		<generateAllowChance>0.5</generateAllowChance>
		<cookOffProjectile>Bullet_Slugthrower_ElectroSlug</cookOffProjectile>
	</ThingDef>

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

	<ThingDef Name="BaseSlugthrowerBullet" ParentName="BaseBulletCE" Abstract="true">
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<speed>106</speed>
			<dropsCasings>true</dropsCasings>
			<casingMoteDefname>Fleck_ShotgunShell</casingMoteDefname>
			<casingFilthDefname>Filth_ShotgunAmmoCasings</casingFilthDefname>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseSlugthrowerBullet">
		<defName>Bullet_Slugthrower_Buck</defName>
		<label>buckshot pellet</label>
		<graphicData>
			<texPath>Things/Projectile/Shotgun_Pellet</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>27</damageAmountBase>
			<pelletCount>4</pelletCount>
			<armorPenetrationSharp>6</armorPenetrationSharp>
			<armorPenetrationBlunt>75</armorPenetrationBlunt>
			<spreadMult>7.9</spreadMult>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseSlugthrowerBullet">
		<defName>Bullet_Slugthrower_Slug</defName>
		<label>shotgun slug</label>
		<graphicData>
			<texPath>Things/Projectile/Bullet_big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>146</speed>
			<damageAmountBase>74</damageAmountBase>
			<armorPenetrationSharp>10</armorPenetrationSharp>
			<armorPenetrationBlunt>638.7</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseSlugthrowerBullet">
		<defName>Bullet_Slugthrower_Beanbag</defName>
		<label>beanbag</label>
		<graphicData>
			<texPath>Things/Projectile/Bullet_big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>30</speed>
			<damageDef>Beanbag</damageDef>
			<damageAmountBase>19</damageAmountBase>
			<armorPenetrationBlunt>12.56</armorPenetrationBlunt>
			<spreadMult>2</spreadMult>
			<shieldDamageMultiplier>0.1</shieldDamageMultiplier>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseSlugthrowerBullet">
		<defName>Bullet_Slugthrower_ElectroSlug</defName>
		<label>EMP slug</label>
		<graphicData>
			<texPath>Things/Projectile/Bullet_big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>EMP</damageDef>
			<damageAmountBase>40</damageAmountBase>
			<armorPenetrationSharp>0</armorPenetrationSharp>
			<armorPenetrationBlunt>0</armorPenetrationBlunt>
			<empShieldBreakChance>0.75</empShieldBreakChance>
			<speed>60</speed>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Slugthrower_Buck</defName>
		<label>make Slugthrower (Buck) shell x100</label>
		<description>Craft 100 Slugthrower (Buck) shells.</description>
		<jobString>Making Slugthrower (Buck) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>34</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Slugthrower_Buck>100</Ammo_Slugthrower_Buck>
		</products>
		<workAmount>3400</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Slugthrower_Slug</defName>
		<label>make Slugthrower (Slug) shell x100</label>
		<description>Craft 100 Slugthrower (Slug) shells.</description>
		<jobString>Making Slugthrower (Slug) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>32</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Slugthrower_Slug>100</Ammo_Slugthrower_Slug>
		</products>
		<workAmount>3200</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Slugthrower_Beanbag</defName>
		<label>make Slugthrower (Beanbag) shell x100</label>
		<description>Craft 100 Slugthrower (Beanbag) shells.</description>
		<jobString>Making Slugthrower (Beanbag) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>42</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Cloth</li>
					</thingDefs>
				</filter>
				<count>17</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Cloth</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Slugthrower_Beanbag>100</Ammo_Slugthrower_Beanbag>
		</products>
		<workAmount>5900</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Slugthrower_ElectroSlug</defName>
		<label>make Slugthrower (EMP) shell x100</label>
		<description>Craft 100 Slugthrower (EMP) shells.</description>
		<jobString>Making Slugthrower (EMP) shells.</jobString>
		<researchPrerequisite>MicroelectronicsBasics</researchPrerequisite>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>38</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Slugthrower_ElectroSlug>100</Ammo_Slugthrower_ElectroSlug>
		</products>
		<workAmount>11000</workAmount>
	</RecipeDef>

</Defs>