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

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/ThingDef[defName="ACPPorcupine"]/tools</xpath>
		<match Class="PatchOperationReplace">
			<xpath>Defs/ThingDef[defName="ACPPorcupine"]/tools</xpath>
			<value>
				<tools>
					<li Class="CombatExtended.ToolCE">
						<label>quills</label>
						<capacities>
							<li>Scratch</li>
						</capacities>
						<power>6</power>
						<cooldownTime>1.5</cooldownTime>
						<linkedBodyPartsGroup>Quills</linkedBodyPartsGroup>
						<armorPenetrationBlunt>0.036</armorPenetrationBlunt>
						<armorPenetrationSharp>0.01</armorPenetrationSharp>
					</li>
					<li Class="CombatExtended.ToolCE">
						<label>left claw</label>
						<capacities>
							<li>Scratch</li>
						</capacities>
						<power>6</power>
						<cooldownTime>1.8</cooldownTime>
						<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
						<armorPenetrationBlunt>0.250</armorPenetrationBlunt>
						<armorPenetrationSharp>0.05</armorPenetrationSharp>
					</li>
					<li Class="CombatExtended.ToolCE">
						<label>right claw</label>
						<capacities>
							<li>Scratch</li>
						</capacities>
						<power>6</power>
						<cooldownTime>1.8</cooldownTime>
						<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
						<armorPenetrationBlunt>0.250</armorPenetrationBlunt>
						<armorPenetrationSharp>0.05</armorPenetrationSharp>
					</li>
					<li Class="CombatExtended.ToolCE">
						<capacities>
							<li>Bite</li>
						</capacities>
						<power>8</power>
						<cooldownTime>2.0</cooldownTime>
						<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
						<surpriseAttack>
							<extraMeleeDamages>
								<li>
									<def>Stun</def>
									<amount>15</amount>
								</li>
							</extraMeleeDamages>
						</surpriseAttack>
						<armorPenetrationBlunt>1.5</armorPenetrationBlunt>
						<armorPenetrationSharp>0.04</armorPenetrationSharp>
					</li>
					<li Class="CombatExtended.ToolCE">
						<label>head</label>
						<capacities>
							<li>Blunt</li>
						</capacities>
						<power>3</power>
						<cooldownTime>1.65</cooldownTime>
						<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
						<chanceFactor>0.2</chanceFactor>
						<armorPenetrationBlunt>0.423</armorPenetrationBlunt>
						<armorPenetrationSharp>0</armorPenetrationSharp>
					</li>
				</tools>
			</value>
		</match>
	</Operation>
</Patch>