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

	<!-- === ThingCategory === -->
	<ThingCategoryDef>
		<defName>AmmoPlasmaCellShotgun</defName>
		<label>Plasma Shotgun Power Cell</label>
		<parent>AmmoAdvanced</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberPlasmaMedium</iconPath>
	</ThingCategoryDef>

	<!-- === AmmoSet === -->
	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_PlasmaCellShotgun_HRACA</defName>
		<label>Plasma Shotgun Power Cell</label>
		<ammoTypes>
			<Ammo_PlasmaCellShotgun_HRACA>Bullet_PlasmaCellShotgun_HRACA</Ammo_PlasmaCellShotgun_HRACA>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<!-- === Ammo === -->
	<ThingDef Class="CombatExtended.AmmoDef" ParentName="SpacerSmallAmmoBase">
		<defName>Ammo_PlasmaCellShotgun_HRACA</defName>
		<label>Plasma Shotgun Power Cell</label>
		<description>Plasma containment power cell optimized for shotguns</description>
		<statBases>
			<Mass>0.017</Mass>
			<Bulk>0.01</Bulk>
			<MarketValue>0.24</MarketValue>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting_TableMachining</li>
		</tradeTags>
		<thingCategories>
			<li>AmmoPlasmaCellShotgun</li>
		</thingCategories>
		<graphicData>
			<texPath>Things/Ammo/PlasmaCell/Heavy</texPath>
			<graphicClass>CombatExtended.Graphic_StackCountRanged</graphicClass>
		</graphicData>
		<ammoClass>Plasma</ammoClass>
		<comps>
			<li Class="CombatExtended.CompProperties_ExplosiveCE">
				<damageAmountBase>20</damageAmountBase>
				<explosiveDamageType>Bomb</explosiveDamageType>
				<explosiveRadius>0.5</explosiveRadius>
				<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
			</li>
			<li Class="CombatExtended.CompProperties_Fragments">
				<fragments>
					<Fragment_Large>2</Fragment_Large>
					<Fragment_Small>10</Fragment_Small>
				</fragments>
			</li>
		</comps>
	</ThingDef>

	<!-- === Projectile === -->
	<ThingDef ParentName="BaseExplosiveBullet">
		<defName>Bullet_PlasmaCellShotgun_HRACA</defName>
		<label>Plasma Bolt</label>
		<graphicData>
			<texPath>Things/Projectile/HRACA_Bullet_Plasma_Shotgun</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bomb</damageDef>
			<damageAmountBase>2</damageAmountBase>
			<explosionRadius>0.5</explosionRadius>
			<pelletCount>9</pelletCount>
			<spreadMult>13</spreadMult>
			<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
			<speed>140</speed>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>9</amount>
				</li>
			</secondaryDamage>
			<screenShakeFactor>0</screenShakeFactor>
		</projectile>
	</ThingDef>

	<!-- === Recipe === -->
	<RecipeDef ParentName="ChargeAmmoRecipeBase">
		<defName>MakeAmmo_PlasmaCellShotgun_HRACA</defName>
		<label>make Plasma Shotgun Power Cells</label>
		<description>Craft 500 shots worth of Plasma Shotgun Power Cells.</description>
		<jobString>Making Plasma Shotgun Power Cells.</jobString>
		<workAmount>3800</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>18</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Plasteel</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Plasteel</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_PlasmaCellShotgun_HRACA>500</Ammo_PlasmaCellShotgun_HRACA>
		</products>
	</RecipeDef>

</Defs>