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

	<ThingCategoryDef>
		<defName>Ammo470NitroExpress</defName>
		<label>.470 Nitro Express</label>
		<parent>AmmoHighCaliber</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberHighCaliber</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_470NitroExpress</defName>
		<label>.470 Nitro Express</label>
		<ammoTypes>
			<Ammo_470NitroExpress_FMJ>Bullet_470NitroExpress_FMJ</Ammo_470NitroExpress_FMJ>
			<Ammo_470NitroExpress_AP>Bullet_470NitroExpress_AP</Ammo_470NitroExpress_AP>
			<Ammo_470NitroExpress_Incendiary>Bullet_470NitroExpress_Incendiary</Ammo_470NitroExpress_Incendiary>
			<Ammo_470NitroExpress_HE>Bullet_470NitroExpress_HE</Ammo_470NitroExpress_HE>
			<Ammo_470NitroExpress_Sabot>Bullet_470NitroExpress_Sabot</Ammo_470NitroExpress_Sabot>
		</ammoTypes>
		<similarTo>AmmoSet_RifleMagnum</similarTo>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="Ammo470NitroExpressBase" ParentName="AmmoBase" Abstract="True">
		<description>Large and powerful cartridge designed to be fired at large game, like elephants or rhinoceroses.</description>
		<statBases>
			<Mass>0.06</Mass>
			<Bulk>0.06</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo470NitroExpress</li>
		</thingCategories>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo470NitroExpressBase">
		<defName>Ammo_470NitroExpress_FMJ</defName>
		<label>.470 Nitro Express (FMJ)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/FMJ</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>FullMetalJacket</ammoClass>
		<cookOffProjectile>Bullet_470NitroExpress_FMJ</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo470NitroExpressBase">
		<defName>Ammo_470NitroExpress_AP</defName>
		<label>.470 Nitro Express (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/AP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<cookOffProjectile>Bullet_470NitroExpress_AP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo470NitroExpressBase">
		<defName>Ammo_470NitroExpress_Incendiary</defName>
		<label>.470 Nitro Express (AP-I)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Incendiary</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>IncendiaryAP</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_470NitroExpress_Incendiary</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo470NitroExpressBase">
		<defName>Ammo_470NitroExpress_HE</defName>
		<label>.470 Nitro Express (AP-HE)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/HE</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ExplosiveAP</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_470NitroExpress_HE</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="Ammo470NitroExpressBase">
		<defName>Ammo_470NitroExpress_Sabot</defName>
		<label>.470 Nitro Express (Sabot)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Sabot</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.046</Mass>
		</statBases>
		<ammoClass>Sabot</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_470NitroExpress_Sabot</cookOffProjectile>
	</ThingDef>

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

	<ThingDef Name="Base470NitroExpressBullet" ParentName="BaseBulletCE" Abstract="true">
		<graphicData>
			<texPath>Things/Projectile/Bullet_Big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<speed>131</speed>
			<dropsCasings>true</dropsCasings>
			<casingMoteDefname>Fleck_RifleAmmoCasings_HighCal</casingMoteDefname>
			<casingFilthDefname>Filth_RifleAmmoCasings_HighCal</casingFilthDefname>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base470NitroExpressBullet">
		<defName>Bullet_470NitroExpress_FMJ</defName>
		<label>.470 Nitro Express bullet (FMJ)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>29</damageAmountBase>
			<armorPenetrationSharp>11</armorPenetrationSharp>
			<armorPenetrationBlunt>139.4</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base470NitroExpressBullet">
		<defName>Bullet_470NitroExpress_AP</defName>
		<label>.470 Nitro Express bullet (AP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>18</damageAmountBase>
			<armorPenetrationSharp>22</armorPenetrationSharp>
			<armorPenetrationBlunt>139.4</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base470NitroExpressBullet">
		<defName>Bullet_470NitroExpress_Incendiary</defName>
		<label>.470 Nitro Express bullet (AP-I)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>18</damageAmountBase>
			<armorPenetrationSharp>22</armorPenetrationSharp>
			<armorPenetrationBlunt>139.4</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>12</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base470NitroExpressBullet">
		<defName>Bullet_470NitroExpress_HE</defName>
		<label>.470 Nitro Express bullet (AP-HE)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>29</damageAmountBase>
			<armorPenetrationSharp>11</armorPenetrationSharp>
			<armorPenetrationBlunt>139.4</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>16</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base470NitroExpressBullet">
		<defName>Bullet_470NitroExpress_Sabot</defName>
		<label>.470 Nitro Express bullet (Sabot)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>16</damageAmountBase>
			<armorPenetrationSharp>38.5</armorPenetrationSharp>
			<armorPenetrationBlunt>178.78</armorPenetrationBlunt>
			<speed>177</speed>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_470NitroExpress_FMJ</defName>
		<label>make .470 Nitro Express (FMJ) cartridge x200</label>
		<description>Craft 200 .470 Nitro Express (FMJ) cartridges.</description>
		<jobString>Making .470 Nitro Express (FMJ) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>26</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_470NitroExpress_FMJ>200</Ammo_470NitroExpress_FMJ>
		</products>
		<workAmount>2600</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_470NitroExpress_AP</defName>
		<label>make .470 Nitro Express (AP) cartridge x200</label>
		<description>Craft 200 .470 Nitro Express (AP) cartridges.</description>
		<jobString>Making .470 Nitro Express (AP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>26</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_470NitroExpress_AP>200</Ammo_470NitroExpress_AP>
		</products>
		<workAmount>3120</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_470NitroExpress_Incendiary</defName>
		<label>make .470 Nitro Express (AP-I) cartridge x200</label>
		<description>Craft 200 .470 Nitro Express (AP-I) cartridges.</description>
		<jobString>Making .470 Nitro Express (AP-I) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>26</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Prometheum</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_470NitroExpress_Incendiary>200</Ammo_470NitroExpress_Incendiary>
		</products>
		<workAmount>4200</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_470NitroExpress_HE</defName>
		<label>make .470 Nitro Express (AP-HE) cartridge x200</label>
		<description>Craft 200 .470 Nitro Express (AP-HE) cartridges.</description>
		<jobString>Making .470 Nitro Express (AP-HE) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>26</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>7</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_470NitroExpress_HE>200</Ammo_470NitroExpress_HE>
		</products>
		<workAmount>5400</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_470NitroExpress_Sabot</defName>
		<label>make .470 Nitro Express (Sabot) cartridge x200</label>
		<description>Craft 200 .470 Nitro Express (Sabot) cartridges.</description>
		<jobString>Making .470 Nitro Express (Sabot) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Chemfuel</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>Chemfuel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_470NitroExpress_Sabot>200</Ammo_470NitroExpress_Sabot>
		</products>
		<workAmount>3600</workAmount>
	</RecipeDef>

</Defs>