<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/DamageDef[defName="AA_AcidSpit" or defName="AA_SecondaryAcidBurn" or defName="AA_PermanentBurn"]</xpath>
		<value>
			<li Class="CombatExtended.DamageDefExtensionCE">
				<harmOnlyOutsideLayers>true</harmOnlyOutsideLayers>
				<isAmbientDamage>true</isAmbientDamage>
			</li>
		</value>
	</Operation>

	<!-- Buffing some Hediffs -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/DamageDef[defName="AA_ToxicSting" or
			defName="AA_InfectedClaws" or
			defName="AA_ToxicBite" or
			defName="AA_ToxicBolt" or
			defName="AA_BlackHiveBolt"]/additionalHediffs/li[hediff="AA_ToxicBuildup"]/severityPerDamageDealt </xpath>
		<value>
			<severityPerDamageDealt>0.01</severityPerDamageDealt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/DamageDef[defName="AA_VeryToxicSting"]/additionalHediffs/li[hediff="AA_ToxicBuildup"]/severityPerDamageDealt</xpath>
		<value>
			<severityPerDamageDealt>0.03</severityPerDamageDealt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/DamageDef[defName="AA_ParalysingBite"]/additionalHediffs/li[hediff="AA_Paralysis"]/severityPerDamageDealt</xpath>
		<value>
			<severityPerDamageDealt>0.02</severityPerDamageDealt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/DamageDef[defName="AA_Electric"]/additionalHediffs/li[hediff="AA_Electric"]/severityPerDamageDealt</xpath>
		<value>
			<severityPerDamageDealt>0.025</severityPerDamageDealt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/DamageDef[defName="AA_SwarmlingClaws"]/additionalHediffs/li[hediff="AA_SwarmlingImplantation"]/severityPerDamageDealt</xpath>
		<value>
			<severityPerDamageDealt>0.0003</severityPerDamageDealt>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/DamageDef[defName="AA_AcidSpit"]</xpath>
		<value>
			<soundExplosion>AA_AcidSound</soundExplosion>
		</value>
	</Operation>

</Patch>