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

	<ThingCategoryDef>
		<defName>Ammo57x307mmR</defName>
		<label>57x307mmR</label>
		<parent>AmmoShells</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberAutocannonLarge</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_57x307mmR</defName>
		<label>57x307mmR</label>
		<ammoTypes>
			<Ammo_57x307mmR_AP>Bullet_57x307mmR_AP</Ammo_57x307mmR_AP>
			<Ammo_57x307mmR_HE>Bullet_57x307mmR_HE</Ammo_57x307mmR_HE>
		</ammoTypes>
		<similarTo>AmmoSet_LightCannon</similarTo>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="Ammo57x307mmRBase" ParentName="HeavyAmmoBase" Abstract="True">
		<description>Large caliber shell used by naval artillery guns.</description>
		<thingCategories>
			<li>Ammo57x307mmR</li>
		</thingCategories>
		<stackLimit>25</stackLimit>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting_TableMachining</li>
		</tradeTags>
		<statBases>
			<Mass>4.3</Mass>
			<Bulk>2.79</Bulk>
		</statBases>
		<cookOffFlashScale>20</cookOffFlashScale>
		<cookOffSound>MortarBomb_Explode</cookOffSound>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo57x307mmRBase">
		<defName>Ammo_57x307mmR_AP</defName>
		<label>57x307mmR cartridge (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/Cannon/Tank/APHE</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<detonateProjectile>Bullet_57x307mmR_AP</detonateProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo57x307mmRBase">
		<defName>Ammo_57x307mmR_HE</defName>
		<label>57x307mmR cartridge (HE)</label>
		<graphicData>
			<texPath>Things/Ammo/Cannon/Tank/HE</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>GrenadeHE</ammoClass>
		<detonateProjectile>Bullet_57x307mmR_HE</detonateProjectile>
	</ThingDef>

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

	<ThingDef Name="Base57x307mmRBullet" ParentName="BaseExplosiveBullet" Abstract="true">
		<graphicData>
			<texPath>Things/Projectile/Bullet_Big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>92</speed>
			<flyOverhead>false</flyOverhead>
			<dropsCasings>true</dropsCasings>
			<casingMoteDefname>Fleck_BigShell</casingMoteDefname>
			<casingFilthDefname>Filth_CannonAmmoCasings</casingFilthDefname>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base57x307mmRBullet">
		<defName>Bullet_57x307mmR_AP</defName>
		<label>57x307mmR cannon shell (AP)</label>
		<graphicData>
			<texPath>Things/Projectile/Cannon/AP</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<damageAmountBase>105</damageAmountBase>
			<armorPenetrationSharp>32</armorPenetrationSharp>
			<armorPenetrationBlunt>4560.86</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base57x307mmRBullet">
		<defName>Bullet_57x307mmR_HE</defName>
		<label>57x307mmR cannon shell (HE)</label>
		<graphicData>
			<texPath>Things/Projectile/Cannon/HE</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bomb</damageDef>
			<damageAmountBase>33</damageAmountBase>
			<explosionRadius>1</explosionRadius>
			<soundExplode>MortarBomb_Explode</soundExplode>
			<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
		</projectile>
		<comps>
			<li Class="CombatExtended.CompProperties_Fragments">
				<fragments>
					<Fragment_Large>10</Fragment_Large>
					<Fragment_Small>2</Fragment_Small>
				</fragments>
			</li>
		</comps>
	</ThingDef>

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

	<RecipeDef ParentName="CannonAmmoRecipeBase">
		<defName>MakeAmmo_57x307mmR_AP</defName>
		<label>make 57x307mmR (AP) cannon shells x10</label>
		<description>Craft 10 57x307mmR (AP) cannon shells.</description>
		<jobString>Making 57x307mmR (AP) cannon shells.</jobString>
		<workAmount>10320</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>86</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_57x307mmR_AP>10</Ammo_57x307mmR_AP>
		</products>
	</RecipeDef>

	<RecipeDef ParentName="CannonAmmoRecipeBase">
		<defName>MakeAmmo_57x307mmR_HE</defName>
		<label>make 57x307mmR (HE) cannon shells x10</label>
		<description>Craft 10 57x307mmR (HE) cannon shells.</description>
		<jobString>Making 57x307mmR (HE) cannon shells.</jobString>
		<workAmount>10600</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>86</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>ComponentIndustrial</li>
				<li>FSX</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_57x307mmR_HE>10</Ammo_57x307mmR_HE>
		</products>
	</RecipeDef>

</Defs>