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

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

		<match Class="PatchOperationSequence">
			<operations>

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

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="AA_OcularOriginator"]/statBases</xpath>
					<value>
						<MeleeDodgeChance>0.3</MeleeDodgeChance>
						<MeleeCritChance>0.04</MeleeCritChance>
						<MeleeParryChance>0.3</MeleeParryChance>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="AA_OcularOriginator"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>tentacles</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>5</power>
								<cooldownTime>0.35</cooldownTime>
								<linkedBodyPartsGroup>Arms</linkedBodyPartsGroup>
								<armorPenetrationBlunt>0.7</armorPenetrationBlunt>
							</li>
						</tools>
					</value>
				</li>
			</operations>
		</match>
	</Operation>

</Patch>