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

	<ThingCategoryDef>
		<defName>Ammo145x114mmUNSC</defName>
		<label>14.5x114mmUNSC</label>
		<parent>AmmoHighCaliber</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberHighCaliber</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_145x114mmUNSC</defName>
		<label>14.5x114mmUNSC</label>
		<ammoTypes>
			<Ammo_145x114mmUNSC_FMJ>Bullet_145x114mmUNSC_FMJ</Ammo_145x114mmUNSC_FMJ>
			<Ammo_145x114mmUNSC_Incendiary>Bullet_145x114mmUNSC_Incendiary</Ammo_145x114mmUNSC_Incendiary>
			<Ammo_145x114mmUNSC_HE>Bullet_145x114mmUNSC_HE</Ammo_145x114mmUNSC_HE>
			<Ammo_145x114mmUNSC_Sabot>Bullet_145x114mmUNSC_Sabot</Ammo_145x114mmUNSC_Sabot>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="Ammo145x114mmUNSCBase" ParentName="MediumAmmoBase" Abstract="True">
		<description>Old-school anti-tank cartridge originally designed for AT rifles, it is now used by UNSC heavy sniper rifles.</description>
		<statBases>
			<Mass>0.186</Mass>
			<Bulk>0.27</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo145x114mmUNSC</li>
		</thingCategories>
		<stackLimit>2000</stackLimit>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo145x114mmUNSCBase">
		<defName>Ammo_145x114mmUNSC_FMJ</defName>
		<label>14.5x114mmUNSC cartridge (FMJ)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/FMJ</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>FullMetalJacket</ammoClass>
		<generateAllowChance>0.3</generateAllowChance>
		<cookOffProjectile>Bullet_145x114mmUNSC_FMJ</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo145x114mmUNSCBase">
		<defName>Ammo_145x114mmUNSC_Incendiary</defName>
		<label>14.5x114mmUNSC cartridge (AP-I)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/Incendiary</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>IncendiaryAP</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_145x114mmUNSC_Incendiary</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo145x114mmUNSCBase">
		<defName>Ammo_145x114mmUNSC_HE</defName>
		<label>14.5x114mmUNSC cartridge (HE)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/HE</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ExplosiveAP</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_145x114mmUNSC_HE</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo145x114mmUNSCBase">
		<defName>Ammo_145x114mmUNSC_Sabot</defName>
		<label>14.5x114mmUNSC cartridge (Sabot)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/Sabot</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.159</Mass>
		</statBases>
		<ammoClass>Sabot</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_145x114mmUNSC_Sabot</cookOffProjectile>
	</ThingDef>

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

	<ThingDef ParentName="Base145x114mmBullet">
		<defName>Bullet_145x114mmUNSC_FMJ</defName>
		<label>14.5x114mmUNSC bullet (FMJ)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>52</damageAmountBase>
			<armorPenetrationSharp>24</armorPenetrationSharp>
			<armorPenetrationBlunt>678</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base145x114mmBullet">
		<defName>Bullet_145x114mmUNSC_Incendiary</defName>
		<label>14.5x114mmUNSC bullet (AP-I)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>33</damageAmountBase>
			<armorPenetrationSharp>48</armorPenetrationSharp>
			<armorPenetrationBlunt>678</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>19</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base145x114mmBullet">
		<defName>Bullet_145x114mmUNSC_HE</defName>
		<label>14.5x114mmUNSC bullet (HE)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>52</damageAmountBase>
			<armorPenetrationSharp>24</armorPenetrationSharp>
			<armorPenetrationBlunt>678</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>30</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base145x114mmBullet">
		<defName>Bullet_145x114mmUNSC_Sabot</defName>
		<label>14.5x114mmUNSC bullet (Sabot)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>242</speed>
			<damageAmountBase>27</damageAmountBase>
			<armorPenetrationSharp>74</armorPenetrationSharp>
			<armorPenetrationBlunt>860.360</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="UNAmmoRecipeBase">
		<defName>MakeAmmo_145x114mmUNSC_FMJ</defName>
		<label>make 14.5x114mmUNSC (FMJ) cartridge x200</label>
		<description>Craft 200 14.5x114mmUNSC (FMJ) cartridges.</description>
		<jobString>Making 14.5x114mmUNSC (FMJ) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>76</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_145x114mmUNSC_FMJ>200</Ammo_145x114mmUNSC_FMJ>
		</products>
		<workAmount>10000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_145x114mmUNSC_Incendiary</defName>
		<label>make 14.5x114mmUNSC (AP-I) cartridge x200</label>
		<description>Craft 200 14.5x114mmUNSC (AP-I) cartridges.</description>
		<jobString>Making 14.5x114mmUNSC (AP-I) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>76</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>7</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Prometheum</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_145x114mmUNSC_Incendiary>200</Ammo_145x114mmUNSC_Incendiary>
		</products>
		<workAmount>13600</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_145x114mmUNSC_HE</defName>
		<label>make 14.5x114mmUNSC (HE) cartridge x200</label>
		<description>Craft 200 14.5x114mmUNSC (HE) cartridges.</description>
		<jobString>Making 14.5x114mmUNSC (HE) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>76</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>13</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_145x114mmUNSC_HE>200</Ammo_145x114mmUNSC_HE>
		</products>
		<workAmount>16000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_145x114mmUNSC_Sabot</defName>
		<label>make 14.5x114mmUNSC (Sabot) cartridge x200</label>
		<description>Craft 200 14.5x114mmUNSC (Sabot) cartridges.</description>
		<jobString>Making 14.5x114mmUNSC (Sabot) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>50</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>8</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Chemfuel</li>
					</thingDefs>
				</filter>
				<count>8</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Chemfuel</li>
				<li>Steel</li>
				<li>Uranium</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_145x114mmUNSC_Sabot>200</Ammo_145x114mmUNSC_Sabot>
		</products>
		<workAmount>13000</workAmount>
	</RecipeDef>

</Defs>