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

	<ThingCategoryDef>
		<defName>LargeCannonBall</defName>
		<label>Large Cannon Ball</label>
		<parent>AmmoShells</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberMortar</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_BlunderShot</defName>
		<label>Blunder Shot</label>
		<ammoTypes>
			<Ammo_MusketBall>Bullet_BlunderShot_Ball</Ammo_MusketBall>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_LargeCannonBall</defName>
		<label>Large Cannon Ball</label>
		<ammoTypes>
			<Shell_LargeCannonBall_Steel>Bullet_LargeCannonBall_Steel</Shell_LargeCannonBall_Steel>
		</ammoTypes>
		<isMortarAmmoSet>true</isMortarAmmoSet>
	</CombatExtended.AmmoSetDef>

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

	<!-- ==== Large Steel Cannon Ball	==== -->

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="81mmMortarShellBaseCraftableBase">
		<defName>Shell_LargeCannonBall_Steel</defName>
		<label>Large Cannon Ball</label>
		<graphicData>
			<texPath>Things/Ammo/Cannon/BlackPowder/Roundshot</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>16</Mass>
			<Bulk>12</Bulk>
		</statBases>
		<ammoClass>CannonBall</ammoClass>
		<detonateProjectile>Bullet_LargeCannonBall_Steel</detonateProjectile>
		<comps>
			<!-- Vanilla values -->
			<li Class="CompProperties_Explosive">
				<explosiveRadius>4</explosiveRadius>
				<explosiveDamageType>Bomb</explosiveDamageType>
				<!--<explosiveExpandPerStackcount>0.4</explosiveExpandPerStackcount>-->
				<startWickHitPointsPercent>0.7</startWickHitPointsPercent>
				<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
				<explodeOnKilled>True</explodeOnKilled>
				<wickTicks>30~60</wickTicks>
			</li>
		</comps>
	</ThingDef>

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

	<!-- ==== Blunder Shot ==== -->
	<ThingDef ParentName="Base12GaugeBullet">
		<defName>Bullet_BlunderShot_Ball</defName>
		<label>lead ball</label>
		<graphicData>
			<texPath>Things/Projectile/Shotgun_Pellet</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>10</damageAmountBase>
			<pelletCount>10</pelletCount>
			<armorPenetrationSharp>2.5</armorPenetrationSharp>
			<armorPenetrationBlunt>12</armorPenetrationBlunt>
			<spreadMult>22.5</spreadMult>
			<speed>76</speed>
			<shieldDamageMultiplier>0.25</shieldDamageMultiplier>
		</projectile>
	</ThingDef>

	<!-- ==== Large Steel Cannon Ball ==== -->
	<ThingDef ParentName="Base81mmMortarShell">
		<defName>Bullet_LargeCannonBall_Steel</defName>
		<label>Large Cannon Ball</label>
		<graphicData>
			<texPath>Things/Projectile/Mortar/Illumination</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bomb</damageDef>
			<damageAmountBase>56</damageAmountBase>
			<armorPenetrationSharp>0</armorPenetrationSharp>
			<armorPenetrationBlunt>128</armorPenetrationBlunt>
			<explosionRadius>2.5</explosionRadius>
			<flyOverhead>true</flyOverhead>
			<soundExplode>MortarBomb_Explode</soundExplode>
			<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
			<ai_IsIncendiary>false</ai_IsIncendiary>
		</projectile>
		<comps>
			<li Class="CombatExtended.CompProperties_Fragments">
				<fragments>
					<Fragment_Large>4</Fragment_Large>
					<Fragment_Small>15</Fragment_Small>
				</fragments>
			</li>
		</comps>
	</ThingDef>

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

	<!-- ==== Mortar Grenade ==== -->
	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_MortarGrenade</defName>
		<label>Make Mortar Grenade x5</label>
		<description>Craft 5 Mortar Grenades</description>
		<jobString>Making Mortar Grenades</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>15</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>10</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_MortarGrenade>5</Ammo_MortarGrenade>
		</products>
		<workAmount>8500</workAmount>
	</RecipeDef>

	<!-- ==== Large Steel Cannon Ball ==== -->
	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeShell_LargeCannonBall_Steel</defName>
		<label>Make Steel Large Cannon Balls x5</label>
		<description>Craft 5 Steel Large Cannon Balls</description>
		<jobString>Making Steel Large Cannon Balls</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>100</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Shell_LargeCannonBall_Steel>5</Shell_LargeCannonBall_Steel>
		</products>
		<workAmount>28000</workAmount>
	</RecipeDef>
</Defs>