<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- only loaded if Odyssey is not present -->
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="ACPWalrus"]/statBases</xpath>
		<match Class="PatchOperationAdd">
			<xpath>Defs/ThingDef[defName="ACPWalrus"]/statBases</xpath>
			<value>
				<MeleeDodgeChance>0.06</MeleeDodgeChance>
				<MeleeCritChance>0.1</MeleeCritChance>
				<MeleeParryChance>0.08</MeleeParryChance>
			</value>
		</match>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="ACPWalrus"]/tools</xpath>
		<match Class="PatchOperationReplace">
			<xpath>Defs/ThingDef[defName="ACPWalrus"]/tools</xpath>
			<value>
				<tools>
					<li Class="CombatExtended.ToolCE">
						<label>tusk</label>
						<capacities>
							<li>Cut</li>
						</capacities>
						<power>18</power>
						<cooldownTime>1.89</cooldownTime>
						<linkedBodyPartsGroup>TuskAttackTool</linkedBodyPartsGroup>
						<armorPenetrationSharp>0.01</armorPenetrationSharp>
						<armorPenetrationBlunt>1.250</armorPenetrationBlunt>
					</li>
					<li Class="CombatExtended.ToolCE">
						<label>tusk</label>
						<capacities>
							<li>Stab</li>
						</capacities>
						<power>18</power>
						<cooldownTime>1.41</cooldownTime>
						<chanceFactor>0.65</chanceFactor>
						<linkedBodyPartsGroup>TuskAttackTool_2</linkedBodyPartsGroup>
						<armorPenetrationSharp>0.1</armorPenetrationSharp>
						<armorPenetrationBlunt>2.940</armorPenetrationBlunt>
					</li>
					<li Class="CombatExtended.ToolCE">
						<label>head</label>
						<capacities>
							<li>Blunt</li>
						</capacities>
						<power>10</power>
						<cooldownTime>1.65</cooldownTime>
						<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
						<chanceFactor>0.2</chanceFactor>
						<armorPenetrationBlunt>0.423</armorPenetrationBlunt>
					</li>
				</tools>
			</value>
		</match>
	</Operation>
</Patch>