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

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Biotech</li>
		</mods>
		<match Class="PatchOperationSequence">
			<operations>

				<!-- Mech Grub Tools -->
				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="LTS_Mech_Isopod"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>Serpentine</bodyShape>
						</li>
					</value>
				</li>

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


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

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="LTS_Mech_Isopod"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>mandible</label>
								<capacities>
									<li>Cut</li>
									<li>Stab</li>
								</capacities>
								<power>10</power>
								<cooldownTime>1.2</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<armorPenetrationSharp>1</armorPenetrationSharp>
								<armorPenetrationBlunt>0.25</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
						</tools>
					</value>
				</li>

				<!--===== Sangophage Bionics =====-->
				<!-- Hemo Fangs -->
				<li Class="PatchOperationReplace">
					<xpath>Defs/HediffDef[defName="HemoFangs"]/comps/li[@Class="HediffCompProperties_VerbGiver"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>hemo-fangs</label>
								<capacities>
									<li>HemoBite</li>
								</capacities>
								<power>5</power>
								<cooldownTime>1.38</cooldownTime>
								<armorPenetrationBlunt>0.35</armorPenetrationBlunt>
								<armorPenetrationSharp>3</armorPenetrationSharp>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
						</tools>
					</value>
				</li>

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

</Patch>