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

	<ThingCategoryDef>
		<defName>Ammo792x57mmMauser</defName>
		<label>7.92x57mm Mauser</label>
		<parent>AmmoRifles</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberRifle</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_792x57mmMauser</defName>
		<label>7.92x57mm Mauser</label>
		<ammoTypes>
			<Ammo_792x57mmMauser_FMJ>Bullet_792x57mmMauser_FMJ</Ammo_792x57mmMauser_FMJ>
			<Ammo_792x57mmMauser_AP>Bullet_792x57mmMauser_AP</Ammo_792x57mmMauser_AP>
			<Ammo_792x57mmMauser_HP>Bullet_792x57mmMauser_HP</Ammo_792x57mmMauser_HP>
			<Ammo_792x57mmMauser_Incendiary>Bullet_792x57mmMauser_Incendiary</Ammo_792x57mmMauser_Incendiary>
			<Ammo_792x57mmMauser_HE>Bullet_792x57mmMauser_HE</Ammo_792x57mmMauser_HE>
			<Ammo_792x57mmMauser_Sabot>Bullet_792x57mmMauser_Sabot</Ammo_792x57mmMauser_Sabot>
		</ammoTypes>
		<similarTo>AmmoSet_Rifle</similarTo>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="792x57mmMauserBase" ParentName="SmallAmmoBase" Abstract="True">
		<description>Large rifle bullet used in machine guns, sniper rifles and the occasional assault rifle.</description>
		<statBases>
			<Mass>0.028</Mass>
			<Bulk>0.03</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo792x57mmMauser</li>
		</thingCategories>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="792x57mmMauserBase">
		<defName>Ammo_792x57mmMauser_FMJ</defName>
		<label>7.92x57mm Mauser (FMJ)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Clip/FMJ</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>FullMetalJacket</ammoClass>
		<cookOffProjectile>Bullet_792x57mmMauser_FMJ</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="792x57mmMauserBase">
		<defName>Ammo_792x57mmMauser_AP</defName>
		<label>7.92x57mm Mauser (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Clip/AP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<cookOffProjectile>Bullet_792x57mmMauser_AP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="792x57mmMauserBase">
		<defName>Ammo_792x57mmMauser_HP</defName>
		<label>7.92x57mm Mauser (HP)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Clip/HP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>HollowPoint</ammoClass>
		<cookOffProjectile>Bullet_792x57mmMauser_HP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="792x57mmMauserBase">
		<defName>Ammo_792x57mmMauser_Incendiary</defName>
		<label>7.92x57mm Mauser (AP-I)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Clip/Incendiary</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>IncendiaryAP</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_792x57mmMauser_Incendiary</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="792x57mmMauserBase">
		<defName>Ammo_792x57mmMauser_HE</defName>
		<label>7.92x57mm Mauser (AP-HE)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Clip/HE</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ExplosiveAP</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_792x57mmMauser_HE</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="792x57mmMauserBase">
		<defName>Ammo_792x57mmMauser_Sabot</defName>
		<label>7.92x57mm Mauser (Sabot)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Clip/Sabot</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.023</Mass>
		</statBases>
		<ammoClass>Sabot</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_792x57mmMauser_Sabot</cookOffProjectile>
	</ThingDef>

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

	<ThingDef Name="Base792x57mmMauserBullet" ParentName="BaseBulletCE" Abstract="true">
		<graphicData>
			<texPath>Things/Projectile/Bullet_Small</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<speed>154</speed>
			<dropsCasings>true</dropsCasings>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base792x57mmMauserBullet">
		<defName>Bullet_792x57mmMauser_FMJ</defName>
		<label>7.92mm Mauser bullet (FMJ)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>21</damageAmountBase>
			<armorPenetrationSharp>7.5</armorPenetrationSharp>
			<armorPenetrationBlunt>78.68</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base792x57mmMauserBullet">
		<defName>Bullet_792x57mmMauser_AP</defName>
		<label>7.92mm Mauser bullet (AP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>13</damageAmountBase>
			<armorPenetrationSharp>15</armorPenetrationSharp>
			<armorPenetrationBlunt>78.68</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base792x57mmMauserBullet">
		<defName>Bullet_792x57mmMauser_HP</defName>
		<label>7.92mm Mauser bullet (HP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>27</damageAmountBase>
			<armorPenetrationSharp>4</armorPenetrationSharp>
			<armorPenetrationBlunt>78.68</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base792x57mmMauserBullet">
		<defName>Bullet_792x57mmMauser_Incendiary</defName>
		<label>7.92x57mm Mauser bullet (AP-I)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>13</damageAmountBase>
			<armorPenetrationSharp>15</armorPenetrationSharp>
			<armorPenetrationBlunt>78.68</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>6</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base792x57mmMauserBullet">
		<defName>Bullet_792x57mmMauser_HE</defName>
		<label>7.92x57mm Mauser bullet (AP-HE)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>21</damageAmountBase>
			<armorPenetrationSharp>7.5</armorPenetrationSharp>
			<armorPenetrationBlunt>78.68</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>9</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base792x57mmMauserBullet">
		<defName>Bullet_792x57mmMauser_Sabot</defName>
		<label>7.92x57mm Mauser bullet (Sabot)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>13</damageAmountBase>
			<armorPenetrationSharp>26</armorPenetrationSharp>
			<armorPenetrationBlunt>100.92</armorPenetrationBlunt>
			<speed>208</speed>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_792x57mmMauser_FMJ</defName>
		<label>make 7.92x57mm Mauser (FMJ) cartridge x500</label>
		<description>Craft 500 7.92x57mm Mauser (FMJ) cartridges.</description>
		<jobString>Making 7.92x57mm Mauser (FMJ) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>30</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_792x57mmMauser_FMJ>500</Ammo_792x57mmMauser_FMJ>
		</products>
		<workAmount>3000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_792x57mmMauser_AP</defName>
		<label>make 7.92x57mm Mauser (AP) cartridge x500</label>
		<description>Craft 500 7.92x57mm Mauser (AP) cartridges.</description>
		<jobString>Making 7.92x57mm Mauser (AP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>30</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_792x57mmMauser_AP>500</Ammo_792x57mmMauser_AP>
		</products>
		<workAmount>3600</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_792x57mmMauser_HP</defName>
		<label>make 7.92x57mm Mauser (HP) cartridge x500</label>
		<description>Craft 500 7.92x57mm Mauser (HP) cartridges.</description>
		<jobString>Making 7.92x57mm Mauser (HP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>30</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_792x57mmMauser_HP>500</Ammo_792x57mmMauser_HP>
		</products>
		<workAmount>3000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_792x57mmMauser_Incendiary</defName>
		<label>make 7.92x57mm Mauser (AP-I) cartridge x500</label>
		<description>Craft 500 7.92x57mm Mauser (AP-I) cartridges.</description>
		<jobString>Making 7.92x57mm Mauser (AP-I) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>30</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>3</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Prometheum</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_792x57mmMauser_Incendiary>500</Ammo_792x57mmMauser_Incendiary>
		</products>
		<workAmount>4200</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_792x57mmMauser_HE</defName>
		<label>make 7.92x57mm Mauser (AP-HE) cartridge x500</label>
		<description>Craft 500 7.92x57mm Mauser (AP-HE) cartridges.</description>
		<jobString>Making 7.92x57mm Mauser (AP-HE) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>30</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_792x57mmMauser_HE>500</Ammo_792x57mmMauser_HE>
		</products>
		<workAmount>5800</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_792x57mmMauser_Sabot</defName>
		<label>make 7.92x57mm Mauser (Sabot) cartridge x500</label>
		<description>Craft 500 7.92x57mm Mauser (Sabot) cartridges.</description>
		<jobString>Making 7.92x57mm Mauser (Sabot) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>18</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_792x57mmMauser_Sabot>500</Ammo_792x57mmMauser_Sabot>
		</products>
		<workAmount>4200</workAmount>
	</RecipeDef>

</Defs>