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

	<ThingCategoryDef>
		<defName>Ammo45ACP</defName>
		<label>.45 ACP</label>
		<parent>AmmoPistols</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberPistol</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_45ACP</defName>
		<label>.45 ACP</label>
		<ammoTypes>
			<Ammo_45ACP_FMJ>Bullet_45ACP_FMJ</Ammo_45ACP_FMJ>
			<Ammo_45ACP_AP>Bullet_45ACP_AP</Ammo_45ACP_AP>
			<Ammo_45ACP_HP>Bullet_45ACP_HP</Ammo_45ACP_HP>
		</ammoTypes>
		<similarTo>AmmoSet_Pistol</similarTo>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_45ACP410Bore_SB</defName>
		<label>.45 ACP/.410 bore</label>
		<ammoTypes>
			<Ammo_45ACP_FMJ>Bullet_45ACP_FMJ</Ammo_45ACP_FMJ>
			<Ammo_45ACP_AP>Bullet_45ACP_AP</Ammo_45ACP_AP>
			<Ammo_45ACP_HP>Bullet_45ACP_HP</Ammo_45ACP_HP>
			<Ammo_410Bore_Buck>Bullet_410Bore_Buck_SB</Ammo_410Bore_Buck>
			<Ammo_410Bore_Slug>Bullet_410Bore_Slug_SB</Ammo_410Bore_Slug>
			<Ammo_410Bore_Beanbag>Bullet_410Bore_Beanbag_SB</Ammo_410Bore_Beanbag>
			<Ammo_410Bore_ElectroSlug>Bullet_410Bore_ElectroSlug_SB</Ammo_410Bore_ElectroSlug>
		</ammoTypes>
		<similarTo>AmmoSet_RevolverShotgun</similarTo>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="45ACPBase" ParentName="SmallAmmoBase" Abstract="True">
		<description>Pistol cartridge favoured for its above average stopping power.</description>
		<statBases>
			<Mass>0.02</Mass>
			<Bulk>0.02</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
			<li>CE_40K_Ammo</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo45ACP</li>
		</thingCategories>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="45ACPBase">
		<defName>Ammo_45ACP_FMJ</defName>
		<label>.45 ACP (FMJ)</label>
		<graphicData>
			<texPath>Things/Ammo/Pistol/FMJ</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>FullMetalJacket</ammoClass>
		<cookOffProjectile>Bullet_45ACP_FMJ</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="45ACPBase">
		<defName>Ammo_45ACP_AP</defName>
		<label>.45 ACP (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/Pistol/AP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<cookOffProjectile>Bullet_45ACP_AP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="45ACPBase">
		<defName>Ammo_45ACP_HP</defName>
		<label>.45 ACP (HP)</label>
		<graphicData>
			<texPath>Things/Ammo/Pistol/HP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>HollowPoint</ammoClass>
		<cookOffProjectile>Bullet_45ACP_HP</cookOffProjectile>
	</ThingDef>

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

	<ThingDef Name="Base45ACPBullet" ParentName="BaseBulletCE" Abstract="true">
		<graphicData>
			<texPath>Things/Projectile/Bullet_Small</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<speed>67</speed>
			<dropsCasings>true</dropsCasings>
			<casingMoteDefname>Fleck_PistolAmmoCasings</casingMoteDefname>
			<casingFilthDefname>Filth_PistolAmmoCasings</casingFilthDefname>
			<genericLabelOverride>pistol</genericLabelOverride>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base45ACPBullet">
		<defName>Bullet_45ACP_FMJ</defName>
		<label>.45 ACP bullet (FMJ)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>12</damageAmountBase>
			<armorPenetrationSharp>3.5</armorPenetrationSharp>
			<armorPenetrationBlunt>10.860</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base45ACPBullet">
		<defName>Bullet_45ACP_AP</defName>
		<label>.45 ACP bullet (AP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>7</damageAmountBase>
			<armorPenetrationSharp>7</armorPenetrationSharp>
			<armorPenetrationBlunt>10.860</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base45ACPBullet">
		<defName>Bullet_45ACP_HP</defName>
		<label>.45 ACP bullet (HP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>15</damageAmountBase>
			<armorPenetrationSharp>2</armorPenetrationSharp>
			<armorPenetrationBlunt>10.860</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_45ACP_FMJ</defName>
		<label>make .45 ACP (FMJ) cartridge x500</label>
		<description>Craft 500 .45 ACP (FMJ) cartridges.</description>
		<jobString>Making .45 ACP (FMJ) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>22</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_45ACP_FMJ>500</Ammo_45ACP_FMJ>
		</products>
		<workAmount>2200</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_45ACP_AP</defName>
		<label>make .45 ACP (AP) cartridge x500</label>
		<description>Craft 500 .45 ACP (AP) cartridges.</description>
		<jobString>Making .45 ACP (AP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>22</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_45ACP_AP>500</Ammo_45ACP_AP>
		</products>
		<workAmount>2640</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_45ACP_HP</defName>
		<label>make .45 ACP (HP) cartridge x500</label>
		<description>Craft 500 .45 ACP (HP) cartridges.</description>
		<jobString>Making .45 ACP (HP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>22</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_45ACP_HP>500</Ammo_45ACP_HP>
		</products>
		<workAmount>2200</workAmount>
	</RecipeDef>

</Defs>
