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

	<ThingCategoryDef>
		<defName>AmmoBolter998</defName>
		<label>.998 Cal Bolter</label>
		<parent>AmmoAdvanced</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberHighCaliber</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_Bolter998</defName>
		<label>.998 Cal Bolter</label>
		<ammoTypes>
			<Ammo_Bolter998_Standard>Bullet_Bolter998_Standard</Ammo_Bolter998_Standard>
			<Ammo_Bolter998_Inferno>Bullet_Bolter998_Inferno</Ammo_Bolter998_Inferno>
			<Ammo_Bolter998_MetalStorm>Bullet_Bolter998_MetalStorm</Ammo_Bolter998_MetalStorm>
			<Ammo_Bolter998_Kraken>Bullet_Bolter998_Kraken</Ammo_Bolter998_Kraken>
			<Ammo_Bolter998_Tempest>Bullet_Bolter998_Tempest</Ammo_Bolter998_Tempest>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="AmmoBolter998Base" ParentName="AmmoBase" Abstract="True">
		<description>A .998 caliber, gryojet-stabilized projectile with an explosive charge and hardened tip, fired from most patterns of Astartes heavy bolters.</description>
		<statBases>
			<Mass>0.385</Mass>
			<Bulk>0.15</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
			<li>CE_AutoEnableCrafting_GWAmmoBench</li>
			<li>CE_40K_HeavyAmmo</li>
		</tradeTags>
		<thingCategories>
			<li>AmmoBolter998</li>
		</thingCategories>
		<stackLimit>2000</stackLimit>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoBolter998Base">
		<defName>Ammo_Bolter998_Standard</defName>
		<label>.998 cal bolter shell (Standard)</label>
		<graphicData>
			<texPath>ThirdParty/Warhammer/Ammo/HeavyBolter/Standard</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>Standard</ammoClass>
		<cookOffProjectile>Bullet_Bolter998_Standard</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoBolter998Base">
		<defName>Ammo_Bolter998_Inferno</defName>
		<label>.998 cal bolter shell (Inferno)</label>
		<graphicData>
			<texPath>ThirdParty/Warhammer/Ammo/HeavyBolter/Inferno</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>Inferno</ammoClass>
		<cookOffProjectile>Bullet_Bolter998_Inferno</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoBolter998Base">
		<defName>Ammo_Bolter998_MetalStorm</defName>
		<label>.998 cal bolter shell (Metal Storm)</label>
		<graphicData>
			<texPath>ThirdParty/Warhammer/Ammo/HeavyBolter/MetalStorm</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>MetalStorm</ammoClass>
		<cookOffProjectile>Bullet_Bolter998_MetalStorm</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoBolter998Base">
		<defName>Ammo_Bolter998_Kraken</defName>
		<label>.998 cal bolter shell (Kraken)</label>
		<graphicData>
			<texPath>ThirdParty/Warhammer/Ammo/HeavyBolter/Kraken</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>Kraken</ammoClass>
		<cookOffProjectile>Bullet_Bolter998_Kraken</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoBolter998Base">
		<defName>Ammo_Bolter998_Tempest</defName>
		<label>.998 cal bolter shell (Tempest)</label>
		<graphicData>
			<texPath>ThirdParty/Warhammer/Ammo/HeavyBolter/Tempest</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>Tempest</ammoClass>
		<cookOffProjectile>Bullet_Bolter998_Tempest</cookOffProjectile>
	</ThingDef>

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

	<ThingDef Name="BaseBolter998Bullet" ParentName="BaseExplosiveBullet" Abstract="true">
		<graphicData>
			<texPath>Things/Projectile/Bullet_Big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<thingClass>CombatExtended.BulletCE</thingClass>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<speed>129</speed>
			<dropsCasings>false</dropsCasings>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseBolter998Bullet">
		<defName>Bullet_Bolter998_Standard</defName>
		<label>.998 cal bolt (Standard)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>72</damageAmountBase>
			<armorPenetrationSharp>35</armorPenetrationSharp>
			<armorPenetrationBlunt>908.38</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>50</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseBolter998Bullet">
		<defName>Bullet_Bolter998_Inferno</defName>
		<label>.998 cal bolt (Inferno)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>57</damageAmountBase>
			<armorPenetrationSharp>35</armorPenetrationSharp>
			<armorPenetrationBlunt>908.38</armorPenetrationBlunt>
		</projectile>
		<comps>
			<li Class="CombatExtended.CompProperties_ExplosiveCE">
				<explosiveDamageType>PrometheumFlame</explosiveDamageType>
				<damageAmountBase>56</damageAmountBase>
				<explosiveRadius>0.5</explosiveRadius>
				<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
				<preExplosionSpawnThingDef>FilthPrometheum</preExplosionSpawnThingDef>
				<preExplosionSpawnChance>1</preExplosionSpawnChance>
			</li>
		</comps>
	</ThingDef>

	<ThingDef ParentName="BaseBolter998Bullet">
		<defName>Bullet_Bolter998_MetalStorm</defName>
		<label>.998 cal bolt (Metal Storm)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<explosionRadius>1.5</explosionRadius>
			<damageDef>Bomb</damageDef>
			<damageAmountBase>58</damageAmountBase>
			<armorPenetrationSharp>17.5</armorPenetrationSharp>
			<armorPenetrationBlunt>59.81</armorPenetrationBlunt>
			<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
		</projectile>
		<comps>
			<li Class="CombatExtended.CompProperties_Fragments">
				<fragments>
					<Fragment_Medium>12</Fragment_Medium>
				</fragments>
			</li>
		</comps>
	</ThingDef>

	<ThingDef ParentName="BaseBolter998Bullet">
		<defName>Bullet_Bolter998_Kraken</defName>
		<label>.998 cal bolt (Kraken)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<damageAmountBase>46</damageAmountBase>
			<armorPenetrationSharp>70</armorPenetrationSharp>
			<armorPenetrationBlunt>908.38</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>25</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseBolter998Bullet">
		<defName>Bullet_Bolter998_Tempest</defName>
		<label>.998 cal bolt (Tempest)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<damageAmountBase>46</damageAmountBase>
			<armorPenetrationSharp>35</armorPenetrationSharp>
			<armorPenetrationBlunt>908.38</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>EMP</def>
					<amount>21</amount>
				</li>
			</secondaryDamage>
			<empShieldBreakChance>1</empShieldBreakChance>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Bolter998_Standard</defName>
		<label>make .998 Cal Bolter (standard) shell x200</label>
		<description>Craft 200 .998 Cal Bolter (standard) shells.</description>
		<jobString>Making .998 Cal Bolter (standard) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>10</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>43</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>40</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>19</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>FSX</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Bolter998_Standard>200</Ammo_Bolter998_Standard>
		</products>
		<workAmount>44400</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Bolter998_Inferno</defName>
		<label>make .998 Cal Bolter (inferno) shell x200</label>
		<description>Craft 200 .998 Cal Bolter (inferno) shells.</description>
		<jobString>Making .998 Cal Bolter (inferno) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>10</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>43</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>35</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>19</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>Prometheum</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Bolter998_Inferno>200</Ammo_Bolter998_Inferno>
		</products>
		<workAmount>42000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Bolter998_MetalStorm</defName>
		<label>make .998 Cal Bolter (metal storm) shell x200</label>
		<description>Craft 200 .998 Cal Bolter (metal storm) shells.</description>
		<jobString>Making .998 Cal Bolter (metal storm) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>20</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>43</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>20</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>19</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>FSX</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Bolter998_MetalStorm>200</Ammo_Bolter998_MetalStorm>
		</products>
		<workAmount>36000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Bolter998_Kraken</defName>
		<label>make .998 Cal Bolter (kraken) shell x200</label>
		<description>Craft 200 .998 Cal Bolter (kraken) shells.</description>
		<jobString>Making .998 Cal Bolter (kraken) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>40</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>43</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>40</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>19</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>FSX</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Bolter998_Kraken>200</Ammo_Bolter998_Kraken>
		</products>
		<workAmount>48000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Bolter998_Tempest</defName>
		<label>make .998 Cal Bolter (tempest) shell x200</label>
		<description>Craft 200 .998 Cal Bolter (tempest) shells.</description>
		<jobString>Making .998 Cal Bolter (tempest) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>10</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>43</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>26</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Bolter998_Tempest>200</Ammo_Bolter998_Tempest>
		</products>
		<workAmount>30240</workAmount>
	</RecipeDef>

</Defs>
