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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VFEI_Shell_PsychicWarhead"]</xpath>

		<value>
			<ThingDef Class="CombatExtended.AmmoDef" ParentName="81mmMortarShellBase">
				<defName>VFEI_Shell_PsychicWarhead</defName>
				<label>81mm mortar shell (Psychic warhead)</label>
				<graphicData>
					<texPath>Things/Item/VFEI_PsychicWarhead</texPath>
					<graphicClass>Graphic_StackCount</graphicClass>
				</graphicData>
				<statBases>
					<MarketValue>1000</MarketValue>
					<Mass>4.1</Mass>
					<Bulk>13.34</Bulk>
				</statBases>
				<ammoClass>GrenadePsyMadness</ammoClass>
				<comps>
					<li Class="CompProperties_Explosive">
						<explosiveRadius>2.9</explosiveRadius>
						<explosiveDamageType>VFEI_PsychicNoDamage</explosiveDamageType>
						<damageAmountBase>50</damageAmountBase>
						<!--<explosiveExpandPerStackcount>0.4</explosiveExpandPerStackcount>-->
						<startWickHitPointsPercent>0.7</startWickHitPointsPercent>
						<applyDamageToExplosionCellsNeighbors>true</applyDamageToExplosionCellsNeighbors>
						<explodeOnKilled>True</explodeOnKilled>
						<wickTicks>30~60</wickTicks>
					</li>
				</comps>
			</ThingDef>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="VFEI_Bullet_Shell_PsychicWarhead"]</xpath>

		<value>
			<ThingDef ParentName="Base81mmMortarShell">
				<defName>VFEI_Bullet_Shell_PsychicWarhead</defName>
				<label>81mm mortar shell (Psychic Warhead)</label>
				<graphicData>
					<texPath>Things/Projectile/ShellArchotechInsanity</texPath>
					<graphicClass>Graphic_Single</graphicClass>
				</graphicData>
				<projectile Class="CombatExtended.ProjectilePropertiesCE">
					<damageDef>VFEI_PsychicDamage</damageDef>
					<damageAmountBase>50</damageAmountBase>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>0</armorPenetrationBlunt>
					<flyOverhead>true</flyOverhead>
					<explosionRadius>5.5</explosionRadius>
				</projectile>
			</ThingDef>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/CombatExtended.AmmoSetDef[defName="AmmoSet_81mmMortarShell"]/ammoTypes</xpath>

		<value>
			<VFEI_Shell_PsychicWarhead>VFEI_Bullet_Shell_PsychicWarhead</VFEI_Shell_PsychicWarhead>
		</value>
	</Operation>

</Patch>