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

	<ThingCategoryDef>
		<defName>Ammo6x24mmCharged</defName>
		<label>6x24mm Charged</label>
		<parent>AmmoAdvanced</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberCharge</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_6x24mmCharged</defName>
		<label>6x24mm Charged</label>
		<ammoTypes>
			<Ammo_6x24mmCharged>Bullet_6x24mmCharged</Ammo_6x24mmCharged>
			<Ammo_6x24mmCharged_AP>Bullet_6x24mmCharged_AP</Ammo_6x24mmCharged_AP>
			<Ammo_6x24mmCharged_Ion>Bullet_6x24mmCharged_Ion</Ammo_6x24mmCharged_Ion>
		</ammoTypes>
		<similarTo>AmmoSet_ChargedRifle</similarTo>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="6x24mmChargedBase" ParentName="SpacerSmallAmmoBase" Abstract="True">
		<description>Charged shot ammo used by advanced assault rifle designs.</description>
		<statBases>
			<Mass>0.01</Mass>
			<Bulk>0.01</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting_FabricationBench</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo6x24mmCharged</li>
		</thingCategories>
		<stackLimit>5000</stackLimit>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="6x24mmChargedBase">
		<defName>Ammo_6x24mmCharged</defName>
		<label>6x24mm Charged</label>
		<graphicData>
			<texPath>Things/Ammo/Charged/MediumRegular</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>Charged</ammoClass>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="6x24mmChargedBase">
		<defName>Ammo_6x24mmCharged_AP</defName>
		<label>6x24mm Charged (Conc.)</label>
		<graphicData>
			<texPath>Things/Ammo/Charged/MediumConc</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>ChargedAP</ammoClass>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="6x24mmChargedBase">
		<defName>Ammo_6x24mmCharged_Ion</defName>
		<label>6x24mm Charged (Ion)</label>
		<graphicData>
			<texPath>Things/Ammo/Charged/MediumIon</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>Ionized</ammoClass>
		<generateAllowChance>0.5</generateAllowChance>
	</ThingDef>

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

	<ThingDef Name="Base6x24mmChargedBullet" ParentName="BaseBulletCE" Abstract="true">
		<graphicData>
			<texPath>Things/Projectile/Charged/ChargeShot</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<speed>151</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base6x24mmChargedBullet">
		<defName>Bullet_6x24mmCharged</defName>
		<label>6x24mm Charged bullet</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>13</damageAmountBase>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>4</amount>
				</li>
			</secondaryDamage>
			<armorPenetrationSharp>15</armorPenetrationSharp>
			<armorPenetrationBlunt>25.6</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base6x24mmChargedBullet">
		<defName>Bullet_6x24mmCharged_AP</defName>
		<label>6x24mm Charged bullet (Conc.)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>10</damageAmountBase>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>2</amount>
				</li>
			</secondaryDamage>
			<armorPenetrationSharp>30</armorPenetrationSharp>
			<armorPenetrationBlunt>25.6</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base6x24mmChargedBullet">
		<defName>Bullet_6x24mmCharged_Ion</defName>
		<label>6x24mm Charged bullet (Ion)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>10</damageAmountBase>
			<secondaryDamage>
				<li>
					<def>EMP</def>
					<amount>6</amount>
				</li>
			</secondaryDamage>
			<armorPenetrationSharp>22.5</armorPenetrationSharp>
			<armorPenetrationBlunt>25.6</armorPenetrationBlunt>
			<empShieldBreakChance>0.2</empShieldBreakChance>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="ChargeAmmoRecipeBase">
		<defName>MakeAmmo_6x24mmCharged</defName>
		<label>make 6x24mm Charged cartridge x500</label>
		<description>Craft 500 6x24mm Charged cartridges.</description>
		<jobString>Making 6x24mm Charged cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Plasteel</li>
					</thingDefs>
				</filter>
				<count>8</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>6</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>5</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Plasteel</li>
				<li>Steel</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_6x24mmCharged>500</Ammo_6x24mmCharged>
		</products>
		<workAmount>6800</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="ChargeAmmoRecipeBase">
		<defName>MakeAmmo_6x24mmCharged_AP</defName>
		<label>make 6x24mm Charged (Conc.) cartridge x500</label>
		<description>Craft 500 6x24mm Charged (Conc.) cartridges.</description>
		<jobString>Making 6x24mm Charged (Conc.) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Plasteel</li>
					</thingDefs>
				</filter>
				<count>8</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>6</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>5</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Plasteel</li>
				<li>Steel</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_6x24mmCharged_AP>500</Ammo_6x24mmCharged_AP>
		</products>
		<workAmount>6800</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="ChargeAmmoRecipeBase">
		<defName>MakeAmmo_6x24mmCharged_Ion</defName>
		<label>make 6x24mm Charged (Ion) cartridge x500</label>
		<description>Craft 500 6x24mm Charged (Ion) cartridges.</description>
		<jobString>Making 6x24mm Charged (Ion) cartridges.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Plasteel</li>
					</thingDefs>
				</filter>
				<count>8</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>6</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>6</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Plasteel</li>
				<li>Steel</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_6x24mmCharged_Ion>500</Ammo_6x24mmCharged_Ion>
		</products>
		<workAmount>7400</workAmount>
	</RecipeDef>

</Defs>