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

	<ThingCategoryDef>
		<defName>AmmoLasgunPowerPack</defName>
		<label>lasgun power pack</label>
		<parent>AmmoAdvanced</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberRailgunPistol</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_Lasgun_Pistol</defName>
		<label>lasgun power pack</label>
		<ammoTypes>
			<Ammo_LasgunPowerPack>Bullet_Lasgun_Pistol</Ammo_LasgunPowerPack>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_Lasgun_Rifle</defName>
		<label>lasgun power pack</label>
		<ammoTypes>
			<Ammo_LasgunPowerPack>Bullet_Lasgun_Rifle</Ammo_LasgunPowerPack>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_Lasgun_HellGun</defName>
		<label>lasgun power pack</label>
		<ammoTypes>
			<Ammo_LasgunPowerPack>Bullet_Lasgun_HellGun</Ammo_LasgunPowerPack>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_Lasgun_Cannon</defName>
		<label>lasgun power pack</label>
		<ammoTypes>
			<Ammo_LasgunPowerPack>Bullet_Lasgun_Cannon</Ammo_LasgunPowerPack>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_Lasgun_CannonDouble</defName>
		<label>lasgun power pack</label>
		<ammoTypes>
			<Ammo_LasgunPowerPack>Bullet_Lasgun_CannonDouble</Ammo_LasgunPowerPack>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="LasgunPowerPackBase" ParentName="SpacerSmallAmmoBase" Abstract="True">
		<description>A universal power pack for lasguns.</description>
		<statBases>
			<Mass>0.008</Mass>
			<Bulk>0.01</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting_FabricationBench</li>
			<li>CE_AutoEnableCrafting_TableMachining</li>
			<li>CE_AutoEnableCrafting_GWAmmoBench</li>
			<li>CE_40K_Ammo</li>
		</tradeTags>
		<thingCategories>
			<li>AmmoLasgunPowerPack</li>
		</thingCategories>
		<stackLimit>1000</stackLimit>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="LasgunPowerPackBase">
		<defName>Ammo_LasgunPowerPack</defName>
		<label>lasgun power pack</label>
		<graphicData>
			<texPath>ThirdParty/Warhammer/Ammo/Lasgun</texPath>
			<graphicClass>CombatExtended.Graphic_StackCountRanged</graphicClass>
		</graphicData>
		<ammoClass>Laser</ammoClass>
	</ThingDef>

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

	<ThingDef Class="CombatExtended.Lasers.LaserBeamDefCE" ParentName="LaserBulletRed">
		<defName>Bullet_Lasgun_Pistol</defName>
		<label>laser beam</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>CE_Laser</damageDef>
			<damageAmountBase>12</damageAmountBase>
			<armorPenetrationSharp>8</armorPenetrationSharp>
			<armorPenetrationBlunt>0.01</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.Lasers.LaserBeamDefCE" ParentName="LaserBulletRed">
		<defName>Bullet_Lasgun_Rifle</defName>
		<label>laser beam</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>CE_Laser</damageDef>
			<damageAmountBase>20</damageAmountBase>
			<armorPenetrationSharp>14</armorPenetrationSharp>
			<armorPenetrationBlunt>0.01</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.Lasers.LaserBeamDefCE" ParentName="LaserBulletRed">
		<defName>Bullet_Lasgun_HellGun</defName>
		<label>laser beam</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>CE_Laser</damageDef>
			<damageAmountBase>26</damageAmountBase>
			<armorPenetrationSharp>20</armorPenetrationSharp>
			<armorPenetrationBlunt>0.01</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.Lasers.LaserBeamDefCE" ParentName="LaserBulletRed">
		<defName>Bullet_Lasgun_Cannon</defName>
		<label>laser beam</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>CE_Laser</damageDef>
			<damageAmountBase>80</damageAmountBase>
			<armorPenetrationSharp>558</armorPenetrationSharp>
			<armorPenetrationBlunt>0.01</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.Lasers.LaserBeamDefCE" ParentName="LaserBulletRed">
		<defName>Bullet_Lasgun_CannonDouble</defName>
		<label>laser beam</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>CE_Laser</damageDef>
			<damageAmountBase>80</damageAmountBase>
			<armorPenetrationSharp>558</armorPenetrationSharp>
			<armorPenetrationBlunt>0.01</armorPenetrationBlunt>
			<pelletCount>2</pelletCount>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_LasgunPowerPack</defName>
		<label>make lasgun power pack x500</label>
		<description>Craft 500 lasgun batteries.</description>
		<jobString>Making lasgun power pack.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Plasteel</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>8</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Plasteel</li>
				<li>Steel</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_LasgunPowerPack>500</Ammo_LasgunPowerPack>
		</products>
		<workAmount>8400</workAmount>
	</RecipeDef>

</Defs>
