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

	<ThingCategoryDef>
		<defName>Ammo30Carbine</defName>
		<label>.30 Carbine</label>
		<parent>AmmoRifles</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberRifle</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_30Carbine</defName>
		<label>.30 Carbine</label>
		<ammoTypes>
			<Ammo_30Carbine_FMJ>Bullet_30Carbine_FMJ</Ammo_30Carbine_FMJ>
			<Ammo_30Carbine_AP>Bullet_30Carbine_AP</Ammo_30Carbine_AP>
			<Ammo_30Carbine_HP>Bullet_30Carbine_HP</Ammo_30Carbine_HP>
			<Ammo_30Carbine_Incendiary>Bullet_30Carbine_Incendiary</Ammo_30Carbine_Incendiary>
			<Ammo_30Carbine_HE>Bullet_30Carbine_HE</Ammo_30Carbine_HE>
			<Ammo_30Carbine_Sabot>Bullet_30Carbine_Sabot</Ammo_30Carbine_Sabot>
		</ammoTypes>
		<similarTo>AmmoSet_RifleIntermediate</similarTo>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_30Carbine_SB</defName>
		<label>.30 Carbine</label>
		<ammoTypes>
			<Ammo_30Carbine_FMJ>Bullet_30Carbine_FMJ_SB</Ammo_30Carbine_FMJ>
			<Ammo_30Carbine_AP>Bullet_30Carbine_AP_SB</Ammo_30Carbine_AP>
			<Ammo_30Carbine_HP>Bullet_30Carbine_HP_SB</Ammo_30Carbine_HP>
			<Ammo_30Carbine_Incendiary>Bullet_30Carbine_Incendiary_SB</Ammo_30Carbine_Incendiary>
			<Ammo_30Carbine_HE>Bullet_30Carbine_HE_SB</Ammo_30Carbine_HE>
			<Ammo_30Carbine_Sabot>Bullet_30Carbine_Sabot_SB</Ammo_30Carbine_Sabot>
		</ammoTypes>
		<similarTo>AmmoSet_RifleIntermediate</similarTo>
	</CombatExtended.AmmoSetDef>	

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="30CarbineBase" ParentName="SmallAmmoBase" Abstract="True">
		<description>Small, light rifle cartridge most commonly found in carbines.</description>
		<statBases>
			<Mass>0.013</Mass>
			<Bulk>0.01</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo30Carbine</li>
		</thingCategories>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="30CarbineBase">
		<defName>Ammo_30Carbine_FMJ</defName>
		<label>.30 Carbine (FMJ)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Clip/FMJ</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>FullMetalJacket</ammoClass>
		<cookOffProjectile>Bullet_30Carbine_FMJ</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="30CarbineBase">
		<defName>Ammo_30Carbine_AP</defName>
		<label>.30 Carbine (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Clip/AP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<cookOffProjectile>Bullet_30Carbine_AP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="30CarbineBase">
		<defName>Ammo_30Carbine_HP</defName>
		<label>.30 Carbine (HP)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Clip/HP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>HollowPoint</ammoClass>
		<cookOffProjectile>Bullet_30Carbine_HP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="30CarbineBase">
		<defName>Ammo_30Carbine_Incendiary</defName>
		<label>.30 Carbine (AP-I)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Clip/Incendiary</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>IncendiaryAP</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_30Carbine_Incendiary</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="30CarbineBase">
		<defName>Ammo_30Carbine_HE</defName>
		<label>.30 Carbine (AP-HE)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Clip/HE</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ExplosiveAP</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_30Carbine_HE</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="30CarbineBase">
		<defName>Ammo_30Carbine_Sabot</defName>
		<label>.30 Carbine (Sabot)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Clip/Sabot</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>0.01</Mass>
		</statBases>
		<ammoClass>Sabot</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_30Carbine_Sabot</cookOffProjectile>
	</ThingDef>

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

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

	<ThingDef ParentName="Base30CarbineBullet">
		<defName>Bullet_30Carbine_FMJ</defName>
		<label>.30 Carbine bullet (FMJ)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>14</damageAmountBase>
			<armorPenetrationSharp>5</armorPenetrationSharp>
			<armorPenetrationBlunt>25.74</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base30CarbineBullet">
		<defName>Bullet_30Carbine_AP</defName>
		<label>.30 Carbine bullet (AP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>9</damageAmountBase>
			<armorPenetrationSharp>10</armorPenetrationSharp>
			<armorPenetrationBlunt>25.74</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base30CarbineBullet">
		<defName>Bullet_30Carbine_HP</defName>
		<label>.30 Carbine bullet (HP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>18</damageAmountBase>
			<armorPenetrationSharp>3</armorPenetrationSharp>
			<armorPenetrationBlunt>25.74</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base30CarbineBullet">
		<defName>Bullet_30Carbine_Incendiary</defName>
		<label>.30 Carbine bullet (AP-I)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>9</damageAmountBase>
			<armorPenetrationSharp>10</armorPenetrationSharp>
			<armorPenetrationBlunt>25.74</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>5</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base30CarbineBullet">
		<defName>Bullet_30Carbine_HE</defName>
		<label>.30 Carbine bullet (AP-HE)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>14</damageAmountBase>
			<armorPenetrationSharp>5</armorPenetrationSharp>
			<armorPenetrationBlunt>25.74</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>6</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base30CarbineBullet">
		<defName>Bullet_30Carbine_Sabot</defName>
		<label>.30 Carbine bullet (Sabot)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>7</damageAmountBase>
			<armorPenetrationSharp>17.5</armorPenetrationSharp>
			<armorPenetrationBlunt>33.02</armorPenetrationBlunt>
			<speed>166</speed>
		</projectile>
	</ThingDef>

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

	<ThingDef ParentName="Base30CarbineBullet">
		<defName>Bullet_30Carbine_FMJ_SB</defName>
		<label>.30 Carbine bullet (FMJ)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>12</damageAmountBase>
			<armorPenetrationSharp>4</armorPenetrationSharp>
			<armorPenetrationBlunt>18.78</armorPenetrationBlunt>
			<speed>109</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base30CarbineBullet">
		<defName>Bullet_30Carbine_AP_SB</defName>
		<label>.30 Carbine bullet (AP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>8</damageAmountBase>
			<armorPenetrationSharp>8</armorPenetrationSharp>
			<armorPenetrationBlunt>18.78</armorPenetrationBlunt>
			<speed>109</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base30CarbineBullet">
		<defName>Bullet_30Carbine_HP_SB</defName>
		<label>.30 Carbine bullet (HP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>16</damageAmountBase>
			<armorPenetrationSharp>2</armorPenetrationSharp>
			<armorPenetrationBlunt>18.78</armorPenetrationBlunt>
			<speed>109</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base30CarbineBullet">
		<defName>Bullet_30Carbine_Incendiary_SB</defName>
		<label>.30 Carbine bullet (AP-I)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>8</damageAmountBase>
			<armorPenetrationSharp>8</armorPenetrationSharp>
			<armorPenetrationBlunt>18.78</armorPenetrationBlunt>
			<speed>109</speed>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>5</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base30CarbineBullet">
		<defName>Bullet_30Carbine_HE_SB</defName>
		<label>.30 Carbine bullet (AP-HE)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>12</damageAmountBase>
			<armorPenetrationSharp>4</armorPenetrationSharp>
			<armorPenetrationBlunt>18.78</armorPenetrationBlunt>
			<speed>109</speed>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>6</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base30CarbineBullet">
		<defName>Bullet_30Carbine_Sabot_SB</defName>
		<label>.30 Carbine bullet (Sabot)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>7</damageAmountBase>
			<armorPenetrationSharp>14</armorPenetrationSharp>
			<armorPenetrationBlunt>24.08</armorPenetrationBlunt>
			<speed>148</speed>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_30Carbine_FMJ</defName>
		<label>make .30 Carbine (FMJ) cartridge x500</label>
		<description>Craft 500 .30 Carbine (FMJ) cartridges.</description>
		<jobString>Making .30 Carbine (FMJ) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>14</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_30Carbine_FMJ>500</Ammo_30Carbine_FMJ>
		</products>
		<workAmount>1400</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_30Carbine_AP</defName>
		<label>make .30 Carbine (AP) cartridge x500</label>
		<description>Craft 500 .30 Carbine (AP) cartridges.</description>
		<jobString>Making .30 Carbine (AP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>14</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_30Carbine_AP>500</Ammo_30Carbine_AP>
		</products>
		<workAmount>1680</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_30Carbine_HP</defName>
		<label>make .30 Carbine (HP) cartridge x500</label>
		<description>Craft 500 .30 Carbine (HP) cartridges.</description>
		<jobString>Making .30 Carbine (HP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>14</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_30Carbine_HP>500</Ammo_30Carbine_HP>
		</products>
		<workAmount>1400</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_30Carbine_Incendiary</defName>
		<label>make .30 Carbine (AP-I) cartridge x500</label>
		<description>Craft 500 .30 Carbine (AP-I) cartridges.</description>
		<jobString>Making .30 Carbine (AP-I) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>14</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Prometheum</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_30Carbine_Incendiary>500</Ammo_30Carbine_Incendiary>
		</products>
		<workAmount>2200</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_30Carbine_HE</defName>
		<label>make .30 Carbine (AP-HE) cartridge x500</label>
		<description>Craft 500 .30 Carbine (AP-HE) cartridges.</description>
		<jobString>Making .30 Carbine (AP-HE) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>14</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>5</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_30Carbine_HE>500</Ammo_30Carbine_HE>
		</products>
		<workAmount>3400</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_30Carbine_Sabot</defName>
		<label>make .30 Carbine (Sabot) cartridge x500</label>
		<description>Craft 500 .30 Carbine (Sabot) cartridges.</description>
		<jobString>Making .30 Carbine (Sabot) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>6</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Chemfuel</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>Chemfuel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_30Carbine_Sabot>500</Ammo_30Carbine_Sabot>
		</products>
		<workAmount>1800</workAmount>
	</RecipeDef>

</Defs>