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

	<!-- only loaded if Odyssey is not present -->
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="ACPFlamingo"]/statBases</xpath>
		<match Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="ACPFlamingo"]/statBases</xpath>
			<value>
				<MeleeDodgeChance>0.22</MeleeDodgeChance>
				<MeleeCritChance>0.11</MeleeCritChance>
				<MeleeParryChance>0.05</MeleeParryChance>
			</value>
		</match>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="ACPFlamingo"]/tools</xpath>
		<match Class="PatchOperationReplace">
			<xpath>Defs/ThingDef[defName="ACPFlamingo"]/tools</xpath>
			<value>
				<tools>
					<li Class="CombatExtended.ToolCE">
						<label>claws</label>
						<capacities>
							<li>Scratch</li>
						</capacities>
						<power>5</power>
						<cooldownTime>1.65</cooldownTime>
						<linkedBodyPartsGroup>Feet</linkedBodyPartsGroup>
						<surpriseAttack>
							<extraMeleeDamages>
								<li>
									<def>Stun</def>
									<amount>20</amount>
								</li>
							</extraMeleeDamages>
						</surpriseAttack>
						<armorPenetrationSharp>0.1</armorPenetrationSharp>
						<armorPenetrationBlunt>0.480</armorPenetrationBlunt>
					</li>
					<li Class="CombatExtended.ToolCE">
						<capacities>
							<li>Bite</li>
						</capacities>
						<power>4</power>
						<cooldownTime>2.08</cooldownTime>
						<linkedBodyPartsGroup>Beak</linkedBodyPartsGroup>
						<armorPenetrationSharp>0.01</armorPenetrationSharp>
						<armorPenetrationBlunt>0.480</armorPenetrationBlunt>
					</li>
					<li Class="CombatExtended.ToolCE">
						<label>head</label>
						<capacities>
							<li>Blunt</li>
						</capacities>
						<power>2</power>
						<cooldownTime>2.08</cooldownTime>
						<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
						<chanceFactor>0.2</chanceFactor>
						<armorPenetrationBlunt>0.480</armorPenetrationBlunt>
					</li>
				</tools>
			</value>
		</match>
	</Operation>

</Patch>