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

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Vanilla Psycasts Expanded</li>
		</mods>
		<match Class="PatchOperationFindMod">
			<mods>
				<li>Ideology</li>
			</mods>

			<match Class="PatchOperationSequence">
				<operations>

					<li Class="PatchOperationAddModExtension">
						<xpath>Defs/ThingDef[defName="AA_Summoned_Eyeling"]</xpath>
						<value>
							<li Class="CombatExtended.RacePropertiesExtensionCE">
								<bodyShape>Quadruped</bodyShape>
							</li>
						</value>
					</li>

					<li Class="PatchOperationAdd">
						<xpath>Defs/ThingDef[defName="AA_Summoned_Eyeling"]/statBases</xpath>
						<value>
							<MeleeDodgeChance>0.1</MeleeDodgeChance>
							<MeleeCritChance>0.1</MeleeCritChance>
							<MeleeParryChance>0.1</MeleeParryChance>
						</value>
					</li>

					<li Class="PatchOperationReplace">
						<xpath>Defs/ThingDef[defName="AA_Summoned_Eyeling"]/tools</xpath>
						<value>
							<tools>
								<li Class="CombatExtended.ToolCE">
									<capacities>
										<li>AA_ToxicBite</li>
									</capacities>
									<power>12</power>
									<cooldownTime>1.65</cooldownTime>
									<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
									<surpriseAttack>
										<extraMeleeDamages>
											<li>
												<def>Stun</def>
												<amount>10</amount>
											</li>
										</extraMeleeDamages>
									</surpriseAttack>
									<armorPenetrationSharp>1.0</armorPenetrationSharp>
									<armorPenetrationBlunt>0.544</armorPenetrationBlunt>
								</li>
							</tools>
						</value>
					</li>

				</operations>
			</match>
		</match>
	</Operation>

</Patch>