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

	<ThingCategoryDef>
		<defName>Ammo127x40mm</defName>
		<label>12.7x40mm</label>
		<parent>AmmoPistols</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberPistol</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_127x40mmUNSC</defName>
		<label>12.7x40mm</label>
		<ammoTypes>
			<Ammo_127x40mm_FMJ>Bullet_127x40mm_FMJ</Ammo_127x40mm_FMJ>
			<Ammo_127x40mm_AP>Bullet_127x40mm_AP</Ammo_127x40mm_AP>
			<Ammo_127x40mm_HP>Bullet_127x40mm_HP</Ammo_127x40mm_HP>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_127x40mmUNSCLight</defName>
		<label>12.7x40mm</label>
		<ammoTypes>
			<Ammo_127x40mm_FMJ>Bullet_127x40mm_FMJ_Light</Ammo_127x40mm_FMJ>
			<Ammo_127x40mm_AP>Bullet_127x40mm_AP_Light</Ammo_127x40mm_AP>
			<Ammo_127x40mm_HP>Bullet_127x40mm_HP_Light</Ammo_127x40mm_HP>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="127x40mmBase" ParentName="AmmoBase" Abstract="True">
		<description>This high-powered cartridge is one of the largest calibers found in handguns. Commonly used by UNSC magnum pistols.</description>
		<statBases>
			<Mass>0.029</Mass>
			<Bulk>0.02</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo127x40mm</li>
		</thingCategories>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="127x40mmBase">
		<defName>Ammo_127x40mm_FMJ</defName>
		<label>12.7x40mm cartridge (FMJ)</label>
		<graphicData>
			<texPath>Things/Ammo/Pistol/FMJ</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>FullMetalJacket</ammoClass>
		<cookOffProjectile>Bullet_127x40mm_FMJ</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="127x40mmBase">
		<defName>Ammo_127x40mm_AP</defName>
		<label>12.7x40mm cartridge (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/Pistol/AP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<cookOffProjectile>Bullet_127x40mm_AP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="127x40mmBase">
		<defName>Ammo_127x40mm_HP</defName>
		<label>12.7x40mm cartridge (HP)</label>
		<graphicData>
			<texPath>Things/Ammo/Pistol/HP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>HollowPoint</ammoClass>
		<cookOffProjectile>Bullet_127x40mm_HP</cookOffProjectile>
	</ThingDef>

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

	<ThingDef ParentName="Base50AEBullet">
		<defName>Bullet_127x40mm_FMJ</defName>
		<label>12.7x40mm bullet (FMJ)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>19</damageAmountBase>
			<armorPenetrationSharp>9</armorPenetrationSharp>
			<armorPenetrationBlunt>38.480</armorPenetrationBlunt>
			<speed>105</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base50AEBullet">
		<defName>Bullet_127x40mm_AP</defName>
		<label>12.7x40mm bullet (AP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>12</damageAmountBase>
			<armorPenetrationSharp>18</armorPenetrationSharp>
			<armorPenetrationBlunt>38.480</armorPenetrationBlunt>
			<speed>105</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base50AEBullet">
		<defName>Bullet_127x40mm_HP</defName>
		<label>12.7x40mm bullet (HP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>24</damageAmountBase>
			<armorPenetrationSharp>4.5</armorPenetrationSharp>
			<armorPenetrationBlunt>38.480</armorPenetrationBlunt>
			<speed>105</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base50AEBullet">
		<defName>Bullet_127x40mm_FMJ_Light</defName>
		<label>12.7x40mm bullet (FMJ)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>17</damageAmountBase>
			<armorPenetrationSharp>8</armorPenetrationSharp>
			<armorPenetrationBlunt>32.480</armorPenetrationBlunt>
			<speed>105</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base50AEBullet">
		<defName>Bullet_127x40mm_AP_Light</defName>
		<label>12.7x40mm bullet (AP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>11</damageAmountBase>
			<armorPenetrationSharp>16</armorPenetrationSharp>
			<armorPenetrationBlunt>32.480</armorPenetrationBlunt>
			<speed>105</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base50AEBullet">
		<defName>Bullet_127x40mm_HP_Light</defName>
		<label>12.7x40mm bullet (HP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>22</damageAmountBase>
			<armorPenetrationSharp>4</armorPenetrationSharp>
			<armorPenetrationBlunt>32.480</armorPenetrationBlunt>
			<speed>105</speed>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="UNAmmoRecipeBase">
		<defName>MakeAmmo_127x40mm_FMJ</defName>
		<label>make 12.7x40mm (FMJ) cartridge x500</label>
		<description>Craft 500 12.7x40mm (FMJ) cartridges.</description>
		<jobString>Making 12.7x40mm (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_127x40mm_FMJ>500</Ammo_127x40mm_FMJ>
		</products>
		<workAmount>3000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="UNAmmoRecipeBase">
		<defName>MakeAmmo_127x40mm_HP</defName>
		<label>make 12.7x40mm (HP) cartridge x500</label>
		<description>Craft 500 12.7x40mm (HP) cartridges.</description>
		<jobString>Making 12.7x40mm (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_127x40mm_HP>500</Ammo_127x40mm_HP>
		</products>
		<workAmount>3000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="UNAmmoRecipeBase">
		<defName>MakeAmmo_127x40mm_AP</defName>
		<label>make 12.7x40mm (AP) cartridge x500</label>
		<description>Craft 500 12.7x40mm (AP) cartridges.</description>
		<jobString>Making 12.7x40mm (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_127x40mm_AP>500</Ammo_127x40mm_AP>
		</products>
		<workAmount>3000</workAmount>
	</RecipeDef>

</Defs>