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

	<ThingCategoryDef>
		<defName>Ammo23x152mmB</defName>
		<label>23x152mmB</label>
		<parent>AmmoHighCaliber</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberHighCaliber</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_23x152mmB</defName>
		<label>23x152mmB</label>
		<ammoTypes>
			<Ammo_23x152mmB_AP>Bullet_23x152mmB_AP</Ammo_23x152mmB_AP>
			<Ammo_23x152mmB_Incendiary>Bullet_23x152mmB_Incendiary</Ammo_23x152mmB_Incendiary>
			<Ammo_23x152mmB_APHE>Bullet_23x152mmB_APHE</Ammo_23x152mmB_APHE>
			<Ammo_23x152mmB_Sabot>Bullet_23x152mmB_Sabot</Ammo_23x152mmB_Sabot>
		</ammoTypes>
		<similarTo>AmmoSet_Autocannon</similarTo>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="Ammo23x152mmBBase" ParentName="MediumAmmoBase" Abstract="True">
		<description>Large caliber cartridge used by autocannons.</description>
		<statBases>
			<Mass>0.45</Mass>
			<Bulk>0.62</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo23x152mmB</li>
		</thingCategories>
		<stackLimit>500</stackLimit>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo23x152mmBBase">
		<defName>Ammo_23x152mmB_AP</defName>
		<label>23x152mmB (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/AP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<cookOffProjectile>Bullet_23x152mmB_AP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo23x152mmBBase">
		<defName>Ammo_23x152mmB_Incendiary</defName>
		<label>23x152mmB (AP-I)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/Incendiary</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>IncendiaryAP</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_23x152mmB_Incendiary</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo23x152mmBBase">
		<defName>Ammo_23x152mmB_APHE</defName>
		<label>23x152mmB (AP-HE)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/HE</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ExplosiveAP</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_23x152mmB_APHE</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo23x152mmBBase">
		<defName>Ammo_23x152mmB_Sabot</defName>
		<label>23x152mmB (Sabot)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/Sabot</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.368</Mass>
		</statBases>
		<ammoClass>Sabot</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_23x152mmB_Sabot</cookOffProjectile>
	</ThingDef>

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

	<ThingDef Name="Base23x152mmBBullet" ParentName="BaseBulletCE" Abstract="true">
		<graphicData>
			<texPath>Things/Projectile/Bullet_Big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<speed>174</speed>
			<dropsCasings>true</dropsCasings>
			<casingMoteDefname>Fleck_RifleAmmoCasings_HighCal</casingMoteDefname>
			<casingFilthDefname>Filth_RifleAmmoCasings_HighCal</casingFilthDefname>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base23x152mmBBullet">
		<defName>Bullet_23x152mmB_AP</defName>
		<label>23x152mmB bullet (AP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>56</damageAmountBase>
			<armorPenetrationSharp>45</armorPenetrationSharp>
			<armorPenetrationBlunt>1787.72</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base23x152mmBBullet">
		<defName>Bullet_23x152mmB_Incendiary</defName>
		<label>23x152mmB bullet (AP-I)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>56</damageAmountBase>
			<armorPenetrationSharp>45</armorPenetrationSharp>
			<armorPenetrationBlunt>1787.72</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>34</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base23x152mmBBullet">
		<defName>Bullet_23x152mmB_APHE</defName>
		<label>23x152mmB bullet (AP-HE)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>89</damageAmountBase>
			<armorPenetrationSharp>22.5</armorPenetrationSharp>
			<armorPenetrationBlunt>1787.72</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>46</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base23x152mmBBullet">
		<defName>Bullet_23x152mmB_Sabot</defName>
		<label>23x152mmB bullet (Sabot)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>53</damageAmountBase>
			<armorPenetrationSharp>78.5</armorPenetrationSharp>
			<armorPenetrationBlunt>2286.38</armorPenetrationBlunt>
			<speed>236</speed>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_23x152mmB_AP</defName>
		<label>make 23x152mmB (AP) cartridge x200</label>
		<description>Craft 200 23x152mmB (AP) cartridges.</description>
		<jobString>Making 23x152mmB (AP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>180</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_23x152mmB_AP>200</Ammo_23x152mmB_AP>
		</products>
		<workAmount>21600</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_23x152mmB_Incendiary</defName>
		<label>make 23x152mmB (AP-I) cartridge x200</label>
		<description>Craft 200 23x152mmB (AP-I) cartridges.</description>
		<jobString>Making 23x152mmB (AP-I) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>180</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>19</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Prometheum</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_23x152mmB_Incendiary>200</Ammo_23x152mmB_Incendiary>
		</products>
		<workAmount>25600</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_23x152mmB_APHE</defName>
		<label>make 23x152mmB (AP-HE) cartridge x200</label>
		<description>Craft 200 23x152mmB (AP-HE) cartridges.</description>
		<jobString>Making 23x152mmB (AP-HE) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>180</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>35</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_23x152mmB_APHE>200</Ammo_23x152mmB_APHE>
		</products>
		<workAmount>32000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_23x152mmB_Sabot</defName>
		<label>make 23x152mmB (Sabot) cartridge x200</label>
		<description>Craft 200 23x152mmB (Sabot) cartridges.</description>
		<jobString>Making 23x152mmB (Sabot) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>104</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>22</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Chemfuel</li>
					</thingDefs>
				</filter>
				<count>22</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>Chemfuel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_23x152mmB_Sabot>200</Ammo_23x152mmB_Sabot>
		</products>
		<workAmount>23600</workAmount>
	</RecipeDef>

</Defs>