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

	<ThingCategoryDef>
		<defName>AmmoChemicalCompoundOE</defName>
		<label>Chemical munition OE</label>
		<parent>AmmoAdvanced</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberFuel</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_ChemicalCompoundOE</defName>
		<label>Chemical munition compound OE</label>
		<ammoTypes>
			<Ammo_ChemicalCompoundOE_Cryo>Bullet_ChemicalCompoundOE_Cryo</Ammo_ChemicalCompoundOE_Cryo>
			<Ammo_ChemicalCompoundOE_Napalm>Bullet_ChemicalCompoundOE_Napalm</Ammo_ChemicalCompoundOE_Napalm>
			<Ammo_ChemicalCompoundOE_Aprometheum>Bullet_ChemicalCompoundOE_Aprometheum</Ammo_ChemicalCompoundOE_Aprometheum>
			<Ammo_ChemicalCompoundOE_Thermobaric>Bullet_ChemicalCompoundOE_Thermobaric</Ammo_ChemicalCompoundOE_Thermobaric>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="ChemicalCompoundOE" ParentName="AmmoBase" Abstract="True">
		<description>Stabilised chemical munition compound stored in special canister, for use in advanced chemical launchers.</description>
		<statBases>
			<MaxHitPoints>75</MaxHitPoints>
			<Flammability>1.0</Flammability>
			<Mass>0.34</Mass>
			<Bulk>0.45</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting_DrugLab</li>
		</tradeTags>
		<thingCategories>
			<li>AmmoFlamethrower</li>
		</thingCategories>
		<stackLimit>500</stackLimit>
		<cookOffFlashScale>50</cookOffFlashScale>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="ChemicalCompoundOE">
		<defName>Ammo_ChemicalCompoundOE_Cryo</defName>
		<label>Chemical munition OE (Cryo)</label>
		<graphicData>
			<texPath>ThirdParty/Orassans/Ammo/Canister/Cryo</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ChemicalMunitionCompoundCryo</ammoClass>
		<detonateProjectile>Bullet_ChemicalCompoundOE_Cryo</detonateProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="ChemicalCompoundOE">
		<defName>Ammo_ChemicalCompoundOE_Napalm</defName>
		<label>Chemical munition OE (Napalm)</label>
		<graphicData>
			<texPath>ThirdParty/Orassans/Ammo/Canister/Napalm</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>IncendiaryFuel</ammoClass>
		<detonateProjectile>Bullet_ChemicalCompoundOE_Napalm</detonateProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="ChemicalCompoundOE">
		<defName>Ammo_ChemicalCompoundOE_Aprometheum</defName>
		<label>Chemical munition OE (A.Prometheum)</label>
		<graphicData>
			<texPath>ThirdParty/Orassans/Ammo/Canister/Aprometheum</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ChemicalMunitionCompoundAprometheum</ammoClass>
		<detonateProjectile>Bullet_ChemicalCompoundOE_Aprometheum</detonateProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="ChemicalCompoundOE">
		<defName>Ammo_ChemicalCompoundOE_Thermobaric</defName>
		<label>Chemical munition OE (Thermobaric)</label>
		<graphicData>
			<texPath>ThirdParty/Orassans/Ammo/Canister/Thermobaric</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ChemicalMunitionCompoundThermobaric</ammoClass>
		<detonateProjectile>Bullet_ChemicalCompoundOE_Thermobaric</detonateProjectile>
	</ThingDef>

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

	<ThingDef Name="BaseChemicalCompoundOEBullet" ParentName="BaseExplosiveBullet" Abstract="true">
		<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
		<graphicData>
			<texPath>Things/Projectile/Bullet_Big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>40</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseChemicalCompoundOEBullet">
		<defName>Bullet_ChemicalCompoundOE_Cryo</defName>
		<label>Chemical munition OE (Cryo)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>45</speed>
			<damageDef>OFrostbite</damageDef>
			<damageAmountBase>20</damageAmountBase>
			<armorPenetrationSharp>0</armorPenetrationSharp>
			<armorPenetrationBlunt>0</armorPenetrationBlunt>
			<explosionRadius>4.0</explosionRadius>
			<postExplosionSpawnThingDef>Filth_Snow</postExplosionSpawnThingDef>
			<postExplosionSpawnChance>1</postExplosionSpawnChance>
			<postExplosionSpawnThingCount>3</postExplosionSpawnThingCount>
			<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseChemicalCompoundOEBullet">
		<defName>Bullet_ChemicalCompoundOE_Napalm</defName>
		<label>Chemical munition OE (Napalm)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Flame</damageDef>
			<damageAmountBase>8</damageAmountBase>
			<armorPenetrationSharp>0</armorPenetrationSharp>
			<armorPenetrationBlunt>0</armorPenetrationBlunt>
			<preExplosionSpawnThingDef>Filth_Fuel</preExplosionSpawnThingDef>
			<preExplosionSpawnChance>0.33</preExplosionSpawnChance>
			<soundExplode>CE_FlamethrowerExplosion</soundExplode>
			<explosionRadius>4.5</explosionRadius>
			<ai_IsIncendiary>true</ai_IsIncendiary>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseChemicalCompoundOEBullet">
		<defName>Bullet_ChemicalCompoundOE_Aprometheum</defName>
		<label>Chemical munition OE (A.Prometheum)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>AprometheumFlame</damageDef>
			<damageAmountBase>12</damageAmountBase>
			<preExplosionSpawnThingDef>FilthPrometheum</preExplosionSpawnThingDef>
			<preExplosionSpawnChance>0.15</preExplosionSpawnChance>
			<soundExplode>CE_FlamethrowerExplosion</soundExplode>
			<explosionRadius>2.5</explosionRadius>
			<ai_IsIncendiary>true</ai_IsIncendiary>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseChemicalCompoundOEBullet">
		<defName>Bullet_ChemicalCompoundOE_Thermobaric</defName>
		<label>Chemical munition OE (Thermobaric)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Thermobaric</damageDef>
			<explosionRadius>4.5</explosionRadius>
			<damageAmountBase>46</damageAmountBase>
			<armorPenetrationSharp>0</armorPenetrationSharp>
			<armorPenetrationBlunt>0</armorPenetrationBlunt>
			<soundExplode>MortarBomb_Explode</soundExplode>
			<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
			<ai_IsIncendiary>true</ai_IsIncendiary>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_ChemicalCompoundOE_Cryo</defName>
		<label>make Chemical munition OE Cryo units x100</label>
		<description>Craft 100 Chemical munition OE Cryo units.</description>
		<jobString>Making Chemical munition OE Cryo units.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>45</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>5</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
				<li>Prometheum</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_ChemicalCompoundOE_Cryo>100</Ammo_ChemicalCompoundOE_Cryo>
		</products>
		<workAmount>13000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_ChemicalCompoundOE_Napalm</defName>
		<label>make Chemical munitio compound OE Napalm units x100</label>
		<description>Craft 100 Chemical munition OE Napalm units.</description>
		<jobString>Making Chemical munition OE Napalm units.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>45</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>5</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
				<li>Prometheum</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_ChemicalCompoundOE_Napalm>100</Ammo_ChemicalCompoundOE_Napalm>
		</products>
		<workAmount>13000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_ChemicalCompoundOE_Aprometheum</defName>
		<label>make Chemical munition OE A.Prometheum units x100</label>
		<description>Craft 100 Chemical compound OE A.Prometheum units.</description>
		<jobString>Making Chemical munitio compound OE A.Prometheum units.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>45</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>5</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
				<li>Prometheum</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_ChemicalCompoundOE_Aprometheum>100</Ammo_ChemicalCompoundOE_Aprometheum>
		</products>
		<workAmount>13000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_ChemicalCompoundOE_Thermobaric</defName>
		<label>make Chemical munition OE Thermobaric units x100</label>
		<description>Craft 100 Chemical compound OE Thermobaric units.</description>
		<jobString>Making Chemical munition OE Thermobaric units.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>45</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>5</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
				<li>Prometheum</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_ChemicalCompoundOE_Thermobaric>100</Ammo_ChemicalCompoundOE_Thermobaric>
		</products>
		<workAmount>13000</workAmount>
	</RecipeDef>
</Defs>