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

	<!-- Relabeled 5.56x45mm NATO -->

	<ThingCategoryDef>
		<defName>AmmoRifleIntermediate</defName>
		<label>intermediate rifle ammo</label>
		<parent>AmmoRifles</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberRifle</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_RifleIntermediate</defName>
		<label>intermediate rifle</label>
		<ammoTypes>
			<Ammo_RifleIntermediate_FMJ>Bullet_556x45mmNATO_FMJ</Ammo_RifleIntermediate_FMJ>
			<Ammo_RifleIntermediate_AP>Bullet_556x45mmNATO_AP</Ammo_RifleIntermediate_AP>
			<Ammo_RifleIntermediate_HP>Bullet_556x45mmNATO_HP</Ammo_RifleIntermediate_HP>
			<Ammo_RifleIntermediate_Incendiary>Bullet_556x45mmNATO_Incendiary</Ammo_RifleIntermediate_Incendiary>
			<Ammo_RifleIntermediate_HE>Bullet_556x45mmNATO_HE</Ammo_RifleIntermediate_HE>
			<Ammo_RifleIntermediate_Sabot>Bullet_556x45mmNATO_Sabot</Ammo_RifleIntermediate_Sabot>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="AmmoRifleIntermediateBase" ParentName="SmallAmmoBase" Abstract="True">
		<description>Intermediate power rifle ammunition, used mainly by assault rifles.</description>
		<statBases>
			<Mass>0.013</Mass>
			<Bulk>0.02</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
		</tradeTags>
		<thingCategories>
			<li>AmmoRifleIntermediate</li>
		</thingCategories>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoRifleIntermediateBase">
		<defName>Ammo_RifleIntermediate_FMJ</defName>
		<label>intermediate rifle cartridge (FMJ)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/FMJ</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>FullMetalJacket</ammoClass>
		<cookOffProjectile>Bullet_556x45mmNATO_FMJ</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoRifleIntermediateBase">
		<defName>Ammo_RifleIntermediate_AP</defName>
		<label>intermediate rifle cartridge (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/AP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<cookOffProjectile>Bullet_556x45mmNATO_AP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoRifleIntermediateBase">
		<defName>Ammo_RifleIntermediate_HP</defName>
		<label>intermediate rifle cartridge (HP)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/HP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>HollowPoint</ammoClass>
		<cookOffProjectile>Bullet_556x45mmNATO_HP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoRifleIntermediateBase">
		<defName>Ammo_RifleIntermediate_Incendiary</defName>
		<label>intermediate rifle cartridge (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_556x45mmNATO_Incendiary</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoRifleIntermediateBase">
		<defName>Ammo_RifleIntermediate_HE</defName>
		<label>intermediate rifle cartridge (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_556x45mmNATO_HE</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoRifleIntermediateBase">
		<defName>Ammo_RifleIntermediate_Sabot</defName>
		<label>intermediate rifle cartridge (Sabot)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Sabot</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.011</Mass>
		</statBases>
		<ammoClass>Sabot</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_556x45mmNATO_Sabot</cookOffProjectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_RifleIntermediate_FMJ</defName>
		<label>make intermediate rifle (FMJ) cartridge x500</label>
		<description>Craft 500 intermediate rifle (FMJ) cartridges.</description>
		<jobString>Making intermediate rifle (FMJ) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>14</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_RifleIntermediate_FMJ>500</Ammo_RifleIntermediate_FMJ>
		</products>
		<workAmount>1400</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_RifleIntermediate_AP</defName>
		<label>make intermediate rifle (AP) cartridge x500</label>
		<description>Craft 500 intermediate rifle (AP) cartridges.</description>
		<jobString>Making intermediate rifle (AP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>14</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_RifleIntermediate_AP>500</Ammo_RifleIntermediate_AP>
		</products>
		<workAmount>1680</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_RifleIntermediate_HP</defName>
		<label>make intermediate rifle (HP) cartridge x500</label>
		<description>Craft 500 intermediate rifle (HP) cartridges.</description>
		<jobString>Making intermediate rifle (HP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>14</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_RifleIntermediate_HP>500</Ammo_RifleIntermediate_HP>
		</products>
		<workAmount>1400</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_RifleIntermediate_Incendiary</defName>
		<label>make intermediate rifle (AP-I) cartridge x500</label>
		<description>Craft 500 intermediate rifle (AP-I) cartridges.</description>
		<jobString>Making intermediate rifle (AP-I) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>14</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_RifleIntermediate_Incendiary>500</Ammo_RifleIntermediate_Incendiary>
		</products>
		<workAmount>2200</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_RifleIntermediate_HE</defName>
		<label>make intermediate rifle (HE) cartridge x500</label>
		<description>Craft 500 intermediate rifle (HE) cartridges.</description>
		<jobString>Making intermediate rifle (HE) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>14</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_RifleIntermediate_HE>500</Ammo_RifleIntermediate_HE>
		</products>
		<workAmount>3000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_RifleIntermediate_Sabot</defName>
		<label>make intermediate rifle (Sabot) cartridge x500</label>
		<description>Craft 500 intermediate rifle (Sabot) cartridges.</description>
		<jobString>Making intermediate rifle (Sabot) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>8</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_RifleIntermediate_Sabot>500</Ammo_RifleIntermediate_Sabot>
		</products>
		<workAmount>2000</workAmount>
	</RecipeDef>

</Defs>