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

	<ThingCategoryDef>
		<defName>Ammo12Gauge</defName>
		<label>12 gauge</label>
		<parent>AmmoShotguns</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberShotgun</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_12Gauge</defName>
		<label>12 Gauge</label>
		<ammoTypes>
			<Ammo_12Gauge_Buck>Bullet_12Gauge_Buck</Ammo_12Gauge_Buck>
			<Ammo_12Gauge_Slug>Bullet_12Gauge_Slug</Ammo_12Gauge_Slug>
			<Ammo_12Gauge_Beanbag>Bullet_12Gauge_Beanbag</Ammo_12Gauge_Beanbag>
			<Ammo_12Gauge_ElectroSlug>Bullet_12Gauge_ElectroSlug</Ammo_12Gauge_ElectroSlug>
		</ammoTypes>
		<similarTo>AmmoSet_Shotgun</similarTo>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_12Gauge_SB</defName>
		<label>12 Gauge</label>
		<ammoTypes>
			<Ammo_12Gauge_Buck>Bullet_12Gauge_Buck_SB</Ammo_12Gauge_Buck>
			<Ammo_12Gauge_Slug>Bullet_12Gauge_Slug_SB</Ammo_12Gauge_Slug>
			<Ammo_12Gauge_Beanbag>Bullet_12Gauge_Beanbag_SB</Ammo_12Gauge_Beanbag>
			<Ammo_12Gauge_ElectroSlug>Bullet_12Gauge_ElectroSlug_SB</Ammo_12Gauge_ElectroSlug>
		</ammoTypes>
		<similarTo>AmmoSet_Shotgun</similarTo>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_12Gauge_Slug</defName>
		<label>12 Gauge</label>
		<ammoTypes>
			<Ammo_12Gauge_Slug>Bullet_12Gauge_Slug</Ammo_12Gauge_Slug>
			<Ammo_12Gauge_Beanbag>Bullet_12Gauge_Beanbag</Ammo_12Gauge_Beanbag>
			<Ammo_12Gauge_ElectroSlug>Bullet_12Gauge_ElectroSlug</Ammo_12Gauge_ElectroSlug>
		</ammoTypes>
		<similarTo>AmmoSet_Shotgun</similarTo>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="12GaugeBase" ParentName="AmmoBase" Abstract="True">
		<description>Extremely common shotgun caliber used in almost every application, from hunting over riot control to military firearms.</description>
		<statBases>
			<Mass>0.051</Mass>
			<Bulk>0.06</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo12Gauge</li>
		</thingCategories>
		<stackLimit>5000</stackLimit>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="12GaugeBase">
		<defName>Ammo_12Gauge_Buck</defName>
		<label>12 gauge shell (Buck)</label>
		<graphicData>
			<texPath>Things/Ammo/Shotgun/Shot</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>BuckShot</ammoClass>
		<cookOffProjectile>Bullet_12Gauge_Buck</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="12GaugeBase">
		<defName>Ammo_12Gauge_Slug</defName>
		<label>12 gauge shell (Slug)</label>
		<graphicData>
			<texPath>Things/Ammo/Shotgun/Slug</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.048</Mass>
		</statBases>
		<ammoClass>Slug</ammoClass>
		<cookOffProjectile>Bullet_12Gauge_Slug</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="12GaugeBase">
		<defName>Ammo_12Gauge_Beanbag</defName>
		<label>12 gauge shell (Bean)</label>
		<generateAllowChance>0</generateAllowChance>
		<graphicData>
			<texPath>Things/Ammo/Shotgun/Beanbag</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.059</Mass>
		</statBases>
		<ammoClass>Beanbag</ammoClass>
		<cookOffProjectile>Bullet_12Gauge_Beanbag</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="12GaugeBase">
		<defName>Ammo_12Gauge_ElectroSlug</defName>
		<label>12 gauge shell (EMP)</label>
		<graphicData>
			<texPath>Things/Ammo/Shotgun/EMP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.054</Mass>
		</statBases>
		<ammoClass>ElectroSlug</ammoClass>
		<generateAllowChance>0.5</generateAllowChance>
		<cookOffProjectile>Bullet_12Gauge_ElectroSlug</cookOffProjectile>
	</ThingDef>

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

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

	<ThingDef ParentName="Base12GaugeBullet">
		<defName>Bullet_12Gauge_Buck</defName>
		<label>buckshot pellet</label>
		<graphicData>
			<texPath>Things/Projectile/Shotgun_Pellet</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>8</damageAmountBase>
			<pelletCount>9</pelletCount>
			<armorPenetrationSharp>4</armorPenetrationSharp>
			<armorPenetrationBlunt>4.52</armorPenetrationBlunt>
			<spreadMult>8.9</spreadMult>
			<shieldDamageMultiplier>0.25</shieldDamageMultiplier>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base12GaugeBullet">
		<defName>Bullet_12Gauge_Slug</defName>
		<label>shotgun slug</label>
		<graphicData>
			<texPath>Things/Projectile/Bullet_big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>114</speed>
			<damageAmountBase>28</damageAmountBase>
			<armorPenetrationSharp>6</armorPenetrationSharp>
			<armorPenetrationBlunt>85.2</armorPenetrationBlunt>
			<casingMoteDefname>Fleck_ShotgunShell_Green</casingMoteDefname>
			<casingFilthDefname>Filth_ShotgunAmmoCasings_Green</casingFilthDefname>
			<effectiveRangeMultiplier>1.5</effectiveRangeMultiplier>
			<recoilMultiplier>1.33</recoilMultiplier>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base12GaugeBullet">
		<defName>Bullet_12Gauge_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>9</damageAmountBase>
			<armorPenetrationSharp>0</armorPenetrationSharp>
			<armorPenetrationBlunt>3.240</armorPenetrationBlunt>
			<spreadMult>2</spreadMult>
			<casingMoteDefname>Fleck_ShotgunShell_White</casingMoteDefname>
			<casingFilthDefname>Filth_ShotgunAmmoCasings_White</casingFilthDefname>
			<shieldDamageMultiplier>0.1</shieldDamageMultiplier>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base12GaugeBullet">
		<defName>Bullet_12Gauge_ElectroSlug</defName>
		<label>EMP slug</label>
		<graphicData>
			<texPath>Things/Projectile/Bullet_big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
			<color>(68,210,215)</color>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>43</speed>
			<damageDef>EMP</damageDef>
			<damageAmountBase>12</damageAmountBase>
			<armorPenetrationSharp>0</armorPenetrationSharp>
			<armorPenetrationBlunt>0</armorPenetrationBlunt>
			<empShieldBreakChance>0.2</empShieldBreakChance>
			<casingMoteDefname>Fleck_ShotgunShell_Black</casingMoteDefname>
			<casingFilthDefname>Filth_ShotgunAmmoCasings_Black</casingFilthDefname>
		</projectile>
	</ThingDef>

	<!-- Slow Projectiles -->

	<ThingDef ParentName="Base12GaugeBullet">
		<defName>Bullet_12Gauge_Buck_SB</defName>
		<label>buckshot pellet</label>
		<graphicData>
			<texPath>Things/Projectile/Shotgun_Pellet</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>75</speed>
			<damageAmountBase>7</damageAmountBase>
			<pelletCount>9</pelletCount>
			<armorPenetrationSharp>3.5</armorPenetrationSharp>
			<armorPenetrationBlunt>3.46</armorPenetrationBlunt>
			<spreadMult>11.0</spreadMult>
			<shieldDamageMultiplier>0.25</shieldDamageMultiplier>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base12GaugeBullet">
		<defName>Bullet_12Gauge_Slug_SB</defName>
		<label>shotgun slug</label>
		<graphicData>
			<texPath>Things/Projectile/Bullet_big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>106</speed>
			<damageAmountBase>26</damageAmountBase>
			<armorPenetrationSharp>5</armorPenetrationSharp>
			<armorPenetrationBlunt>70.76</armorPenetrationBlunt>
			<casingMoteDefname>Fleck_ShotgunShell_Green</casingMoteDefname>
			<casingFilthDefname>Filth_ShotgunAmmoCasings_Green</casingFilthDefname>
			<effectiveRangeMultiplier>1.5</effectiveRangeMultiplier>
			<recoilMultiplier>1.33</recoilMultiplier>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base12GaugeBullet">
		<defName>Bullet_12Gauge_Beanbag_SB</defName>
		<label>beanbag</label>
		<graphicData>
			<texPath>Things/Projectile/Bullet_big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>26</speed>
			<damageDef>Beanbag</damageDef>
			<damageAmountBase>8</damageAmountBase>
			<armorPenetrationSharp>0</armorPenetrationSharp>
			<armorPenetrationBlunt>2.26</armorPenetrationBlunt>
			<spreadMult>2</spreadMult>
			<casingMoteDefname>Fleck_ShotgunShell_White</casingMoteDefname>
			<casingFilthDefname>Filth_ShotgunAmmoCasings_White</casingFilthDefname>
			<shieldDamageMultiplier>0.1</shieldDamageMultiplier>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base12GaugeBullet">
		<defName>Bullet_12Gauge_ElectroSlug_SB</defName>
		<label>EMP slug</label>
		<graphicData>
			<texPath>Things/Projectile/Bullet_big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
			<color>(68,210,215)</color>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>33</speed>
			<damageDef>EMP</damageDef>
			<damageAmountBase>12</damageAmountBase>
			<armorPenetrationSharp>0</armorPenetrationSharp>
			<armorPenetrationBlunt>0</armorPenetrationBlunt>
			<empShieldBreakChance>0.2</empShieldBreakChance>
			<casingMoteDefname>Fleck_ShotgunShell_Black</casingMoteDefname>
			<casingFilthDefname>Filth_ShotgunAmmoCasings_Black</casingFilthDefname>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_12Gauge_Buck</defName>
		<label>make 12 gauge (Buck) shell x200</label>
		<description>Craft 200 12 gauge (Buck) shells.</description>
		<jobString>Making 12 gauge (Buck) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>22</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_12Gauge_Buck>200</Ammo_12Gauge_Buck>
		</products>
		<workAmount>2200</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_12Gauge_Slug</defName>
		<label>make 12 gauge (Slug) shell x200</label>
		<description>Craft 200 12 gauge (Slug) shells.</description>
		<jobString>Making 12 gauge (Slug) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>20</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_12Gauge_Slug>200</Ammo_12Gauge_Slug>
		</products>
		<workAmount>2000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_12Gauge_Beanbag</defName>
		<label>make 12 gauge (Beanbag) shell x200</label>
		<description>Craft 200 12 gauge (Beanbag) shells.</description>
		<jobString>Making 12 gauge (Beanbag) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>24</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Cloth</li>
					</thingDefs>
				</filter>
				<count>10</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Cloth</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_12Gauge_Beanbag>200</Ammo_12Gauge_Beanbag>
		</products>
		<workAmount>3400</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_12Gauge_ElectroSlug</defName>
		<label>make 12 gauge (EMP) shell x200</label>
		<description>Craft 200 12 gauge (EMP) shells.</description>
		<jobString>Making 12 gauge (EMP) shells.</jobString>
		<researchPrerequisite>MicroelectronicsBasics</researchPrerequisite>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>22</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_12Gauge_ElectroSlug>200</Ammo_12Gauge_ElectroSlug>
		</products>
		<skillRequirements>
			<Crafting>4</Crafting>
		</skillRequirements>
		<workAmount>4600</workAmount>
	</RecipeDef>

</Defs>