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

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

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_Bolter75</defName>
		<label>.75 Cal Bolter</label>
		<ammoTypes>
			<Ammo_Bolter75_Standard>Bullet_Bolter75_Standard</Ammo_Bolter75_Standard>
			<Ammo_Bolter75_Inferno>Bullet_Bolter75_Inferno</Ammo_Bolter75_Inferno>
			<Ammo_Bolter75_MetalStorm>Bullet_Bolter75_MetalStorm</Ammo_Bolter75_MetalStorm>
			<Ammo_Bolter75_Kraken>Bullet_Bolter75_Kraken</Ammo_Bolter75_Kraken>
			<Ammo_Bolter75_Tempest>Bullet_Bolter75_Tempest</Ammo_Bolter75_Tempest>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<!-- For Warhammer 40k - Imperium Weaponry -->
	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_Bolter75_Relic</defName>
		<label>.75 Cal Bolter</label>
		<ammoTypes>
			<Ammo_Bolter75_Standard>Bullet_Bolter75_Standard_Relic</Ammo_Bolter75_Standard>
			<Ammo_Bolter75_Inferno>Bullet_Bolter75_Inferno_Relic</Ammo_Bolter75_Inferno>
			<Ammo_Bolter75_MetalStorm>Bullet_Bolter75_MetalStorm_Relic</Ammo_Bolter75_MetalStorm>
			<Ammo_Bolter75_Kraken>Bullet_Bolter75_Kraken_Relic</Ammo_Bolter75_Kraken>
			<Ammo_Bolter75_Tempest>Bullet_Bolter75_Tempest_Relic</Ammo_Bolter75_Tempest>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="AmmoBolter75Base" ParentName="SmallAmmoBase" Abstract="True">
		<description>A .75 caliber, gryojet-stabilized projectile with an explosive charge and hardened tip, fired from most patterns of Astartes bolters.</description>
		<statBases>
			<Mass>0.1</Mass>
			<Bulk>0.08</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting</li>
			<li>CE_AutoEnableCrafting_GWAmmoBench</li>
			<li>CE_40K_MediumAmmo</li>
		</tradeTags>
		<thingCategories>
			<li>AmmoBolter75</li>
		</thingCategories>
		<stackLimit>5000</stackLimit>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoBolter75Base">
		<defName>Ammo_Bolter75_Standard</defName>
		<label>.75 cal bolter shell (Standard)</label>
		<graphicData>
			<texPath>ThirdParty/Warhammer/Ammo/Bolter/Standard</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>Standard</ammoClass>
		<cookOffProjectile>Bullet_Bolter75_Standard</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoBolter75Base">
		<defName>Ammo_Bolter75_Inferno</defName>
		<label>.75 cal bolter shell (Inferno)</label>
		<graphicData>
			<texPath>ThirdParty/Warhammer/Ammo/Bolter/Inferno</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>Inferno</ammoClass>
		<cookOffProjectile>Bullet_Bolter75_Inferno</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoBolter75Base">
		<defName>Ammo_Bolter75_MetalStorm</defName>
		<label>.75 cal bolter shell (Metal Storm)</label>
		<graphicData>
			<texPath>ThirdParty/Warhammer/Ammo/Bolter/MetalStorm</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>MetalStorm</ammoClass>
		<cookOffProjectile>Bullet_Bolter75_MetalStorm</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoBolter75Base">
		<defName>Ammo_Bolter75_Kraken</defName>
		<label>.75 cal bolter shell (Kraken)</label>
		<graphicData>
			<texPath>ThirdParty/Warhammer/Ammo/Bolter/Kraken</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>Kraken</ammoClass>
		<cookOffProjectile>Bullet_Bolter75_Kraken</cookOffProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="AmmoBolter75Base">
		<defName>Ammo_Bolter75_Tempest</defName>
		<label>.75 cal bolter shell (Tempest)</label>
		<graphicData>
			<texPath>ThirdParty/Warhammer/Ammo/Bolter/Tempest</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>Tempest</ammoClass>
		<cookOffProjectile>Bullet_Bolter75_Tempest</cookOffProjectile>
	</ThingDef>

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

	<ThingDef Name="BaseBolter75Bullet" 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="BaseBolter75Bullet">
		<defName>Bullet_Bolter75_Standard</defName>
		<label>.75 cal bolt (standard)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>49</damageAmountBase>
			<armorPenetrationSharp>30</armorPenetrationSharp>
			<armorPenetrationBlunt>384.48</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>30</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseBolter75Bullet">
		<defName>Bullet_Bolter75_Inferno</defName>
		<label>.75 cal bolt (inferno)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>38</damageAmountBase>
			<armorPenetrationSharp>30</armorPenetrationSharp>
			<armorPenetrationBlunt>384.48</armorPenetrationBlunt>
		</projectile>
		<comps>
			<li Class="CombatExtended.CompProperties_ExplosiveCE">
				<explosiveDamageType>PrometheumFlame</explosiveDamageType>
				<damageAmountBase>33</damageAmountBase>
				<explosiveRadius>0.5</explosiveRadius>
				<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
				<preExplosionSpawnThingDef>FilthPrometheum</preExplosionSpawnThingDef>
				<preExplosionSpawnChance>1</preExplosionSpawnChance>
			</li>
		</comps>
	</ThingDef>

	<ThingDef ParentName="BaseBolter75Bullet">
		<defName>Bullet_Bolter75_MetalStorm</defName>
		<label>.75 cal bolt (metal storm)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<explosionRadius>1.5</explosionRadius>
			<damageDef>Bomb</damageDef>
			<damageAmountBase>49</damageAmountBase>
			<armorPenetrationSharp>15</armorPenetrationSharp>
			<armorPenetrationBlunt>39.494</armorPenetrationBlunt>
			<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
		</projectile>
		<comps>
			<li Class="CombatExtended.CompProperties_Fragments">
				<fragments>
					<Fragment_Medium>6</Fragment_Medium>
				</fragments>
			</li>
		</comps>
	</ThingDef>

	<ThingDef ParentName="BaseBolter75Bullet">
		<defName>Bullet_Bolter75_Kraken</defName>
		<label>.75 cal bolt (kraken)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<damageAmountBase>31</damageAmountBase>
			<armorPenetrationSharp>60</armorPenetrationSharp>
			<armorPenetrationBlunt>384.48</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>15</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseBolter75Bullet">
		<defName>Bullet_Bolter75_Tempest</defName>
		<label>.75 cal bolt (tempest)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<damageAmountBase>31</damageAmountBase>
			<armorPenetrationSharp>30</armorPenetrationSharp>
			<armorPenetrationBlunt>384.48</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>EMP</def>
					<amount>12</amount>
				</li>
			</secondaryDamage>
			<empShieldBreakChance>0.80</empShieldBreakChance>
		</projectile>
	</ThingDef>

	<!-- For Warhammer 40k - Imperium Weaponry -->
	<ThingDef Name="BaseBolter75Bullet_Relic" ParentName="BaseBolter75Bullet" Abstract="true">
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>135</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseBolter75Bullet">
		<defName>Bullet_Bolter75_Standard_Relic</defName>
		<label>.75 cal bolt (standard)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>49</damageAmountBase>
			<armorPenetrationSharp>33</armorPenetrationSharp>
			<armorPenetrationBlunt>422.93</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>30</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseBolter75Bullet">
		<defName>Bullet_Bolter75_Inferno_Relic</defName>
		<label>.75 cal bolt (inferno)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageAmountBase>38</damageAmountBase>
			<armorPenetrationSharp>33</armorPenetrationSharp>
			<armorPenetrationBlunt>422.93</armorPenetrationBlunt>
		</projectile>
		<comps>
			<li Class="CombatExtended.CompProperties_ExplosiveCE">
				<explosiveDamageType>PrometheumFlame</explosiveDamageType>
				<damageAmountBase>33</damageAmountBase>
				<explosiveRadius>0.5</explosiveRadius>
				<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
				<preExplosionSpawnThingDef>FilthPrometheum</preExplosionSpawnThingDef>
				<preExplosionSpawnChance>1</preExplosionSpawnChance>
			</li>
		</comps>
	</ThingDef>

	<ThingDef ParentName="BaseBolter75Bullet">
		<defName>Bullet_Bolter75_MetalStorm_Relic</defName>
		<label>.75 cal bolt (metal storm)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<explosionRadius>1.5</explosionRadius>
			<damageDef>Bomb</damageDef>
			<damageAmountBase>49</damageAmountBase>
			<armorPenetrationSharp>16.5</armorPenetrationSharp>
			<armorPenetrationBlunt>43.44</armorPenetrationBlunt>
			<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
		</projectile>
		<comps>
			<li Class="CombatExtended.CompProperties_Fragments">
				<fragments>
					<Fragment_Medium>6</Fragment_Medium>
				</fragments>
			</li>
		</comps>
	</ThingDef>

	<ThingDef ParentName="BaseBolter75Bullet">
		<defName>Bullet_Bolter75_Kraken_Relic</defName>
		<label>.75 cal bolt (kraken)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<damageAmountBase>31</damageAmountBase>
			<armorPenetrationSharp>66</armorPenetrationSharp>
			<armorPenetrationBlunt>422.93</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>Bomb_Secondary</def>
					<amount>15</amount>
				</li>
			</secondaryDamage>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseBolter75Bullet">
		<defName>Bullet_Bolter75_Tempest_Relic</defName>
		<label>.75 cal bolt (tempest)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bullet</damageDef>
			<damageAmountBase>31</damageAmountBase>
			<armorPenetrationSharp>33</armorPenetrationSharp>
			<armorPenetrationBlunt>422.93</armorPenetrationBlunt>
			<secondaryDamage>
				<li>
					<def>EMP</def>
					<amount>12</amount>
				</li>
			</secondaryDamage>
			<empShieldBreakChance>1</empShieldBreakChance>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Bolter75_Standard</defName>
		<label>make .75 Cal Bolter (standard) shell x200</label>
		<description>Craft 200 .75 Cal Bolter (standard) shells.</description>
		<jobString>Making .75 Cal Bolter (standard) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>19</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>17</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>FSX</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Bolter75_Standard>200</Ammo_Bolter75_Standard>
		</products>
		<workAmount>21840</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Bolter75_Inferno</defName>
		<label>make .75 Cal Bolter (inferno) shell x200</label>
		<description>Craft 200 .75 Cal Bolter (inferno) shells.</description>
		<jobString>Making .75 Cal Bolter (inferno) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>19</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>15</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>Prometheum</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Bolter75_Inferno>200</Ammo_Bolter75_Inferno>
		</products>
		<workAmount>20880</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Bolter75_MetalStorm</defName>
		<label>make .75 Cal Bolter (metal storm) shell x200</label>
		<description>Craft 200 .75 Cal Bolter (metal storm) shells.</description>
		<jobString>Making .75 Cal Bolter (metal storm) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>8</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>19</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>9</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>FSX</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Bolter75_MetalStorm>200</Ammo_Bolter75_MetalStorm>
		</products>
		<workAmount>18480</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Bolter75_Kraken</defName>
		<label>make .75 Cal Bolter (kraken) shell x200</label>
		<description>Craft 200 .75 Cal Bolter (kraken) shells.</description>
		<jobString>Making .75 Cal Bolter (kraken) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>16</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>19</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>17</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>12</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>FSX</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Bolter75_Kraken>200</Ammo_Bolter75_Kraken>
		</products>
		<workAmount>23280</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_Bolter75_Tempest</defName>
		<label>make .75 Cal Bolter (tempest) shell x200</label>
		<description>Craft 200 .75 Cal Bolter (tempest) shells.</description>
		<jobString>Making .75 Cal Bolter (tempest) shells.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Uranium</li>
					</thingDefs>
				</filter>
				<count>19</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>15</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Uranium</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_Bolter75_Tempest>200</Ammo_Bolter75_Tempest>
		</products>
		<workAmount>15840</workAmount>
	</RecipeDef>

</Defs>
