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

	<ThingCategoryDef>
		<defName>Ammo6x22mmCharged</defName>
		<label>6x22mm Charged</label>
		<parent>AmmoAdvanced</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberCharge</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_6x22mmCharged</defName>
		<label>6x22mm Charged</label>
		<ammoTypes>
			<Ammo_6x22mmCharged>Bullet_6x22mmCharged</Ammo_6x22mmCharged>
		</ammoTypes>
		<similarTo>AmmoSet_MechCharged</similarTo>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="6x22mmChargedBase" ParentName="SpacerSmallAmmoBase" Abstract="True">
		<description>Mechanoid-built charged shot ammo used in mid range assault weapons.</description>
		<statBases>
			<Mass>0.01</Mass>
			<Bulk>0.01</Bulk>
		</statBases>
		<thingCategories>
			<li>Ammo6x22mmCharged</li>
		</thingCategories>
		<tradeTags>
			<li>CE_AutoEnableTrade_Sellable</li>
			<li MayRequire="Ludeon.RimWorld.Biotech">CE_AutoEnableCrafting_FabricationBench</li>
		</tradeTags>
		<stackLimit>5000</stackLimit>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="6x22mmChargedBase">
		<defName>Ammo_6x22mmCharged</defName>
		<label>6x22mm Charged</label>
		<graphicData>
			<texPath>Things/Ammo/Charged/MediumMech</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<MarketValue>0.27</MarketValue>
		</statBases>
		<ammoClass>Charged</ammoClass>
	</ThingDef>

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

	<ThingDef Name="Base6x22mmChargedBullet" ParentName="BaseBulletCE">
		<defName>Bullet_6x22mmCharged</defName>
		<label>6x22mm Charged bullet</label>
		<graphicData>
			<texPath>Things/Projectile/Charged/ChargeShot</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<damageAmountBase>13</damageAmountBase>
			<speed>151</speed>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>4</amount>
				</li>
			</secondaryDamage>
			<armorPenetrationSharp>15</armorPenetrationSharp>
			<armorPenetrationBlunt>25.6</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="ChargeAmmoRecipeBase" MayRequire="Ludeon.RimWorld.Biotech">
		<defName>MakeAmmo_6x22mmCharged</defName>
		<label>make 6x22mm Charged cartridge x500</label>
		<description>Craft 500 6x22mm Charged cartridges.</description>
		<jobString>Making 6x22mm 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_6x22mmCharged>500</Ammo_6x22mmCharged>
		</products>
		<workAmount>7480</workAmount>
		<skillRequirements>
			<Crafting>8</Crafting>
		</skillRequirements>
	</RecipeDef>

</Defs>