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

	<!-- Tomahawk LAM missile has only one type of warhead for CE:FT, no subcategory for variants required -->

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_TomahawkLAM</defName>
		<label>Tomahawk Missile</label>
		<ammoTypes>
			<Ammo_TomahawkLAM>Bullet_TomahawkLAM</Ammo_TomahawkLAM>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="TomahawkLAMBase" ParentName="HeavyAmmoBase" Abstract="True">
		<description>Long-range, all-weather, jet-powered, surface-launched subsonic cruise missile designed to attack land targets.</description>
		<statBases>
			<MaxHitPoints>500</MaxHitPoints>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting_TableMachining</li>
		</tradeTags>
		<thingCategories>
			<li>AmmoMissiles</li>
		</thingCategories>
		<stackLimit>25</stackLimit>
		<cookOffFlashScale>40</cookOffFlashScale>
		<cookOffSound>MortarBomb_Explode</cookOffSound>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="TomahawkLAMBase">
		<defName>Ammo_TomahawkLAM</defName>
		<label>Tomahawk Missile</label>
		<graphicData>
			<texPath>Things/Ammo/Missile/TomahawkLAM</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
			<drawSize>4,4</drawSize>
		</graphicData>
		<statBases>
			<Mass>1440</Mass>
			<Bulk>3830.29</Bulk>
		</statBases>
		<size>4,1</size>
		<ammoClass>TomahawkLAM</ammoClass>
		<detonateProjectile>Bullet_TomahawkLAM</detonateProjectile>
	</ThingDef>

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

	<ThingDef Name="BaseTomahawkLAM" ParentName="BaseExplosiveBullet" Abstract="true">
		<graphicData>
			<shaderType>TransparentPostLight</shaderType>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>63</speed>
			<soundHitThickRoof>Explosion_GiantBomb</soundHitThickRoof>
			<soundExplode>Explosion_GiantBomb</soundExplode>
			<soundImpactAnticipate>MortarRound_PreImpact</soundImpactAnticipate>
			<soundAmbient>RocketPropelledLoop_Big</soundAmbient>
			<flyOverhead>true</flyOverhead>
			<dropsCasings>false</dropsCasings>
			<casingMoteDefname>Fleck_BigShell</casingMoteDefname>
			<casingFilthDefname>Filth_CannonAmmoCasings</casingFilthDefname>
		</projectile>
		<comps>
			<li Class="CombatExtended.CompProperties_ProjectileFleck">
				<FleckDatas>
					<li>
						<fleck>Fleck_CERocketFlame</fleck>
						<emissionsPerTick>3</emissionsPerTick>
						<flecksPerEmission>3</flecksPerEmission>
						<scale>2</scale>
						<cutoffTickRange>100~150</cutoffTickRange>
						<originOffset>1.5</originOffset>
					</li>
					<li>
						<fleck>Fleck_CERocketSmokeTrail</fleck>
						<emissionsPerTick>2</emissionsPerTick>
						<rotation>0~360</rotation>
						<scale>3</scale>
						<flecksPerEmission>1</flecksPerEmission>
					</li>
					<li>
						<fleck>Fleck_CERocketSmoke</fleck>
						<emissionsPerTick>2</emissionsPerTick>
						<rotation>0~360</rotation>
						<scale>2</scale>
						<flecksPerEmission>3</flecksPerEmission>
						<cutoffTickRange>25~60</cutoffTickRange>
					</li>
				</FleckDatas>
			</li>
		</comps>
	</ThingDef>

	<ThingDef ParentName="BaseTomahawkLAM">
		<defName>Bullet_TomahawkLAM</defName>
		<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
		<label>Tomahawk Missile</label>
		<graphicData>
			<texPath>Things/Projectile/Missile/TomahawkLAM</texPath>
			<graphicClass>Graphic_Single</graphicClass>
			<drawSize>2,4</drawSize>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<explosionRadius>19.5</explosionRadius>
			<damageDef>Bomb</damageDef>
			<damageAmountBase>5653</damageAmountBase>
			<soundExplode>Explosion_GiantBomb</soundExplode>
			<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
			<preExplosionSpawnSingleThingDef>CraterLarge</preExplosionSpawnSingleThingDef>
		</projectile>
		<comps>
			<li Class="CombatExtended.CompProperties_Fragments">
				<fragments>
					<Fragment_Large>40</Fragment_Large>
					<Fragment_Small>80</Fragment_Small>
				</fragments>
			</li>
		</comps>
	</ThingDef>

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

	<RecipeDef ParentName="LauncherAmmoRecipeBase">
		<defName>MakeAmmo_TomahawkLAM</defName>
		<label>make Tomahawk Missile</label>
		<description>Craft a single Tomahawk Missile.</description>
		<jobString>Making Tomahawk Missile.</jobString>
		<researchPrerequisite>CE_AdvancedLaunchers</researchPrerequisite>
		<workAmount>607200</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>2880</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>792</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_TomahawkLAM>1</Ammo_TomahawkLAM>
		</products>
	</RecipeDef>

</Defs>