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

	<ThingCategoryDef>
		<defName>AmmoDEpulsePack</defName>
		<label>combine pulse pack</label>
		<parent>AmmoAdvanced</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberChargeLarge</iconPath>
	</ThingCategoryDef>

	<!-- ==================== Ammo ========================== -->
	<ThingDef Class="CombatExtended.AmmoDef" Name="DEpulsePackBase" ParentName="SpacerSmallAmmoBase" Abstract="True">
		<description>A dark energy charge pack for combine pulse weapons.</description>
		<statBases>
			<Mass>0.008</Mass>
			<Bulk>0.01</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting_FabricationBench</li>
		</tradeTags>
		<thingCategories>
			<li>AmmoDEpulsePack</li>
		</thingCategories>
		<stackLimit>5000</stackLimit>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="LaserChargePackBase">
		<defName>Ammo_DEpulsePack</defName>
		<label>combine pulse pack</label>
		<graphicData>
			<texPath>ThirdParty/Pulse Weaponry/DE Pulse</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>Charged</ammoClass>
	</ThingDef>

	<!-- ==================== Recipes ========================== -->
	<RecipeDef ParentName="ChargeAmmoRecipeBase">
		<defName>MakeAmmo_DEpulsePack</defName>
		<label>make combine pulse pack x500</label>
		<description>Craft 500 combine pulse pack.</description>
		<jobString>Making combine pulse pack.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Plasteel</li>
					</thingDefs>
				</filter>
				<count>16</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentSpacer</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Plasteel</li>
				<li>Steel</li>
				<li>ComponentSpacer</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_DEpulsePack>500</Ammo_DEpulsePack>
		</products>
		<workAmount>12600</workAmount><!-- === 1.5 times 8400 === -->
	</RecipeDef>

	<!-- === Ammo Sets === -->
	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_DV_PulseSMG</defName>
		<label>pulse pack</label>
		<ammoTypes>
			<Ammo_DEpulsePack>Bullet_DV_PulseSMG_CE</Ammo_DEpulsePack>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_DV_PulseRifle</defName>
		<label>pulse pack</label>
		<ammoTypes>
			<Ammo_DEpulsePack>Bullet_DV_PulseRifle_CE</Ammo_DEpulsePack>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_DV_PulseSuppressor</defName>
		<label>pulse pack</label>
		<ammoTypes>
			<Ammo_DEpulsePack>Bullet_DV_PulseSuppressor_CE</Ammo_DEpulsePack>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>Bullet_DV_PulseRifle_UBGL_CE</defName>
		<label>pulse pack</label>
		<ammoTypes>
			<Ammo_DEpulsePack>Bullet_DV_PulseRifle_UBGL_CE</Ammo_DEpulsePack>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<!-- === Projectiles === -->
	<ThingDef ParentName="BaseBulletCE">
		<defName>Bullet_DV_PulseSMG_CE</defName>
		<label>Pulse projectile</label>
		<graphicData>
			<texPath>Things/PulseBullet</texPath>
			<shaderType>TransparentPostLight</shaderType>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<speed>122</speed>
			<damageAmountBase>8</damageAmountBase>
			<secondaryDamage><!-- === 50% of base damage === -->
				<li>
					<def>Bomb_Secondary</def>
					<amount>4</amount>
				</li>
			</secondaryDamage>
			<armorPenetrationSharp>12</armorPenetrationSharp>
			<armorPenetrationBlunt>43.2</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseBulletCE">
		<defName>Bullet_DV_PulseRifle_CE</defName>
		<label>Pulse projectile</label>
		<graphicData>
			<texPath>Things/PulseBullet</texPath>
			<shaderType>TransparentPostLight</shaderType>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<speed>151</speed>
			<damageAmountBase>13</damageAmountBase>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>6</amount>
				</li>
			</secondaryDamage>
			<armorPenetrationSharp>15</armorPenetrationSharp>
			<armorPenetrationBlunt>128</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseBulletCE">
		<defName>Bullet_DV_PulseSuppressor_CE</defName>
		<label>Pulse projectile</label>
		<graphicData>
			<texPath>Things/PulseBullet</texPath>
			<shaderType>TransparentPostLight</shaderType>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<speed>151</speed>
			<damageAmountBase>19</damageAmountBase>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>9</amount>
				</li>
			</secondaryDamage>
			<armorPenetrationSharp>16</armorPenetrationSharp>
			<armorPenetrationBlunt>345.6</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseExplosiveBullet">
		<defName>Bullet_DV_PulseRifle_UBGL_CE</defName>
		<label>Pulse projectile</label>
		<graphicData>
			<texPath>Things/Projectiles/CombineBall</texPath>
			<graphicClass>Graphic_Single</graphicClass>
			<shaderType>TransparentPostLight</shaderType>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>81</speed>
			<damageDef>EMP</damageDef>
			<damageAmountBase>20</damageAmountBase>
			<explosionRadius>0.6</explosionRadius>
			<empShieldBreakChance>1</empShieldBreakChance>
		</projectile>
	</ThingDef>
</Defs>