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

	<ThingCategoryDef>
		<defName>AmmoML77CE</defName>
		<label>ML-77 Missile</label>
		<parent>AmmoRockets</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberRocket</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_GethRifle</defName>
		<label>Geth Thermal Clip</label>
		<ammoTypes>
			<Ammo_MEG>Bullet_GethRifle</Ammo_MEG>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_GethSMG</defName>
		<label>Geth Thermal Clip</label>
		<ammoTypes>
			<Ammo_MEG>Bullet_GethSMG</Ammo_MEG>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_GethShotgun</defName>
		<label>Geth Thermal Clip</label>
		<ammoTypes>
			<Ammo_MEG>Bullet_GethShotgun</Ammo_MEG>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_M98_Geth</defName>
		<label>Geth Thermal Clip</label>
		<ammoTypes>
			<Ammo_MEG>Bullet_M98_Geth</Ammo_MEG>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_GethSniper</defName>
		<label>Geth Thermal Clip</label>
		<ammoTypes>
			<Ammo_MEG>Bullet_GethSniper</Ammo_MEG>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_GethSpitfire</defName>
		<label>Geth Thermal Clip</label>
		<ammoTypes>
			<Ammo_MEG>Bullet_GethSpitfire</Ammo_MEG>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_ML77CE</defName>
		<label>ML-77 Missile</label>
		<ammoTypes>
			<Ammo_ML77CE>Bullet_ML77CE</Ammo_ML77CE>
		</ammoTypes>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="SpacerSmallAmmoBase">
		<defName>Ammo_MEG</defName>
		<label>Geth Thermal clip</label>
		<description>Thermal clips designed to fit most geth weapons. They are, however, incompatible with weapons made by other races.</description>
		<statBases>
			<Mass>0.01</Mass>
			<Bulk>0.01</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade_Sellable</li>
			<li>CE_AutoEnableCrafting_FabricationBench</li>
			<!-- Plasma ammo can't be handloaded, and the containment cell must be precision-machined anyway -->
		</tradeTags>
		<thingCategories>
			<li>AmmoPlasmaCellRifle</li>
		</thingCategories>
		<graphicData>
			<texPath>ThirdParty/MassEffect/Heatsink</texPath>
			<graphicClass>CombatExtended.Graphic_StackCountRanged</graphicClass>
		</graphicData>
		<ammoClass>Plasma</ammoClass>
	</ThingDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="RPG7GrenadeBase" ParentName="MediumAmmoBase" Abstract="True">
		<description>Rocket-propelled missile designed for the ML-77. After being fired a rocket motor kicks in to propel the grenade further.</description>
		<statBases>
			<MaxHitPoints>150</MaxHitPoints>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade_Sellable</li>
			<li>CE_AutoEnableCrafting_FabricationBench</li>
		</tradeTags>
		<thingCategories>
			<li>AmmoML77CE</li>
		</thingCategories>
		<stackLimit>20</stackLimit>
		<cookOffFlashScale>40</cookOffFlashScale>
		<cookOffSound>MortarBomb_Explode</cookOffSound>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="RPG7GrenadeBase">
		<defName>Ammo_ML77CE</defName>
		<label>ML-77 Missile</label>
		<graphicData>
			<texPath>Things/Ammo/RPG/HEAT</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<statBases>
			<Mass>2.25</Mass>
			<Bulk>3.5</Bulk>
		</statBases>
		<ammoClass>RocketHEAT</ammoClass>
		<detonateProjectile>Bullet_ML77CE</detonateProjectile>
	</ThingDef>

	<ThingCategoryDef>
		<defName>AmmoGeth</defName>
		<label>Geth thermal clip</label>
		<parent>AmmoAdvanced</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberPlasmaMedium</iconPath>
	</ThingCategoryDef>

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

	<ThingDef ParentName="BaseRPG7Grenade">
		<defName>Bullet_ML77CE</defName>
		<label>ML77 Missile</label>
		<graphicData>
			<texPath>Things/Projectile/Rocket/M72LAW</texPath>
			<graphicClass>Graphic_Single</graphicClass>
			<shaderType>TransparentPostLight</shaderType>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>60</speed>
			<damageDef>Bullet</damageDef>
			<damageAmountBase>160</damageAmountBase>
			<armorPenetrationSharp>300</armorPenetrationSharp>
			<armorPenetrationBlunt>31.584</armorPenetrationBlunt>
			<soundAmbient>RocketPropelledLoop_Small</soundAmbient>
		</projectile>
		<comps>
			<li Class="CombatExtended.CompProperties_ExplosiveCE">
				<damageAmountBase>90</damageAmountBase>
				<explosiveDamageType>Bomb</explosiveDamageType>
				<explosiveRadius>1.5</explosiveRadius>
				<explosionSound>MortarBomb_Explode</explosionSound>
				<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
			</li>
			<li Class="CombatExtended.CompProperties_Fragments">
				<fragments>
					<Fragment_Large>5</Fragment_Large>
					<Fragment_Small>33</Fragment_Small>
				</fragments>
			</li>
		</comps>
	</ThingDef>

	<ThingDef ParentName="Base6x24mmChargedBullet">
		<defName>Bullet_GethRifle</defName>
		<label>phasic slugs</label>
		<graphicData>
			<texPath>Projectile/PulseRifleProjectile</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>240</speed>
			<damageDef>Bullet</damageDef>
			<damageAmountBase>11</damageAmountBase>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>2</amount>
				</li>
			</secondaryDamage>
			<armorPenetrationSharp>13</armorPenetrationSharp>
			<armorPenetrationBlunt>21.8</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base6x24mmChargedBullet">
		<defName>Bullet_GethSMG</defName>
		<label>superconducting toroids</label>
		<graphicData>
			<texPath>Projectile/PulseRifleProjectile</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>180</speed>
			<damageDef>Bullet</damageDef>
			<damageAmountBase>8</damageAmountBase>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>2</amount>
				</li>
			</secondaryDamage>
			<armorPenetrationSharp>9</armorPenetrationSharp>
			<armorPenetrationBlunt>15.8</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base6x24mmChargedBullet">
		<defName>Bullet_GethShotgun</defName>
		<label>superconducting projectiles</label>
		<graphicData>
			<texPath>Things/Projectile/Charged/ChargeShot</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>160</speed>
			<damageDef>Bullet</damageDef>
			<damageAmountBase>22</damageAmountBase>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>4</amount>
				</li>
			</secondaryDamage>
			<armorPenetrationSharp>9</armorPenetrationSharp>
			<armorPenetrationBlunt>18.8</armorPenetrationBlunt>
			<pelletCount>3</pelletCount>
			<spreadMult>17.8</spreadMult>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base6x24mmChargedBullet">
		<defName>Bullet_M98_Geth</defName>
		<label>bullet</label>
		<graphicData>
			<texPath>Things/Projectile/Bullet_Big</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>480</speed>
			<damageDef>Bullet</damageDef>
			<damageAmountBase>70</damageAmountBase>
			<armorPenetrationSharp>44</armorPenetrationSharp>
			<armorPenetrationBlunt>734.8</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base6x24mmChargedBullet">
		<defName>Bullet_GethSniper</defName>
		<label>ferrofluid</label>
		<graphicData>
			<texPath>Projectile/JavelinProjectile</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>360</speed>
			<damageDef>Bullet</damageDef>
			<damageAmountBase>30</damageAmountBase>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>11</amount>
				</li>
			</secondaryDamage>
			<armorPenetrationSharp>32</armorPenetrationSharp>
			<armorPenetrationBlunt>48.8</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base6x24mmChargedBullet">
		<defName>Bullet_GethSpitfire</defName>
		<label>superconducting toroids</label>
		<graphicData>
			<texPath>Things/Projectile/Charged/ChargeShot</texPath>
			<graphicClass>Graphic_Single</graphicClass>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>200</speed>
			<damageDef>Bullet</damageDef>
			<damageAmountBase>13</damageAmountBase>
			<secondaryDamage>
				<li>
					<def>Flame_Secondary</def>
					<amount>3</amount>
				</li>
			</secondaryDamage>
			<armorPenetrationSharp>16</armorPenetrationSharp>
			<armorPenetrationBlunt>29.8</armorPenetrationBlunt>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="BaseExplosiveBullet">
		<defName>Bullet_GethCannon</defName>
		<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
		<label>Geth pulse cannon plasma</label>
		<graphicData>
			<texPath>Projectile/ColossusProjectile</texPath>
			<graphicClass>Graphic_Single</graphicClass>
			<shaderType>TransparentPostLight</shaderType>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bomb</damageDef>
			<damageAmountBase>375</damageAmountBase>
			<armorPenetrationSharp>0</armorPenetrationSharp>
			<armorPenetrationBlunt>0</armorPenetrationBlunt>
			<speed>40</speed>
			<flyOverhead>false</flyOverhead>
			<explosionRadius>4</explosionRadius>
			<soundHitThickRoof>Artillery_HitThickRoof</soundHitThickRoof>
			<soundImpactAnticipate>MortarRound_PreImpact</soundImpactAnticipate>
			<soundAmbient>MortarRound_Ambient</soundAmbient>
			<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="ChargeAmmoRecipeBase">
		<defName>MakeAmmo_MEG</defName>
		<label>make Geth thermal clips</label>
		<description>Craft 100 shots' worth of thermal clips.</description>
		<jobString>Making thermal clips.</jobString>
		<workAmount>5000</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>10</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Plasteel</li>
					</thingDefs>
				</filter>
				<count>3</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_MEG>100</Ammo_MEG>
		</products>
		<researchPrerequisite>PlasmaSMGTechnology</researchPrerequisite>
	</RecipeDef>

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

	<RecipeDef ParentName="AmmoRecipeBase">
		<defName>MakeAmmo_ML77CE</defName>
		<label>make ML77 rockets x2</label>
		<description>Craft 2 ML77 rockets.</description>
		<jobString>Making ML77 rockets.</jobString>
		<workAmount>12000</workAmount>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>100</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>8</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>6</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_ML77CE>2</Ammo_ML77CE>
		</products>
	</RecipeDef>
</Defs>