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

	<ThingCategoryDef>
		<defName>Ammo485x49mm</defName>
		<label>4.85x49mm</label>
		<parent>AmmoRifles</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberRifle</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_485x49mm</defName>
		<label>4.85x49mm</label>
		<ammoTypes>
			<Ammo_485x49mm_FMJ>Bullet_485x49mm_FMJ</Ammo_485x49mm_FMJ>
			<Ammo_485x49mm_AP>Bullet_485x49mm_AP</Ammo_485x49mm_AP>
			<Ammo_485x49mm_HP>Bullet_485x49mm_HP</Ammo_485x49mm_HP>
			<Ammo_485x49mm_Incendiary>Bullet_485x49mm_Incendiary</Ammo_485x49mm_Incendiary>
			<Ammo_485x49mm_HE>Bullet_485x49mm_HE</Ammo_485x49mm_HE>
			<Ammo_485x49mm_Sabot>Bullet_485x49mm_Sabot</Ammo_485x49mm_Sabot>
		</ammoTypes>
		<similarTo>AmmoSet_Rifle</similarTo>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="485x49mmBase" ParentName="SmallAmmoBase" Abstract="True">
		<description>Experimental intermediate rifle cartridge.</description>
		<statBases>
			<Mass>0.012</Mass>
			<Bulk>0.02</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo485x49mm</li>
		</thingCategories>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="485x49mmBase">
		<defName>Ammo_485x49mm_FMJ</defName>
		<label>4.85x49mm (FMJ)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Battlerifle/FMJ</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>FullMetalJacket</ammoClass>
		<cookOffProjectile>Bullet_485x49mm_FMJ</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="485x49mmBase">
		<defName>Ammo_485x49mm_AP</defName>
		<label>4.85x49mm (AP)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Battlerifle/AP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ArmorPiercing</ammoClass>
		<cookOffProjectile>Bullet_485x49mm_AP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="485x49mmBase">
		<defName>Ammo_485x49mm_HP</defName>
		<label>4.85x49mm (HP)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Battlerifle/HP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>HollowPoint</ammoClass>
		<cookOffProjectile>Bullet_485x49mm_HP</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="485x49mmBase">
		<defName>Ammo_485x49mm_Incendiary</defName>
		<label>4.85x49mm (AP-I)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Battlerifle/Incendiary</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>IncendiaryAP</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_485x49mm_Incendiary</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="485x49mmBase">
		<defName>Ammo_485x49mm_HE</defName>
		<label>4.85x49mm (AP-HE)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Battlerifle/HE</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ExplosiveAP</ammoClass>
		<generateAllowChance>0.65</generateAllowChance> <!-- Make advanced ammo types less common. -->
		<cookOffProjectile>Bullet_485x49mm_HE</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="485x49mmBase">
		<defName>Ammo_485x49mm_Sabot</defName>
		<label>4.85x49mm (Sabot)</label>
		<graphicData>
			<texPath>Things/Ammo/Rifle/Battlerifle/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_485x49mm_Sabot</cookOffProjectile>
	</ThingDef>

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

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

	<ThingDef ParentName="Base485x49mmBullet">
		<defName>Bullet_485x49mm_FMJ</defName>
		<label>4.85x49mm cartridge (FMJ)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>13</damageAmountBase>
			<armorPenetrationSharp>6</armorPenetrationSharp>
			<armorPenetrationBlunt>32.06</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base485x49mmBullet">
		<defName>Bullet_485x49mm_AP</defName>
		<label>4.85x49mm cartridge (AP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>8</damageAmountBase>
			<armorPenetrationSharp>12</armorPenetrationSharp>
			<armorPenetrationBlunt>32.06</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base485x49mmBullet">
		<defName>Bullet_485x49mm_HP</defName>
		<label>4.85x49mm cartridge (HP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>17</damageAmountBase>
			<armorPenetrationSharp>3</armorPenetrationSharp>
			<armorPenetrationBlunt>32.06</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base485x49mmBullet">
		<defName>Bullet_485x49mm_Incendiary</defName>
		<label>4.85x49mm bullet (AP-I)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>8</damageAmountBase>
			<armorPenetrationSharp>12</armorPenetrationSharp>
			<armorPenetrationBlunt>32.06</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>3</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base485x49mmBullet">
		<defName>Bullet_485x49mm_HE</defName>
		<label>4.85x49mm bullet (AP-HE)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>13</damageAmountBase>
			<armorPenetrationSharp>6</armorPenetrationSharp>
			<armorPenetrationBlunt>32.06</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>4</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base485x49mmBullet">
		<defName>Bullet_485x49mm_Sabot</defName>
		<label>4.85x49mm bullet (Sabot)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>7</damageAmountBase>
			<armorPenetrationSharp>21</armorPenetrationSharp>
			<armorPenetrationBlunt>41.16</armorPenetrationBlunt>
			<speed>232</speed>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_485x49mm_FMJ</defName>
		<label>make 4.85x49mm Cartridge (FMJ) cartridge x500</label>
		<description>Craft 500 4.85x49mm Cartridge (FMJ) cartridges.</description>
		<jobString>Making 4.85x49mm Cartridge (FMJ) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_485x49mm_FMJ>500</Ammo_485x49mm_FMJ>
		</products>
		<workAmount>1200</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_485x49mm_AP</defName>
		<label>make 4.85x49mm Cartridge (AP) cartridge x500</label>
		<description>Craft 500 4.85x49mm Cartridge (AP) cartridges.</description>
		<jobString>Making 4.85x49mm Cartridge (AP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_485x49mm_AP>500</Ammo_485x49mm_AP>
		</products>
		<workAmount>1440</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_485x49mm_HP</defName>
		<label>make 4.85x49mm Cartridge (HP) cartridge x500</label>
		<description>Craft 500 4.85x49mm Cartridge (HP) cartridges.</description>
		<jobString>Making 4.85x49mm Cartridge (HP) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_485x49mm_HP>500</Ammo_485x49mm_HP>
		</products>
		<workAmount>1200</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_485x49mm_Incendiary</defName>
		<label>make 4.85x49mm (AP-I) cartridge x500</label>
		<description>Craft 500 4.85x49mm (AP-I) cartridges.</description>
		<jobString>Making 4.85x49mm (AP-I) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>1</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Prometheum</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_485x49mm_Incendiary>500</Ammo_485x49mm_Incendiary>
		</products>
		<workAmount>1600</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_485x49mm_HE</defName>
		<label>make 4.85x49mm (AP-HE) cartridge x500</label>
		<description>Craft 500 4.85x49mm (AP-HE) cartridges.</description>
		<jobString>Making 4.85x49mm (AP-HE) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_485x49mm_HE>500</Ammo_485x49mm_HE>
		</products>
		<workAmount>2800</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AdvancedAmmoRecipeBase">
		<defName>MakeAmmo_485x49mm_Sabot</defName>
		<label>make 4.85x49mm (Sabot) cartridge x500</label>
		<description>Craft 500 4.85x49mm (Sabot) cartridges.</description>
		<jobString>Making 4.85x49mm (Sabot) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>8</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_485x49mm_Sabot>500</Ammo_485x49mm_Sabot>
		</products>
		<workAmount>2000</workAmount>
	</RecipeDef>

</Defs>