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

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Vanilla Factions Expanded - Insectoids 2</li>
		</mods>

		<match Class="PatchOperationSequence">
			<operations>

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="VFEI2_BlackQueen"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>Birdlike</bodyShape>
							<canParry>true</canParry>
							<maxParry>4</maxParry>
						</li>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFEI2_BlackQueen"]/statBases</xpath>
					<value>
						<PainShockThreshold>0.95</PainShockThreshold>
						<MeleeDodgeChance>0.03</MeleeDodgeChance>
						<MeleeCritChance>0.30</MeleeCritChance>
						<MeleeParryChance>0.57</MeleeParryChance>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VFEI2_BlackQueen"]/statBases/ArmorRating_Blunt</xpath>
					<value>
						<ArmorRating_Blunt>30</ArmorRating_Blunt>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VFEI2_BlackQueen"]/statBases/ArmorRating_Sharp</xpath>
					<value>
						<ArmorRating_Sharp>12</ArmorRating_Sharp>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VFEI2_BlackQueen"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>head claw</label>
								<capacities>
									<li>AA_ExtraDamageMechanoidsClaws</li>
								</capacities>
								<power>37</power>
								<cooldownTime>1.48</cooldownTime>
								<linkedBodyPartsGroup>HeadClaw</linkedBodyPartsGroup>
								<armorPenetrationSharp>50</armorPenetrationSharp>
								<armorPenetrationBlunt>30</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>head claw</label>
								<capacities>
									<li>Cut</li>
								</capacities>
								<power>65</power>
								<cooldownTime>1.65</cooldownTime>
								<linkedBodyPartsGroup>HeadClaw</linkedBodyPartsGroup>
								<armorPenetrationSharp>5</armorPenetrationSharp>
								<armorPenetrationBlunt>10</armorPenetrationBlunt>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>34</power>
								<cooldownTime>2.64</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<chanceFactor>0.2</chanceFactor>
								<armorPenetrationBlunt>14.4</armorPenetrationBlunt>
							</li>
						</tools>
					</value>
				</li>

				<li Class="PatchOperationConditional">
					<xpath>Defs/ThingDef[defName="VFEI2_BlackQueen"]/comps</xpath>
					<nomatch Class="PatchOperationAdd">
						<xpath>Defs/ThingDef[defName="VFEI2_BlackQueen"]</xpath>
						<value>
							<comps />
						</value>
					</nomatch>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFEI2_BlackQueen"]/comps</xpath>
					<value>
						<li Class="CombatExtended.CompProperties_ArmorDurability">
							<Durability>3000</Durability>
							<Regenerates>true</Regenerates>
							<RegenInterval>400</RegenInterval>
							<RegenValue>5</RegenValue>
							<MinArmorPct>0.25</MinArmorPct>
						</li>
					</value>
				</li>

			</operations>
		</match>
	</Operation>

</Patch>