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

	<ThingCategoryDef>
		<defName>Ammo23x75mmR</defName>
		<label>23x75mmR</label>
		<parent>AmmoShotguns</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberShotgun</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_23x75mmR</defName>
		<label>23x75mmR</label>
		<ammoTypes>
			<Ammo_23x75mmR_Buck>Bullet_23x75mmR_Buck</Ammo_23x75mmR_Buck>
			<Ammo_23x75mmR_Slug>Bullet_23x75mmR_Slug</Ammo_23x75mmR_Slug>
			<Ammo_23x75mmR_Beanbag>Bullet_23x75mmR_Beanbag</Ammo_23x75mmR_Beanbag>
			<Ammo_23x75mmR_ElectroSlug>Bullet_23x75mmR_ElectroSlug</Ammo_23x75mmR_ElectroSlug>
		</ammoTypes>
		<similarTo>AmmoSet_Shotgun</similarTo>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_23x75mmR_Slug</defName>
		<label>23x75mmR</label>
		<ammoTypes>
			<Ammo_23x75mmR_Slug>Bullet_23x75mmR_Slug</Ammo_23x75mmR_Slug>
			<Ammo_23x75mmR_Beanbag>Bullet_23x75mmR_Beanbag</Ammo_23x75mmR_Beanbag>
			<Ammo_23x75mmR_ElectroSlug>Bullet_23x75mmR_ElectroSlug</Ammo_23x75mmR_ElectroSlug>
		</ammoTypes>
		<similarTo>AmmoSet_Shotgun</similarTo>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="23x75mmRBase" ParentName="AmmoBase" Abstract="True">
		<description>Large 6.27 gauge shotgun caliber designed to be fired by the KS-23 shotgun.</description>
		<statBases>
			<Mass>0.095</Mass>
			<Bulk>0.1</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
	  		<li>CE_40K_Ammo</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo23x75mmR</li>
		</thingCategories>
		<stackLimit>5000</stackLimit>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="23x75mmRBase">
		<defName>Ammo_23x75mmR_Buck</defName>
		<label>23x75mmR shell (Buck)</label>
		<graphicData>
			<texPath>Things/Ammo/Shotgun/Shot</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>BuckShot</ammoClass>
		<cookOffProjectile>Bullet_23x75mmR_Buck</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="23x75mmRBase">
		<defName>Ammo_23x75mmR_Slug</defName>
		<label>23x75mmR shell (Slug)</label>
		<graphicData>
			<texPath>Things/Ammo/Shotgun/Slug</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.086</Mass>
		</statBases>
		<ammoClass>Slug</ammoClass>
		<cookOffProjectile>Bullet_23x75mmR_Slug</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="23x75mmRBase">
		<defName>Ammo_23x75mmR_Beanbag</defName>
		<label>23x75mmR shell (Bean)</label>
		<generateAllowChance>0</generateAllowChance>
		<graphicData>
			<texPath>Things/Ammo/Shotgun/Beanbag</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.112</Mass>
		</statBases>
		<ammoClass>Beanbag</ammoClass>
		<cookOffProjectile>Bullet_23x75mmR_Beanbag</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="23x75mmRBase">
		<defName>Ammo_23x75mmR_ElectroSlug</defName>
		<label>23x75mmR shell (EMP)</label>
		<graphicData>
			<texPath>Things/Ammo/Shotgun/EMP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.101</Mass>
		</statBases>
		<ammoClass>ElectroSlug</ammoClass>
		<generateAllowChance>0.5</generateAllowChance>
		<cookOffProjectile>Bullet_23x75mmR_ElectroSlug</cookOffProjectile>
	</ThingDef>

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

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

	<ThingDef ParentName="Base23x75mmRBullet">
		<defName>Bullet_23x75mmR_Buck</defName>
		<label>buckshot pellet</label>
		<graphicData>
			<texPath>Things/Projectile/Shotgun_Pellet</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>10</damageAmountBase>
			<pelletCount>14</pelletCount>
			<armorPenetrationSharp>5</armorPenetrationSharp>
			<armorPenetrationBlunt>8.1</armorPenetrationBlunt>
			<spreadMult>7.9</spreadMult>
			<shieldDamageMultiplier>0.25</shieldDamageMultiplier>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base23x75mmRBullet">
		<defName>Bullet_23x75mmR_Slug</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>38</damageAmountBase>
			<armorPenetrationSharp>8</armorPenetrationSharp>
			<armorPenetrationBlunt>162.5</armorPenetrationBlunt>
			<casingMoteDefname>Fleck_ShotgunShell_Green</casingMoteDefname>
			<casingFilthDefname>Filth_ShotgunAmmoCasings_Green</casingFilthDefname>
			<effectiveRangeMultiplier>1.5</effectiveRangeMultiplier>
			<recoilMultiplier>1.33</recoilMultiplier>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base23x75mmRBullet">
		<defName>Bullet_23x75mmR_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>13</damageAmountBase>
			<armorPenetrationBlunt>7.38</armorPenetrationBlunt>
			<spreadMult>2</spreadMult>
			<casingMoteDefname>Fleck_ShotgunShell_White</casingMoteDefname>
			<casingFilthDefname>Filth_ShotgunAmmoCasings_White</casingFilthDefname>
			<shieldDamageMultiplier>0.1</shieldDamageMultiplier>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base23x75mmRBullet">
		<defName>Bullet_23x75mmR_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">
			<damageDef>EMP</damageDef>
			<damageAmountBase>29</damageAmountBase>
			<armorPenetrationSharp>0</armorPenetrationSharp>
			<armorPenetrationBlunt>0</armorPenetrationBlunt>
			<empShieldBreakChance>0.5</empShieldBreakChance>
			<speed>60</speed>
			<casingMoteDefname>Fleck_ShotgunShell_Black</casingMoteDefname>
			<casingFilthDefname>Filth_ShotgunAmmoCasings_Black</casingFilthDefname>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_23x75mmR_Buck</defName>
		<label>make 23x75mmR (Buck) shell x200</label>
		<description>Craft 200 23x75mmR (Buck) shells.</description>
		<jobString>Making 23x75mmR (Buck) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>40</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_23x75mmR_Buck>200</Ammo_23x75mmR_Buck>
		</products>
		<workAmount>4000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_23x75mmR_Slug</defName>
		<label>make 23x75mmR (Slug) shell x200</label>
		<description>Craft 200 23x75mmR (Slug) shells.</description>
		<jobString>Making 23x75mmR (Slug) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>36</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_23x75mmR_Slug>200</Ammo_23x75mmR_Slug>
		</products>
		<workAmount>3600</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_23x75mmR_Beanbag</defName>
		<label>make 23x75mmR (Beanbag) shell x200</label>
		<description>Craft 200 23x75mmR (Beanbag) shells.</description>
		<jobString>Making 23x75mmR (Beanbag) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>38</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Cloth</li>
					</thingDefs>
				</filter>
				<count>15</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Cloth</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_23x75mmR_Beanbag>200</Ammo_23x75mmR_Beanbag>
		</products>
		<workAmount>5300</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_23x75mmR_ElectroSlug</defName>
		<label>make 23x75mmR (EMP) shell x200</label>
		<description>Craft 200 23x75mmR (EMP) shells.</description>
		<jobString>Making 23x75mmR (EMP) shells.</jobString>
		<researchPrerequisite>MicroelectronicsBasics</researchPrerequisite>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>36</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>14</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_23x75mmR_ElectroSlug>200</Ammo_23x75mmR_ElectroSlug>
		</products>
		<skillRequirements>
			<Crafting>4</Crafting>
		</skillRequirements>
		<workAmount>12000</workAmount>
	</RecipeDef>

</Defs>
