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

	<!-- Relabeled .338 Lapua Magnum -->

	<ThingCategoryDef>
		<defName>AmmoRifleMagnum</defName>
		<label>magnum rifle ammo</label>
		<parent>AmmoRifles</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberHighCaliber</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_RifleMagnum</defName>
		<label>magnum rifle</label>
		<ammoTypes>
			<Ammo_RifleMagnum_FMJ>Bullet_338Lapua_FMJ</Ammo_RifleMagnum_FMJ>
			<Ammo_RifleMagnum_AP>Bullet_338Lapua_AP</Ammo_RifleMagnum_AP>
			<Ammo_RifleMagnum_Incendiary>Bullet_338Lapua_Incendiary</Ammo_RifleMagnum_Incendiary>
			<Ammo_RifleMagnum_HE>Bullet_338Lapua_HE</Ammo_RifleMagnum_HE>
			<Ammo_RifleMagnum_Sabot>Bullet_338Lapua_Sabot</Ammo_RifleMagnum_Sabot>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="AmmoRifleMagnumBase" ParentName="AmmoBase" Abstract="True">
		<description>High power rifle ammunition, used mainly by long range sniper rifles.</description>
		<statBases>
			<Mass>0.043</Mass>
			<Bulk>0.05</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
		</tradeTags>
		<thingCategories>
			<li>AmmoRifleMagnum</li>
		</thingCategories>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoRifleMagnumBase">
		<defName>Ammo_RifleMagnum_FMJ</defName>
		<label>magnum rifle cartridge (FMJ)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/FMJ</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>FullMetalJacket</ammoClass>
		<cookOffProjectile>Bullet_338Lapua_FMJ</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoRifleMagnumBase">
		<defName>Ammo_RifleMagnum_AP</defName>
		<label>magnum rifle cartridge (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/AP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<cookOffProjectile>Bullet_338Lapua_AP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoRifleMagnumBase">
		<defName>Ammo_RifleMagnum_Incendiary</defName>
		<label>magnum rifle 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_338Lapua_Incendiary</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoRifleMagnumBase">
		<defName>Ammo_RifleMagnum_HE</defName>
		<label>magnum rifle cartridge (AP-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_338Lapua_HE</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoRifleMagnumBase">
		<defName>Ammo_RifleMagnum_Sabot</defName>
		<label>magnum rifle cartridge (Sabot)</label>
		<graphicData>
			<texPath>Things/Ammo/HighCaliber/Sabot</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.037</Mass>
		</statBases>
		<ammoClass>Sabot</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_338Lapua_Sabot</cookOffProjectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_RifleMagnum_FMJ</defName>
		<label>make magnum rifle (FMJ) cartridge x200</label>
		<description>Craft 200 magnum rifle (FMJ) cartridges.</description>
		<jobString>Making magnum rifle (FMJ) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>20</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_RifleMagnum_FMJ>200</Ammo_RifleMagnum_FMJ>
		</products>
		<workAmount>2000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_RifleMagnum_AP</defName>
		<label>make magnum rifle (AP) cartridge x200</label>
		<description>Craft 200 magnum rifle (AP) cartridges.</description>
		<jobString>Making magnum rifle (AP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>20</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_RifleMagnum_AP>200</Ammo_RifleMagnum_AP>
		</products>
		<workAmount>2400</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_RifleMagnum_Incendiary</defName>
		<label>make magnum rifle (AP-I) cartridge x200</label>
		<description>Craft 200 magnum rifle (AP-I) cartridges.</description>
		<jobString>Making magnum rifle (AP-I) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>20</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Prometheum</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_RifleMagnum_Incendiary>200</Ammo_RifleMagnum_Incendiary>
		</products>
		<workAmount>2800</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_RifleMagnum_HE</defName>
		<label>make magnum rifle (HE) cartridge x200</label>
		<description>Craft 200 magnum rifle (HE) cartridges.</description>
		<jobString>Making magnum rifle (HE) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>20</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_RifleMagnum_HE>200</Ammo_RifleMagnum_HE>
		</products>
		<workAmount>3600</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_RifleMagnum_Sabot</defName>
		<label>make magnum rifle (Sabot) cartridge x200</label>
		<description>Craft 200 magnum rifle (Sabot) cartridges.</description>
		<jobString>Making magnum rifle (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>2</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Chemfuel</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>Chemfuel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_RifleMagnum_Sabot>200</Ammo_RifleMagnum_Sabot>
		</products>
		<workAmount>2400</workAmount>
	</RecipeDef>

</Defs>