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

	<ThingCategoryDef>
		<defName>Ammo9x21mmGyurza</defName>
		<label>9x21mm Gyurza</label>
		<parent>AmmoPistols</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberPistol</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_9x21mmGyurza</defName>
		<label>9x21mm Gyurza</label>
		<ammoTypes>
			<Ammo_9x21mmGyurza_FMJ>Bullet_9x21mmGyurza_FMJ</Ammo_9x21mmGyurza_FMJ>
			<Ammo_9x21mmGyurza_AP>Bullet_9x21mmGyurza_AP</Ammo_9x21mmGyurza_AP>
			<Ammo_9x21mmGyurza_HP>Bullet_9x21mmGyurza_HP</Ammo_9x21mmGyurza_HP>
		</ammoTypes>
		<similarTo>AmmoSet_Pistol</similarTo>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="9x21mmGyurzaBase" ParentName="SmallAmmoBase" Abstract="True">
		<description>This high-velocity handgun cartridge was specifically designed for military personnel to defeat body armor.</description>
		<statBases>
			<Mass>0.023</Mass>
			<Bulk>0.01</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo9x21mmGyurza</li>
		</thingCategories>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="9x21mmGyurzaBase">
		<defName>Ammo_9x21mmGyurza_FMJ</defName>
		<label>9x21mm Gyurza (FMJ)</label>
		<graphicData>
			<texPath>Things/Ammo/Pistol/FMJ</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>FullMetalJacket</ammoClass>
		<cookOffProjectile>Bullet_9x21mmGyurza_FMJ</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="9x21mmGyurzaBase">
		<defName>Ammo_9x21mmGyurza_AP</defName>
		<label>9x21mm Gyurza (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/Pistol/AP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<cookOffProjectile>Bullet_9x21mmGyurza_AP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="9x21mmGyurzaBase">
		<defName>Ammo_9x21mmGyurza_HP</defName>
		<label>9x21mm Gyurza (HP)</label>
		<graphicData>
			<texPath>Things/Ammo/Pistol/HP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>HollowPoint</ammoClass>
		<cookOffProjectile>Bullet_9x21mmGyurza_HP</cookOffProjectile>
	</ThingDef>

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

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

	<ThingDef ParentName="Base9x21mmGyurzaBullet">
		<defName>Bullet_9x21mmGyurza_FMJ</defName>
		<label>9mm Gyurza bullet (FMJ)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>11</damageAmountBase>
			<armorPenetrationSharp>3</armorPenetrationSharp>
			<armorPenetrationBlunt>11.26</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base9x21mmGyurzaBullet">
		<defName>Bullet_9x21mmGyurza_AP</defName>
		<label>9mm Gyurza bullet (AP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>7</damageAmountBase>
			<armorPenetrationSharp>6</armorPenetrationSharp>
			<armorPenetrationBlunt>11.26</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base9x21mmGyurzaBullet">
		<defName>Bullet_9x21mmGyurza_HP</defName>
		<label>9mm Gyurza bullet (HP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>14</damageAmountBase>
			<armorPenetrationSharp>2</armorPenetrationSharp>
			<armorPenetrationBlunt>11.26</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_9x21mmGyurza_FMJ</defName>
		<label>make 9x21mm Gyurza (FMJ) cartridge x500</label>
		<description>Craft 500 9x21mm Gyurza (FMJ) cartridges.</description>
		<jobString>Making 9x21mm Gyurza (FMJ) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>24</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_9x21mmGyurza_FMJ>500</Ammo_9x21mmGyurza_FMJ>
		</products>
		<workAmount>2400</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_9x21mmGyurza_AP</defName>
		<label>make 9x21mm Gyurza (AP) cartridge x500</label>
		<description>Craft 500 9x21mm Gyurza (AP) cartridges.</description>
		<jobString>Making 9x21mm Gyurza (AP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>24</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_9x21mmGyurza_AP>500</Ammo_9x21mmGyurza_AP>
		</products>
		<workAmount>2880</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_9x21mmGyurza_HP</defName>
		<label>make 9x21mm Gyurza (HP) cartridge x500</label>
		<description>Craft 500 9x21mm Gyurza (HP) cartridges.</description>
		<jobString>Making 9x21mm Gyurza (HP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>24</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_9x21mmGyurza_HP>500</Ammo_9x21mmGyurza_HP>
		</products>
		<workAmount>2400</workAmount>
	</RecipeDef>

</Defs>