<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="BMT_Basilisk"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Quadruped</bodyShape>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="BMT_Basilisk"]/statBases</xpath>
		<value>
			<ArmorRating_Sharp>1.5</ArmorRating_Sharp>
			<ArmorRating_Blunt>0.75</ArmorRating_Blunt>
			<MeleeDodgeChance>0.01</MeleeDodgeChance>
			<MeleeCritChance>0.20</MeleeCritChance>
			<MeleeParryChance>0.28</MeleeParryChance>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="BMT_Basilisk"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>17</power>
					<cooldownTime>2</cooldownTime>
					<linkedBodyPartsGroup>FrontLeftClaws</linkedBodyPartsGroup>
					<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
					<extraMeleeDamages>
						<li>
							<def>Stun</def>
							<amount>6</amount>
						</li>
					</extraMeleeDamages>
					<armorPenetrationSharp>5.5</armorPenetrationSharp>
					<armorPenetrationBlunt>2</armorPenetrationBlunt>
				</li>

				<li Class="CombatExtended.ToolCE">
					<label>right claw</label>
					<capacities>
						<li>Scratch</li>
					</capacities>
					<power>17</power>
					<cooldownTime>2</cooldownTime>
					<linkedBodyPartsGroup>FrontRightClaws</linkedBodyPartsGroup>
					<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>6</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationSharp>5.5</armorPenetrationSharp>
					<armorPenetrationBlunt>2</armorPenetrationBlunt>
				</li>

				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>6</power>
					<cooldownTime>1.65</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.1</chanceFactor>
					<armorPenetrationBlunt>2.50</armorPenetrationBlunt>
				</li>

				<li Class="CombatExtended.ToolCE">
					<label>bite</label>
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>20</power>
					<cooldownTime>2.6</cooldownTime>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>

					<extraMeleeDamages>
						<li>
							<def>Stun</def>
							<amount>6</amount>
						</li>
					</extraMeleeDamages>
					<armorPenetrationSharp>7.5</armorPenetrationSharp>
					<armorPenetrationBlunt>4</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>
</Patch>