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

	<ThingCategoryDef>
		<defName>Ammo40x53mmVOG25Grenades</defName>
		<label>40x53mm VOG-25 Grenade</label>
		<parent>AmmoGrenades</parent>
		<iconPath>UI/Icons/ThingCategories/CaliberGrenade</iconPath>
	</ThingCategoryDef>

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

	<CombatExtended.AmmoSetDef>
		<defName>AmmoSet_40x53mmVOG25Grenade</defName>
		<label>40x53mm VOG-25 Grenades</label>
		<ammoTypes>
			<Ammo_40x53mmVOG25Grenade_HE>Bullet_40x53mmVOG25Grenade_HE</Ammo_40x53mmVOG25Grenade_HE>
			<Ammo_40x53mmVOG25Grenade_HE_TFuzed>Bullet_40x53mmVOG25Grenade_HE_TFuzed</Ammo_40x53mmVOG25Grenade_HE_TFuzed>
			<Ammo_40x53mmVOG25Grenade_EMP>Bullet_40x53mmVOG25Grenade_EMP</Ammo_40x53mmVOG25Grenade_EMP>
			<Ammo_40x53mmVOG25Grenade_Smoke>Bullet_40x53mmVOG25Grenade_Smoke</Ammo_40x53mmVOG25Grenade_Smoke>
		</ammoTypes>
		<similarTo>AmmoSet_LauncherGrenade</similarTo>
	</CombatExtended.AmmoSetDef>

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

	<ThingDef Class="CombatExtended.AmmoDef" Name="40x53mmVOG25GrenadeBase" ParentName="MediumAmmoBase" Abstract="True">
		<description>Low velocity caseless grenade fired from handheld grenade launchers.</description>
		<statBases>
			<Mass>0.25</Mass>
			<Bulk>0.39</Bulk>
		</statBases>
		<tradeTags>
			<li>CE_AutoEnableTrade</li>
			<li>CE_AutoEnableCrafting_TableMachining</li>
		</tradeTags>
		<thingCategories>
			<li>Ammo40x53mmVOG25Grenades</li>
		</thingCategories>
		<stackLimit>500</stackLimit>
		<cookOffFlashScale>20</cookOffFlashScale>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="40x53mmVOG25GrenadeBase">
		<defName>Ammo_40x53mmVOG25Grenade_HE</defName>
		<label>40x53mm VOG-25 grenade (HE)</label>
		<graphicData>
			<texPath>Things/Ammo/GrenadeLauncher/HE</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>GrenadeHE</ammoClass>
		<detonateProjectile>Bullet_40x53mmVOG25Grenade_HE</detonateProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="40x53mmVOG25GrenadeBase">
		<defName>Ammo_40x53mmVOG25Grenade_HE_TFuzed</defName>
		<label>40x53mm VOG-25 grenade (HE Time-Fuzed)</label>
		<graphicData>
			<texPath>Things/Ammo/GrenadeLauncher/AIR</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>GrenadeHETF</ammoClass>
		<detonateProjectile>Bullet_40x53mmVOG25Grenade_HE_TFuzed</detonateProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="40x53mmVOG25GrenadeBase">
		<defName>Ammo_40x53mmVOG25Grenade_EMP</defName>
		<label>40x53mm VOG-25 grenade (EMP)</label>
		<graphicData>
			<texPath>Things/Ammo/GrenadeLauncher/EMP</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>GrenadeEMP</ammoClass>
		<generateAllowChance>0.5</generateAllowChance>
		<detonateProjectile>Bullet_40x53mmVOG25Grenade_EMP</detonateProjectile>
	</ThingDef>

	<ThingDef Class="CombatExtended.AmmoDef" ParentName="40x53mmVOG25GrenadeBase">
		<defName>Ammo_40x53mmVOG25Grenade_Smoke</defName>
		<label>40x53mmVOG25 grenade (Smoke)</label>
		<graphicData>
			<texPath>Things/Ammo/GrenadeLauncher/SMK</texPath>
			<graphicClass>Graphic_StackCount</graphicClass>
		</graphicData>
		<ammoClass>Smoke</ammoClass>
		<generateAllowChance>0</generateAllowChance>
		<detonateProjectile>Bullet_40x53mmVOG25Grenade_Smoke</detonateProjectile>
	</ThingDef>

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

	<ThingDef Name="Base40x53mmVOG25GrenadeBullet" ParentName="BaseExplosiveBullet" Abstract="true">
		<thingClass>CombatExtended.ProjectileCE_Explosive</thingClass>
		<graphicData>
			<texPath>Things/Projectile/LauncherShot</texPath>
			<graphicClass>Graphic_Single</graphicClass>
			<drawSize>(0.5,0.5)</drawSize>
		</graphicData>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<speed>26</speed>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base40x53mmVOG25GrenadeBullet">
		<defName>Bullet_40x53mmVOG25Grenade_HE</defName>
		<label>40x536mm VOG-25 grenade (HE)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bomb</damageDef>
			<damageAmountBase>26</damageAmountBase>
			<explosionRadius>1.0</explosionRadius>
			<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
		</projectile>
		<comps>
			<li Class="CombatExtended.CompProperties_Fragments">
				<fragments>
					<Fragment_Small>24</Fragment_Small>
				</fragments>
			</li>
		</comps>
	</ThingDef>

	<ThingDef ParentName="Base40x53mmVOG25GrenadeBullet">
		<defName>Bullet_40x53mmVOG25Grenade_HE_TFuzed</defName>
		<label>40x53mm VOG-25 grenade (HE Time-Fuzed)</label>
		<thingClass>CombatExtended.ProjectileCE_Bursting</thingClass>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Bomb</damageDef>
			<damageAmountBase>26</damageAmountBase>
			<explosionRadius>1.0</explosionRadius>
			<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
			<aimHeightOffset>1.4</aimHeightOffset>
			<armingDelay>2</armingDelay>
			<airburstDistanceOffset>-3</airburstDistanceOffset>
		</projectile>
		<comps>
			<li Class="CombatExtended.CompProperties_Fragments">
				<fragments>
					<Fragment_Small>24</Fragment_Small>
				</fragments>
				<fragAngleRange>-60~-2</fragAngleRange>
				<fragXZAngleRange>-45~45</fragXZAngleRange>
			</li>
		</comps>
	</ThingDef>

	<ThingDef ParentName="Base40x53mmVOG25GrenadeBullet">
		<defName>Bullet_40x53mmVOG25Grenade_EMP</defName>
		<label>40x53mm VOG-25 grenade (EMP)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>EMP</damageDef>
			<damageAmountBase>26</damageAmountBase>
			<explosionRadius>2</explosionRadius>
		</projectile>
	</ThingDef>

	<ThingDef ParentName="Base40x53mmVOG25GrenadeBullet">
		<defName>Bullet_40x53mmVOG25Grenade_Smoke</defName>
		<label>40x53mm VOG-25 grenade (Smoke)</label>
		<projectile Class="CombatExtended.ProjectilePropertiesCE">
			<damageDef>Smoke</damageDef>
			<explosionRadius>2.5</explosionRadius>
			<suppressionFactor>0.0</suppressionFactor>
			<dangerFactor>0.0</dangerFactor>
			<postExplosionGasType>BlindSmoke</postExplosionGasType>
			<preExplosionSpawnChance>1</preExplosionSpawnChance>
		</projectile>
	</ThingDef>

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

	<RecipeDef ParentName="LauncherAmmoRecipeBase">
		<defName>MakeAmmo_40x53mmVOG25Grenade_HE</defName>
		<label>make 40x53mm VOG-25 HE grenades x100</label>
		<description>Craft 100 40x53mm VOG-25 HE grenades.</description>
		<jobString>Making 40x53mm VOG-25 HE grenades.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>50</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>10</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_40x53mmVOG25Grenade_HE>100</Ammo_40x53mmVOG25Grenade_HE>
		</products>
		<workAmount>10200</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="LauncherAmmoRecipeBase">
		<defName>MakeAmmo_40x53mmVOG25Grenade_HE_TFuzed</defName>
		<label>make 40x53mm VOG-25 HE Time-Fuzed grenades x100</label>
		<description>Craft 100 40x53mm VOG-25 HE Time-Fuzed grenades.</description>
		<jobString>Making 40x53mm VOG-25 HE Time-Fuzed grenades.</jobString>
		<researchPrerequisite>CE_AdvancedLaunchers</researchPrerequisite>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>50</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>FSX</li>
					</thingDefs>
				</filter>
				<count>10</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>5</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>FSX</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_40x53mmVOG25Grenade_HE_TFuzed>100</Ammo_40x53mmVOG25Grenade_HE_TFuzed>
		</products>
		<workAmount>12000</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="LauncherAmmoRecipeBase">
		<defName>MakeAmmo_40x53mmVOG25Grenade_EMP</defName>
		<label>make 40x53mm VOG-25 EMP grenades x100</label>
		<description>Craft 100 40x53mm VOG-25 EMP grenades.</description>
		<jobString>Making 40x53mm VOG-25 EMP grenades.</jobString>
		<researchPrerequisites>
			<li>MicroelectronicsBasics</li>
			<li>CE_Launchers</li>
		</researchPrerequisites>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>50</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>13</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_40x53mmVOG25Grenade_EMP>100</Ammo_40x53mmVOG25Grenade_EMP>
		</products>
		<workAmount>12800</workAmount>
	</RecipeDef>

	<RecipeDef ParentName="LauncherAmmoRecipeBase">
		<defName>MakeAmmo_40x53mmVOG25Grenade_Smoke</defName>
		<label>make 40x53mm VOG25 smoke grenades x100</label>
		<description>Craft 100 40x53mmVOG25 smoke grenades.</description>
		<jobString>Making 40x53mmVOG25 smoke grenades.</jobString>
		<ingredients>
			<li>
				<filter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</filter>
				<count>50</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>Prometheum</li>
					</thingDefs>
				</filter>
				<count>4</count>
			</li>
			<li>
				<filter>
					<thingDefs>
						<li>ComponentIndustrial</li>
					</thingDefs>
				</filter>
				<count>2</count>
			</li>
		</ingredients>
		<fixedIngredientFilter>
			<thingDefs>
				<li>Steel</li>
				<li>Prometheum</li>
				<li>ComponentIndustrial</li>
			</thingDefs>
		</fixedIngredientFilter>
		<products>
			<Ammo_40x53mmVOG25Grenade_Smoke>100</Ammo_40x53mmVOG25Grenade_Smoke>
		</products>
		<workAmount>7800</workAmount>
	</RecipeDef>

</Defs>