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

	<ThingCategoryDef>
		<defName>Ammo17HMR</defName>
		<label>.17 HMR</label>
		<parent>AmmoRifles</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberPistol</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_17HMR</defName>
		<label>.17 HMR</label>
		<ammoTypes>
			<Ammo_17HMR_FMJ>Bullet_17HMR_FMJ</Ammo_17HMR_FMJ>
			<Ammo_17HMR_AP>Bullet_17HMR_AP</Ammo_17HMR_AP>
			<Ammo_17HMR_HP>Bullet_17HMR_HP</Ammo_17HMR_HP>
		</ammoTypes>
		<similarTo>AmmoSet_Rifle</similarTo>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="17HMRBase" ParentName="SmallAmmoBase" Abstract="True">
		<description>A necked down .22 Magnum rifle cartridge using a .17 caliber bullet, known for its high speed.</description>
		<statBases>
			<Mass>0.004</Mass>
			<Bulk>0.01</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo17HMR</li>
		</thingCategories>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="17HMRBase">
		<defName>Ammo_17HMR_FMJ</defName>
		<label>.17 HMR (FMJ)</label>
		<graphicData>
			<texPath>Things/Ammo/Pistol/FMJ</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>FullMetalJacket</ammoClass>
		<cookOffProjectile>Bullet_17HMR_FMJ</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="17HMRBase">
		<defName>Ammo_17HMR_AP</defName>
		<label>.17 HMR (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/Pistol/AP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<cookOffProjectile>Bullet_17HMR_AP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="17HMRBase">
		<defName>Ammo_17HMR_HP</defName>
		<label>.17 HMR (HP)</label>
		<graphicData>
			<texPath>Things/Ammo/Pistol/HP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>HollowPoint</ammoClass>
		<cookOffProjectile>Bullet_17HMR_HP</cookOffProjectile>
	</ThingDef>

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

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

	<ThingDef ParentName="Base17HMRBullet">
		<defName>Bullet_17HMR_FMJ</defName>
		<label>.17 HMR bullet (FMJ)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>7</damageAmountBase>
			<armorPenetrationSharp>3</armorPenetrationSharp>
			<armorPenetrationBlunt>6.44</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base17HMRBullet">
		<defName>Bullet_17HMR_AP</defName>
		<label>.17 HMR bullet (AP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>4</damageAmountBase>
			<armorPenetrationSharp>6</armorPenetrationSharp>
			<armorPenetrationBlunt>6.44</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base17HMRBullet">
		<defName>Bullet_17HMR_HP</defName>
		<label>.17 HMR bullet (HP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>9</damageAmountBase>
			<armorPenetrationSharp>2</armorPenetrationSharp>
			<armorPenetrationBlunt>6.44</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_17HMR_FMJ</defName>
		<label>make .17 HMR cartridge x500</label>
		<description>Craft 500 .17 HMR cartridges.</description>
		<jobString>Making .17 HMR cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>6</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_17HMR_FMJ>500</Ammo_17HMR_FMJ>
		</products>
		<workAmount>600</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_17HMR_AP</defName>
		<label>make .17 HMR (AP) cartridge x500</label>
		<description>Craft 500 .17 HMR (AP) cartridges.</description>
		<jobString>Making .17 HMR (AP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>6</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_17HMR_AP>500</Ammo_17HMR_AP>
		</products>
		<workAmount>720</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_17HMR_HP</defName>
		<label>make .17 HMR (HP) cartridge x500</label>
		<description>Craft 500 .17 HMR (HP) cartridges.</description>
		<jobString>Making .17 HMR (HP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>6</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_17HMR_HP>500</Ammo_17HMR_HP>
		</products>
		<workAmount>600</workAmount>
	</RecipeDef>

</Defs>