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

	<!-- ==================== Categories ========================== -->

	<!-- Relabeled 40x365mm Bofors Shell -->

	<ThingCategoryDef>
		<defName>AmmoLightCannonShell</defName>
		<label>light cannon shell</label>
		<parent>AmmoShells</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberAutocannonLarge</iconPath>
	</ThingCategoryDef>

	<!-- Relabeled 90mm Shell -->

	<ThingCategoryDef>
		<defName>AmmoHeavyCannonShell</defName>
		<label>heavy cannon shell</label>
		<parent>AmmoShells</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberCannon</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_LightCannon</defName>
		<label>light cannon shell</label>
		<ammoTypes>
			<Ammo_LightCannonShell_AP>Bullet_40x365mmBofors_AP</Ammo_LightCannonShell_AP>
			<Ammo_LightCannonShell_HE>Bullet_40x365mmBofors_HE</Ammo_LightCannonShell_HE>
			<Ammo_LightCannonShell_HE_TFuzed>Bullet_40x365mmBofors_HE_TFuzed</Ammo_LightCannonShell_HE_TFuzed>
			<Ammo_LightCannonShell_Sabot>Bullet_40x365mmBofors_Sabot</Ammo_LightCannonShell_Sabot>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_HeavyCannon</defName>
		<label>heavy cannon shell</label>
		<ammoTypes>
			<Ammo_HeavyCannonShell_HEAT>Bullet_90mmCannonShell_HEAT</Ammo_HeavyCannonShell_HEAT>
			<Ammo_HeavyCannonShell_HE>Bullet_90mmCannonShell_HE</Ammo_HeavyCannonShell_HE>
			<Ammo_HeavyCannonShell_AP>Bullet_90mmCannonShell_AP</Ammo_HeavyCannonShell_AP>
			<Ammo_HeavyCannonShell_HE_TFuzed>Bullet_90mmCannonShell_HE_TFuzed</Ammo_HeavyCannonShell_HE_TFuzed>
			<Ammo_HeavyCannonShell_APCR>Bullet_90mmCannonShell_APCR</Ammo_HeavyCannonShell_APCR>
			<Ammo_HeavyCannonShell_EMP>Bullet_90mmCannonShell_EMP</Ammo_HeavyCannonShell_EMP>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

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

	<!-- Light Shells -->

	<ThingDef Class="CombatExtended.AmmoDef" Name="AmmoLightCannonShellBase" ParentName="HeavyAmmoBase" Abstract="True">
		<description>Large caliber shell used by autocannons and anti-aircraft cannons.</description>
		<statBases>
			<Mass>2.5</Mass>
			<Bulk>4.69</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting_TableMachining</li>
		</tradeTags>
		<thingCategories>
			<li>AmmoLightCannonShell</li>
		</thingCategories>
		<stackLimit>25</stackLimit>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoLightCannonShellBase">
		<defName>Ammo_LightCannonShell_AP</defName>
		<label>light cannon shell (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/Bofors/AP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<cookOffProjectile>Bullet_40x365mmBofors_AP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoLightCannonShellBase">
		<defName>Ammo_LightCannonShell_HE</defName>
		<label>light cannon shell (HE)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/Bofors/HE</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>GrenadeHE</ammoClass>
		<cookOffProjectile>Bullet_40x365mmBofors_HE</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoLightCannonShellBase">
		<defName>Ammo_LightCannonShell_HE_TFuzed</defName>
		<label>light cannon shell (HE Time Fuzed)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/Bofors/HE</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>GrenadeHETF</ammoClass>
		<cookOffProjectile>Bullet_40x365mmBofors_HE</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoLightCannonShellBase">
		<defName>Ammo_LightCannonShell_Sabot</defName>
		<label>light cannon shell (Sabot)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/Bofors/Sabot</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>2.088</Mass>
		</statBases>
		<ammoClass>Sabot</ammoClass>
		<cookOffProjectile>Bullet_40x365mmBofors_Sabot</cookOffProjectile>
	</ThingDef>

	<!-- Heavy Shells -->

	<ThingDef Class="CombatExtended.AmmoDef" Name="HeavyCannonShellBase" ParentName="HeavyAmmoBase" Abstract="True">
		<description>High-caliber cannon shell typically used by anti-armor weaponry.</description>
		<thingCategories>
			<li>AmmoHeavyCannonShell</li>
		</thingCategories>
		<stackLimit>25</stackLimit>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting_TableMachining</li>
		</tradeTags>
		<statBases>
			<MaxHitPoints>200</MaxHitPoints>
			<Mass>18</Mass>
			<Bulk>22.41</Bulk>
		</statBases>
		<cookOffFlashScale>30</cookOffFlashScale>
		<cookOffSound>MortarBomb_Explode</cookOffSound>
		<isMortarAmmo>true</isMortarAmmo>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="HeavyCannonShellBase">
		<defName>Ammo_HeavyCannonShell_HEAT</defName>
		<label>heavy cannon shell (HEAT)</label>
		<graphicData>
			<texPath>Things/Ammo/Cannon/Tank/HEAT</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>19.5</Mass>
		</statBases>
		<ammoClass>RocketHEAT</ammoClass>
		<detonateProjectile>Bullet_90mmCannonShell_HEAT</detonateProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="90mmCannonShellBase">
		<defName>Ammo_HeavyCannonShell_AP</defName>
		<label>heavy cannon shell (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/Cannon/Tank/AP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<detonateProjectile>Bullet_90mmCannonShell_AP</detonateProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="90mmCannonShellBase">
		<defName>Ammo_HeavyCannonShell_HE</defName>
		<label>heavy cannon shell (HE)</label>
		<graphicData>
			<texPath>Things/Ammo/Cannon/Tank/HE</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>GrenadeHE</ammoClass>
		<detonateProjectile>Bullet_90mmCannonShell_HE</detonateProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="90mmCannonShellBase">
		<defName>Ammo_HeavyCannonShell_HE_TFuzed</defName>
		<label>heavy cannon shell (HE Time-Fuzed)</label>
		<graphicData>
			<texPath>Things/Ammo/Cannon/Tank/HE</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>GrenadeHETF</ammoClass>
		<detonateProjectile>Bullet_90mmCannonShell_HE</detonateProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="90mmCannonShellBase">
		<defName>Ammo_HeavyCannonShell_APCR</defName>
		<label>heavy cannon shell (APCR)</label>
		<graphicData>
			<texPath>Things/Ammo/Cannon/Tank/APCR</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>13.3</Mass>
		</statBases>
		<ammoClass>CompositeRigidAP</ammoClass>
		<detonateProjectile>Bullet_90mmCannonShell_APCR</detonateProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="90mmCannonShellBase">
		<defName>Ammo_HeavyCannonShell_EMP</defName>
		<label>heavy cannon shell (EMP)</label>
		<graphicData>
			<texPath>Things/Ammo/Cannon/Tank/EMP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>GrenadeEMP</ammoClass>
		<detonateProjectile>Bullet_90mmCannonShell_EMP</detonateProjectile>
	</ThingDef>

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

	<!-- Light Shells -->

	<RecipeDef ParentName="CannonAmmoRecipeBase">
		<defName>MakeAmmo_LightCannonShell_AP</defName>
		<label>make light cannon (AP) shell x25</label>
		<description>Craft 25 light cannon (AP) shells.</description>
		<jobString>Making light cannon (AP) shells.</jobString>
		<workAmount>15120</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>126</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_LightCannonShell_AP>25</Ammo_LightCannonShell_AP>
		</products>
	</RecipeDef>

	<RecipeDef ParentName="CannonAmmoRecipeBase">
		<defName>MakeAmmo_LightCannonShell_HE</defName>
		<label>make light cannon (HE) shell x25</label>
		<description>Craft 25 light cannon (HE) shells.</description>
		<jobString>Making light cannon (HE) shells.</jobString>
		<workAmount>18600</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>126</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>ComponentIndustrial</li>
				<li>FSX</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_LightCannonShell_HE>25</Ammo_LightCannonShell_HE>
		</products>
	</RecipeDef>

	<RecipeDef ParentName="CannonAmmoRecipeBase">
		<defName>MakeAmmo_LightCannonShell_HE_TFuzed</defName>
		<label>make light cannon (Time-Fuzed) shell x25</label>
		<description>Craft 25 light cannon (Time-Fuzed) shells.</description>
		<jobString>Making light cannon (Time-Fuzed) shells.</jobString>
		<researchPrerequisite Inherit="False" />
		<researchPrerequisites>
			<li>CE_TurretHeavyWeapons</li>
			<li>CE_AdvancedLaunchers</li>
		</researchPrerequisites>
		<workAmount>20400</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>126</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>5</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>ComponentIndustrial</li>
				<li>FSX</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_LightCannonShell_HE_TFuzed>25</Ammo_LightCannonShell_HE_TFuzed>
		</products>
	</RecipeDef>

	<RecipeDef ParentName="CannonAmmoRecipeBase">
		<defName>MakeAmmo_LightCannonShell_Sabot</defName>
		<label>make light cannon (Sabot) shell x25</label>
		<description>Craft 25 light cannon (Sabot) shells.</description>
		<jobString>Making light cannon (Sabot) shells.</jobString>
		<researchPrerequisite Inherit="False" />
		<researchPrerequisites>
			<li>CE_TurretHeavyWeapons</li>
			<li>CE_AdvancedAmmo</li>
		</researchPrerequisites>
		<workAmount>16200</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>78</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>14</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Chemfuel</li>
					</thingDefs>
				</filter>
				<count>14</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>Chemfuel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_LightCannonShell_Sabot>25</Ammo_LightCannonShell_Sabot>
		</products>
	</RecipeDef>

	<!-- Heavy Shells -->

	<RecipeDef ParentName="CannonAmmoRecipeBase">
		<defName>MakeAmmo_HeavyCannonShell_HEAT</defName>
		<label>make heavy (HEAT) cannon shells x5</label>
		<description>Craft 5 heavy (HEAT) cannon shells.</description>
		<jobString>Making heavy (HEAT) cannon shells.</jobString>
		<researchPrerequisite Inherit="False" />
		<researchPrerequisites>
			<li>CE_TurretHeavyWeapons</li>
			<li>CE_Launchers</li>
		</researchPrerequisites>
		<workAmount>24000</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>196</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>8</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_HeavyCannonShell_HEAT>5</Ammo_HeavyCannonShell_HEAT>
		</products>
	</RecipeDef>

	<RecipeDef ParentName="CannonAmmoRecipeBase">
		<defName>MakeAmmo_HeavyCannonShell_AP</defName>
		<label>make heavy (AP) cannon shells x5</label>
		<description>Craft 5 heavy (AP) cannon shells.</description>
		<jobString>Making heavy (AP) cannon shells.</jobString>
		<workAmount>21600</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>180</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_HeavyCannonShell_AP>5</Ammo_HeavyCannonShell_AP>
		</products>
	</RecipeDef>

	<RecipeDef ParentName="CannonAmmoRecipeBase">
		<defName>MakeAmmo_HeavyCannonShell_HE</defName>
		<label>make heavy (HE) cannon shells x5</label>
		<description>Craft 5 heavy (HE) cannon shells.</description>
		<jobString>Making heavy (HE) cannon shells.</jobString>
		<workAmount>23200</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>180</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>10</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_HeavyCannonShell_HE>5</Ammo_HeavyCannonShell_HE>
		</products>
	</RecipeDef>

	<RecipeDef ParentName="CannonAmmoRecipeBase">
		<defName>MakeAmmo_HeavyCannonShell_HE_TFuzed</defName>
		<label>make heavy (Time-Fuzed) cannon shells x5</label>
		<description>Craft 5 heavy (Time-Fuzed) cannon shells.</description>
		<jobString>Making heavy (Time-Fuzed) cannon shells.</jobString>
		<researchPrerequisite Inherit="False" />
		<researchPrerequisites>
			<li>CE_TurretHeavyWeapons</li>
			<li>CE_AdvancedLaunchers</li>
		</researchPrerequisites>
		<workAmount>25000</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>180</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>10</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>5</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_HeavyCannonShell_HE_TFuzed>5</Ammo_HeavyCannonShell_HE_TFuzed>
		</products>
	</RecipeDef>

	<RecipeDef ParentName="CannonAmmoRecipeBase">
		<defName>MakeAmmo_HeavyCannonShell_APCR</defName>
		<label>make heavy (APCR) cannon shells x5</label>
		<description>Craft 5 heavy (APCR) cannon shells.</description>
		<jobString>Making heavy (APCR) cannon shells.</jobString>
		<researchPrerequisite Inherit="False" />
		<researchPrerequisites>
			<li>CE_TurretHeavyWeapons</li>
			<li>CE_AdvancedAmmo</li>
		</researchPrerequisites>
		<workAmount>26200</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>70</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>32</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Chemfuel</li>
					</thingDefs>
				</filter>
				<count>32</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>Chemfuel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_HeavyCannonShell_APCR>5</Ammo_HeavyCannonShell_APCR>
		</products>
	</RecipeDef>

	<RecipeDef ParentName="CannonAmmoRecipeBase">
		<defName>MakeAmmo_HeavyCannonShell_EMP</defName>
		<label>make heavy EMP cannon shells x5</label>
		<description>Craft 5 heavy EMP cannon shells.</description>
		<jobString>Making heavy EMP cannon shells.</jobString>
		<researchPrerequisite Inherit="False" />
		<researchPrerequisites>
			<li>CE_TurretHeavyWeapons</li>
			<li>MicroelectronicsBasics</li>
		</researchPrerequisites>
		<workAmount>25800</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>180</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>13</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_HeavyCannonShell_EMP>5</Ammo_HeavyCannonShell_EMP>
		</products>
	</RecipeDef>

</Defs>