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

	<ThingCategoryDef>
		<defName>Ammo44-40Winchester</defName>
		<label>.44-40 Winchester</label>
		<parent>AmmoRifles</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberRifle</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_44-40Winchester</defName>
		<label>.44-40 Winchester</label>
		<ammoTypes>
			<Ammo_44-40Winchester_FMJ>Bullet_44-40Winchester_FMJ</Ammo_44-40Winchester_FMJ>
			<Ammo_44-40Winchester_AP>Bullet_44-40Winchester_AP</Ammo_44-40Winchester_AP>
			<Ammo_44-40Winchester_HP>Bullet_44-40Winchester_HP</Ammo_44-40Winchester_HP>
			<Ammo_44-40Winchester_Incendiary>Bullet_44-40Winchester_Incendiary</Ammo_44-40Winchester_Incendiary>
			<Ammo_44-40Winchester_HE>Bullet_44-40Winchester_HE</Ammo_44-40Winchester_HE>
			<Ammo_44-40Winchester_Sabot>Bullet_44-40Winchester_Sabot</Ammo_44-40Winchester_Sabot>
		</ammoTypes>
		<similarTo>AmmoSet_RifleIntermediate</similarTo>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_44-40Winchester_SB</defName>
		<label>.44-40 Winchester</label>
		<ammoTypes>
			<Ammo_44-40Winchester_FMJ>Bullet_44-40Winchester_FMJ_SB</Ammo_44-40Winchester_FMJ>
			<Ammo_44-40Winchester_AP>Bullet_44-40Winchester_AP_SB</Ammo_44-40Winchester_AP>
			<Ammo_44-40Winchester_HP>Bullet_44-40Winchester_HP_SB</Ammo_44-40Winchester_HP>
			<Ammo_44-40Winchester_Incendiary>Bullet_44-40Winchester_Incendiary_SB</Ammo_44-40Winchester_Incendiary>
			<Ammo_44-40Winchester_HE>Bullet_44-40Winchester_HE_SB</Ammo_44-40Winchester_HE>
			<Ammo_44-40Winchester_Sabot>Bullet_44-40Winchester_Sabot_SB</Ammo_44-40Winchester_Sabot>
		</ammoTypes>
		<similarTo>AmmoSet_RifleIntermediate</similarTo>
	</CombatExtended.AmmoSetDef>	

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="44-40WinchesterBase" ParentName="SmallAmmoBase" Abstract="True">
		<description>Ancient mid-late 19th century bullet, originally loaded with 40 grains of blackpowder. Used in various repeating rifles and revolvers.</description>
		<statBases>
			<Mass>0.024</Mass>
			<Bulk>0.02</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo44-40Winchester</li>
		</thingCategories>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="44-40WinchesterBase">
		<defName>Ammo_44-40Winchester_FMJ</defName>
		<label>.44-40 Winchester (FMJ)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/StraightWall/FMJ</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>FullMetalJacket</ammoClass>
		<cookOffProjectile>Bullet_44-40Winchester_FMJ</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="44-40WinchesterBase">
		<defName>Ammo_44-40Winchester_AP</defName>
		<label>.44-40 Winchester (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/StraightWall/AP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<cookOffProjectile>Bullet_44-40Winchester_AP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="44-40WinchesterBase">
		<defName>Ammo_44-40Winchester_HP</defName>
		<label>.44-40 Winchester (HP)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/StraightWall/HP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>HollowPoint</ammoClass>
		<cookOffProjectile>Bullet_44-40Winchester_HP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="44-40WinchesterBase">
		<defName>Ammo_44-40Winchester_Incendiary</defName>
		<label>.44-40 Winchester (AP-I)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/StraightWall/Incendiary</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>IncendiaryAP</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_44-40Winchester_Incendiary</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="44-40WinchesterBase">
		<defName>Ammo_44-40Winchester_HE</defName>
		<label>.44-40 Winchester (AP-HE)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/StraightWall/HE</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ExplosiveAP</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_44-40Winchester_HE</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="44-40WinchesterBase">
		<defName>Ammo_44-40Winchester_Sabot</defName>
		<label>.44-40 Winchester (Sabot)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/StraightWall/Sabot</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.018</Mass>
		</statBases>
		<ammoClass>Sabot</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_44-40Winchester_Sabot</cookOffProjectile>
	</ThingDef>

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

	<ThingDef Name="Base44-40WinchesterBullet" ParentName="BaseBulletCE" Abstract="true">
		<graphicData>
			<texPath>Things/Projectile/Bullet_Small</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<speed>101</speed>
			<dropsCasings>true</dropsCasings>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base44-40WinchesterBullet">
		<defName>Bullet_44-40Winchester_FMJ</defName>
		<label>.44-40 Winchester bullet (FMJ)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>16</damageAmountBase>
			<armorPenetrationSharp>7.5</armorPenetrationSharp>
			<armorPenetrationBlunt>28.6</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base44-40WinchesterBullet">
		<defName>Bullet_44-40Winchester_AP</defName>
		<label>.44-40 Winchester bullet (AP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>10</damageAmountBase>
			<armorPenetrationSharp>15</armorPenetrationSharp>
			<armorPenetrationBlunt>28.6</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base44-40WinchesterBullet">
		<defName>Bullet_44-40Winchester_HP</defName>
		<label>.44-40 Winchester bullet (HP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>21</damageAmountBase>
			<armorPenetrationSharp>3.75</armorPenetrationSharp>
			<armorPenetrationBlunt>28.6</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base44-40WinchesterBullet">
		<defName>Bullet_44-40Winchester_Incendiary</defName>
		<label>.44-40 Winchester bullet (AP-I)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>10</damageAmountBase>
			<armorPenetrationSharp>15</armorPenetrationSharp>
			<armorPenetrationBlunt>28.6</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>7</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base44-40WinchesterBullet">
		<defName>Bullet_44-40Winchester_HE</defName>
		<label>.44-40 Winchester bullet (AP-HE)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>16</damageAmountBase>
			<armorPenetrationSharp>7.5</armorPenetrationSharp>
			<armorPenetrationBlunt>28.6</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>9</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base44-40WinchesterBullet">
		<defName>Bullet_44-40Winchester_Sabot</defName>
		<label>.44-40 Winchester bullet (Sabot)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>9</damageAmountBase>
			<armorPenetrationSharp>26.25</armorPenetrationSharp>
			<armorPenetrationBlunt>36.68</armorPenetrationBlunt>
			<speed>137</speed>
		</projectile>
	</ThingDef>

	<!-- Short barrel (Pistol) -->

	<ThingDef ParentName="Base44-40WinchesterBullet">
		<defName>Bullet_44-40Winchester_FMJ_SB</defName>
		<label>.44-40 Winchester bullet (FMJ)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>12</damageAmountBase>
			<armorPenetrationSharp>4.5</armorPenetrationSharp>
			<armorPenetrationBlunt>11.7</armorPenetrationBlunt>
			<speed>73</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base44-40WinchesterBullet">
		<defName>Bullet_44-40Winchester_AP_SB</defName>
		<label>.44-40 Winchester bullet (AP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>8</damageAmountBase>
			<armorPenetrationSharp>9</armorPenetrationSharp>
			<armorPenetrationBlunt>11.7</armorPenetrationBlunt>
			<speed>73</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base44-40WinchesterBullet">
		<defName>Bullet_44-40Winchester_HP_SB</defName>
		<label>.44-40 Winchester bullet (HP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>15</damageAmountBase>
			<armorPenetrationSharp>2.75</armorPenetrationSharp>
			<armorPenetrationBlunt>11.7</armorPenetrationBlunt>
			<speed>73</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base44-40WinchesterBullet">
		<defName>Bullet_44-40Winchester_Incendiary_SB</defName>
		<label>.44-40 Winchester bullet (AP-I)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>8</damageAmountBase>
			<armorPenetrationSharp>9</armorPenetrationSharp>
			<armorPenetrationBlunt>11.7</armorPenetrationBlunt>
			<speed>73</speed>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>7</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base44-40WinchesterBullet">
		<defName>Bullet_44-40Winchester_HE_SB</defName>
		<label>.44-40 Winchester bullet (AP-HE)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>12</damageAmountBase>
			<armorPenetrationSharp>4.5</armorPenetrationSharp>
			<armorPenetrationBlunt>11.7</armorPenetrationBlunt>
			<speed>73</speed>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>9</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base44-40WinchesterBullet">
		<defName>Bullet_44-40Winchester_Sabot_SB</defName>
		<label>.44-40 Winchester bullet (Sabot)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>6</damageAmountBase>
			<armorPenetrationSharp>15</armorPenetrationSharp>
			<armorPenetrationBlunt>15</armorPenetrationBlunt>
			<speed>98</speed>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_44-40Winchester_FMJ</defName>
		<label>make .44-40 Winchester cartridge (FMJ) x500</label>
		<description>Craft 500 .44-40 Winchester (FMJ) cartridges.</description>
		<jobString>Making .44-40 Winchester (FMJ) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>26</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_44-40Winchester_FMJ>500</Ammo_44-40Winchester_FMJ>
		</products>
		<workAmount>2600</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_44-40Winchester_AP</defName>
		<label>make .44-40 Winchester cartridge (AP) cartridge x500</label>
		<description>Craft 500 .44-40 Winchester cartridge (AP) cartridges.</description>
		<jobString>Making .44-40 Winchester cartridge (AP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>26</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_44-40Winchester_AP>500</Ammo_44-40Winchester_AP>
		</products>
		<workAmount>3120</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_44-40Winchester_HP</defName>
		<label>make .44-40 Winchester cartridge (HP) cartridge x500</label>
		<description>Craft 500 .44-40 Winchester cartridge (HP) cartridges.</description>
		<jobString>Making .44-40 Winchester cartridge (HP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>26</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_44-40Winchester_HP>500</Ammo_44-40Winchester_HP>
		</products>
		<workAmount>2600</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_44-40Winchester_Incendiary</defName>
		<label>make .44-40 Winchester (AP-I) cartridge x500</label>
		<description>Craft 500 .44-40 Winchester (AP-I) cartridges.</description>
		<jobString>Making .44-40 Winchester (AP-I) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>26</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Prometheum</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_44-40Winchester_Incendiary>500</Ammo_44-40Winchester_Incendiary>
		</products>
		<workAmount>4200</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_44-40Winchester_HE</defName>
		<label>make .44-40 Winchester (AP-HE) cartridge x500</label>
		<description>Craft 500 .44-40 Winchester (AP-HE) cartridges.</description>
		<jobString>Making .44-40 Winchester (AP-HE) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>26</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_44-40Winchester_HE>500</Ammo_44-40Winchester_HE>
		</products>
		<workAmount>5400</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_44-40Winchester_Sabot</defName>
		<label>make .44-40 Winchester (Sabot) cartridge x500</label>
		<description>Craft 500 .44-40 Winchester (Sabot) cartridges.</description>
		<jobString>Making .44-40 Winchester (Sabot) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>12</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_44-40Winchester_Sabot>500</Ammo_44-40Winchester_Sabot>
		</products>
		<workAmount>3600</workAmount>
	</RecipeDef>

</Defs>