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

<Patch>

    <Operation Class="PatchOperationFindMod">
        <mods>
            <li>Core</li>
        </mods>

        <match Class="PatchOperationSequence">
            <success>Always</success>
            <operations>
                <li Class="PatchOperationAdd">
					<xpath>/Defs/DamageDef[defName="BombSuper"]</xpath>
					<value>
						<soundExplosion>Explosion_BombSuper_Custom</soundExplosion>
					</value>
                </li>
				<!-- Mods like Combat Extended use the actual sounddef -->
                <li Class="PatchOperationReplace">
                    <xpath>/Defs/SoundDef[defName="Explosion_GiantBomb"]/subSounds/li/grains/li[clipFolderPath="Explosion/GiantExplosion"]/clipFolderPath</xpath>
                    <value>
						<clipFolderPath>Explosions/superbomb_explosion</clipFolderPath>
                    </value>
                </li>
				
                <li Class="PatchOperationReplace">
					<xpath>/Defs/DamageDef[defName="Bomb"]/soundExplosion</xpath>
					<value>
						<soundExplosion>Explosion_Bomb_Custom</soundExplosion>
					</value>
                </li>
				
                <li Class="PatchOperationReplace">
					<xpath>/Defs/DamageDef[defName="Stun"]/soundExplosion</xpath>
					<value>
						<soundExplosion>Explosion_Stun_Custom</soundExplosion>
					</value>
                </li>
				
                <li Class="PatchOperationReplace">
					<xpath>/Defs/DamageDef[defName="Flame"]/soundExplosion</xpath>
					<value>
						<soundExplosion>Explosion_Flame_Custom</soundExplosion>
					</value>
                </li>
				
                <li Class="PatchOperationReplace">
					<xpath>/Defs/DamageDef[defName="EMP"]/soundExplosion</xpath>
					<value>
						<soundExplosion>Explosion_EMP_Custom</soundExplosion>
					</value>
                </li>
				
                <li Class="PatchOperationReplace">
					<xpath>/Defs/DamageDef[defName="Smoke"]/soundExplosion</xpath>
					<value>
						<soundExplosion>Explosion_Smoke_Custom</soundExplosion>
					</value>
                </li>
            </operations>
        </match>
    </Operation>

</Patch>