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

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

				<!-- ========== VFE Advanced Centipede ========== -->

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedCentipede_PlayerControlled"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>QuadrupedLow</bodyShape>
						</li>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedCentipede_PlayerControlled"]/statBases</xpath>
					<value>
						<ArmorRating_Heat>0.75</ArmorRating_Heat>
						<CarryWeight>160</CarryWeight>
						<CarryBulk>70</CarryBulk>
						<AimingAccuracy>1.7</AimingAccuracy>
						<ShootingAccuracyPawn>1.5</ShootingAccuracyPawn>
						<MeleeDodgeChance>0.03</MeleeDodgeChance>
						<MeleeCritChance>0.30</MeleeCritChance>
						<MeleeParryChance>0.52</MeleeParryChance>
						<MaxHitPoints>500</MaxHitPoints>
					</value>
				</li>

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

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

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedCentipede_PlayerControlled"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>35</power>
								<cooldownTime>3.51</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<armorPenetrationSharp>0</armorPenetrationSharp>
								<armorPenetrationBlunt>15</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
						</tools>
					</value>
				</li>

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

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedCentipede_PlayerControlled"]/comps</xpath>
					<value>
						<li Class="CombatExtended.CompProperties_ArmorDurability">
							<Durability>3660</Durability>
							<Regenerates>true</Regenerates>
							<RegenInterval>1250</RegenInterval>
							<RegenValue>5</RegenValue>
							<Repairable>true</Repairable>
							<RepairIngredients>
								<Steel>5</Steel>
								<Plasteel>5</Plasteel>
							</RepairIngredients>
							<RepairTime>300</RepairTime>
							<RepairValue>200</RepairValue>
							<MinArmorPct>0.5</MinArmorPct>
						</li>
					</value>
				</li>

				<!-- ========== VFE Advanced Scyther/Lancer ========== -->

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedScyther_PlayerControlled"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>Humanoid</bodyShape>
							<canParry>true</canParry>
							<maxParry>5</maxParry>
						</li>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedScyther_PlayerControlled" or defName="VFE_Mech_AdvancedLancer_PlayerControlled" ]/statBases</xpath>
					<value>
						<CarryWeight>50</CarryWeight>
						<CarryBulk>20</CarryBulk>
						<AimingAccuracy>1.8</AimingAccuracy>
						<ShootingAccuracyPawn>1.6</ShootingAccuracyPawn>
						<MeleeDodgeChance>0.15</MeleeDodgeChance>
						<MeleeCritChance>0.14</MeleeCritChance>
						<MeleeParryChance>0.09</MeleeParryChance>
						<MaxHitPoints>200</MaxHitPoints>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedScyther_PlayerControlled" or defName="VFE_Mech_AdvancedLancer_PlayerControlled"]/statBases/ArmorRating_Blunt</xpath>
					<value>
						<ArmorRating_Blunt>7.5</ArmorRating_Blunt>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedScyther_PlayerControlled" or defName="VFE_Mech_AdvancedLancer_PlayerControlled"]/statBases/ArmorRating_Sharp</xpath>
					<value>
						<ArmorRating_Sharp>5</ArmorRating_Sharp>
					</value>
				</li>
				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedScyther_PlayerControlled" or defName="VFE_Mech_AdvancedLancer_PlayerControlled"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>Humanoid</bodyShape>
						</li>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedScyther_PlayerControlled"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>left blade</label>
								<capacities>
									<li>Cut</li>
								</capacities>
								<power>43</power>
								<cooldownTime>2.07</cooldownTime>
								<linkedBodyPartsGroup>LeftBlade</linkedBodyPartsGroup>
								<armorPenetrationSharp>2.16</armorPenetrationSharp>
								<armorPenetrationBlunt>5.4</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>left blade</label>
								<capacities>
									<li>Stab</li>
								</capacities>
								<power>24</power>
								<cooldownTime>1.33</cooldownTime>
								<linkedBodyPartsGroup>LeftBlade</linkedBodyPartsGroup>
								<armorPenetrationSharp>40</armorPenetrationSharp>
								<armorPenetrationBlunt>20</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>right blade</label>
								<capacities>
									<li>Cut</li>
								</capacities>
								<power>43</power>
								<cooldownTime>2.07</cooldownTime>
								<linkedBodyPartsGroup>RightBlade</linkedBodyPartsGroup>
								<armorPenetrationSharp>2.16</armorPenetrationSharp>
								<armorPenetrationBlunt>5.4</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>right blade</label>
								<capacities>
									<li>Stab</li>
								</capacities>
								<power>24</power>
								<cooldownTime>1.33</cooldownTime>
								<linkedBodyPartsGroup>RightBlade</linkedBodyPartsGroup>
								<armorPenetrationSharp>40</armorPenetrationSharp>
								<armorPenetrationBlunt>20</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>6</power>
								<cooldownTime>5.9</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<chanceFactor>0.2</chanceFactor>
								<armorPenetrationSharp>0</armorPenetrationSharp>
								<armorPenetrationBlunt>1.875</armorPenetrationBlunt>
							</li>
						</tools>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedLancer_PlayerControlled"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>left fist</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>5</power>
								<cooldownTime>1.11</cooldownTime>
								<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
								<armorPenetrationSharp>0</armorPenetrationSharp>
								<armorPenetrationBlunt>1.688</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>right fist</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>5</power>
								<cooldownTime>1.11</cooldownTime>
								<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>
								<armorPenetrationSharp>0</armorPenetrationSharp>
								<armorPenetrationBlunt>1.688</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>5</power>
								<cooldownTime>1.85</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<chanceFactor>0.2</chanceFactor>
								<armorPenetrationSharp>0</armorPenetrationSharp>
								<armorPenetrationBlunt>0.625</armorPenetrationBlunt>
							</li>
						</tools>
					</value>
				</li>

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

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedScyther_PlayerControlled"]/comps</xpath>
					<value>
						<li Class="CombatExtended.CompProperties_ArmorDurability">
							<Durability>1160</Durability>
							<Regenerates>true</Regenerates>
							<RegenInterval>1250</RegenInterval>
							<RegenValue>5</RegenValue>
							<Repairable>true</Repairable>
							<RepairIngredients>
								<Steel>5</Steel>
								<Plasteel>5</Plasteel>
							</RepairIngredients>
							<RepairTime>300</RepairTime>
							<RepairValue>200</RepairValue>
							<MinArmorPct>0.5</MinArmorPct>
						</li>
					</value>
				</li>

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

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedLancer_PlayerControlled"]/comps</xpath>
					<value>
						<li Class="CombatExtended.CompProperties_ArmorDurability">
							<Durability>1000</Durability>
							<Regenerates>true</Regenerates>
							<RegenInterval>1250</RegenInterval>
							<RegenValue>5</RegenValue>
							<Repairable>true</Repairable>
							<RepairIngredients>
								<Steel>5</Steel>
								<Plasteel>5</Plasteel>
							</RepairIngredients>
							<RepairTime>300</RepairTime>
							<RepairValue>200</RepairValue>
							<MinArmorPct>0.5</MinArmorPct>
						</li>
					</value>
				</li>

				<!-- ========== VFE Advanced Pikeman ========== -->

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedPikeman_PlayerControlled"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>Quadruped</bodyShape>
						</li>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedPikeman_PlayerControlled"]/statBases</xpath>
					<value>
						<CarryWeight>80</CarryWeight>
						<CarryBulk>40</CarryBulk>
						<MeleeDodgeChance>0.05</MeleeDodgeChance>
						<MeleeCritChance>0.15</MeleeCritChance>
						<MeleeParryChance>0.15</MeleeParryChance>
						<MaxHitPoints>200</MaxHitPoints>
					</value>
				</li>

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

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

				<li Class="PatchOperationRemove">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedPikeman_PlayerControlled"]/race/baseHealthScale</xpath>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedPikeman_PlayerControlled"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>front left leg</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>13</power>
								<cooldownTime>2.67</cooldownTime>
								<linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup>
								<armorPenetrationBlunt>5</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>front right leg</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>13</power>
								<cooldownTime>2.67</cooldownTime>
								<linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup>
								<armorPenetrationBlunt>5</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>15</power>
								<cooldownTime>3.51</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<armorPenetrationBlunt>12</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
								<chanceFactor>0.2</chanceFactor>
							</li>
						</tools>
					</value>
				</li>

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

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedPikeman_PlayerControlled"]/comps</xpath>
					<value>
						<li Class="CombatExtended.CompProperties_ArmorDurability">
							<Durability>1000</Durability>
							<Regenerates>true</Regenerates>
							<RegenInterval>1250</RegenInterval>
							<RegenValue>5</RegenValue>
							<Repairable>true</Repairable>
							<RepairIngredients>
								<Steel>5</Steel>
								<Plasteel>5</Plasteel>
							</RepairIngredients>
							<RepairTime>300</RepairTime>
							<RepairValue>200</RepairValue>
							<MinArmorPct>0.5</MinArmorPct>
						</li>
					</value>
				</li>

				<!-- ========== VFE Advanced Knight ========== -->

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedKnight_PlayerControlled"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>Humanoid</bodyShape>
						</li>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedKnight_PlayerControlled"]/statBases</xpath>
					<value>
						<CarryWeight>50</CarryWeight>
						<CarryBulk>20</CarryBulk>
						<AimingAccuracy>1.8</AimingAccuracy>
						<ShootingAccuracyPawn>1.6</ShootingAccuracyPawn>
						<MeleeDodgeChance>0.13</MeleeDodgeChance>
						<MeleeCritChance>0.12</MeleeCritChance>
						<MeleeParryChance>0.09</MeleeParryChance>
						<MaxHitPoints>200</MaxHitPoints>
					</value>
				</li>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedKnight_PlayerControlled"]/race/baseHealthScale</xpath>
					<value>
						<baseHealthScale>1.0</baseHealthScale>
					</value>
				</li>

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

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

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedKnight_PlayerControlled"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>left fist</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>5</power>
								<cooldownTime>1.11</cooldownTime>
								<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
								<armorPenetrationSharp>0</armorPenetrationSharp>
								<armorPenetrationBlunt>1.688</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>right fist</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>5</power>
								<cooldownTime>1.11</cooldownTime>
								<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>
								<armorPenetrationSharp>0</armorPenetrationSharp>
								<armorPenetrationBlunt>1.688</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>5</power>
								<cooldownTime>1.85</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<chanceFactor>0.2</chanceFactor>
								<armorPenetrationSharp>0</armorPenetrationSharp>
								<armorPenetrationBlunt>0.625</armorPenetrationBlunt>
							</li>
						</tools>
					</value>
				</li>

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

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedKnight_PlayerControlled"]/comps</xpath>
					<value>
						<li Class="CombatExtended.CompProperties_ArmorDurability">
							<Durability>1000</Durability>
							<Regenerates>true</Regenerates>
							<RegenInterval>1250</RegenInterval>
							<RegenValue>5</RegenValue>
							<Repairable>true</Repairable>
							<RepairIngredients>
								<Steel>5</Steel>
								<Plasteel>5</Plasteel>
							</RepairIngredients>
							<RepairTime>300</RepairTime>
							<RepairValue>200</RepairValue>
							<MinArmorPct>0.5</MinArmorPct>
						</li>
					</value>
				</li>

				<!-- ========== VFE Advanced Inquisitor ========== -->

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedInquisitor_PlayerControlled"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>Humanoid</bodyShape>
						</li>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedInquisitor_PlayerControlled"]/statBases</xpath>
					<value>
						<ArmorRating_Heat>1.0</ArmorRating_Heat>
						<CarryWeight>50</CarryWeight>
						<CarryBulk>50</CarryBulk>
						<AimingAccuracy>1.7</AimingAccuracy>
						<ShootingAccuracyPawn>1.5</ShootingAccuracyPawn>
						<MeleeDodgeChance>0.07</MeleeDodgeChance>
						<MeleeCritChance>0.04</MeleeCritChance>
						<MeleeParryChance>0.09</MeleeParryChance>
						<MaxHitPoints>200</MaxHitPoints>
					</value>
				</li>

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

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

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedInquisitor_PlayerControlled"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>left fist</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>5</power>
								<cooldownTime>1.11</cooldownTime>
								<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
								<armorPenetrationSharp>0</armorPenetrationSharp>
								<armorPenetrationBlunt>1.688</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>right fist</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>5</power>
								<cooldownTime>1.11</cooldownTime>
								<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>
								<armorPenetrationSharp>0</armorPenetrationSharp>
								<armorPenetrationBlunt>1.688</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>5</power>
								<cooldownTime>1.85</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<chanceFactor>0.2</chanceFactor>
								<armorPenetrationSharp>0</armorPenetrationSharp>
								<armorPenetrationBlunt>0.625</armorPenetrationBlunt>
							</li>
						</tools>
					</value>
				</li>

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

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedInquisitor_PlayerControlled"]/comps</xpath>
					<value>
						<li Class="CombatExtended.CompProperties_ArmorDurability">
							<Durability>1200</Durability>
							<Regenerates>true</Regenerates>
							<RegenInterval>1250</RegenInterval>
							<RegenValue>5</RegenValue>
							<Repairable>true</Repairable>
							<RepairIngredients>
								<Steel>5</Steel>
								<Plasteel>5</Plasteel>
							</RepairIngredients>
							<RepairTime>300</RepairTime>
							<RepairValue>200</RepairValue>
							<MinArmorPct>0.5</MinArmorPct>
						</li>
					</value>
				</li>

				<!-- ==========VFE Advanced Termite ========== -->

				<li Class="PatchOperationAddModExtension">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedTermite_PlayerControlled"]</xpath>
					<value>
						<li Class="CombatExtended.RacePropertiesExtensionCE">
							<bodyShape>QuadrupedLow</bodyShape>
						</li>
					</value>
				</li>

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedTermite_PlayerControlled"]/statBases</xpath>
					<value>
						<ArmorRating_Heat>0.75</ArmorRating_Heat>
						<CarryWeight>160</CarryWeight>
						<CarryBulk>70</CarryBulk>
						<AimingAccuracy>1.7</AimingAccuracy>
						<ShootingAccuracyPawn>1.5</ShootingAccuracyPawn>
						<MeleeDodgeChance>0.04</MeleeDodgeChance>
						<MeleeCritChance>0.16</MeleeCritChance>
						<MeleeParryChance>0.24</MeleeParryChance>
						<MaxHitPoints>400</MaxHitPoints>
					</value>
				</li>
				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedTermite_PlayerControlled"]/statBases/ArmorRating_Blunt</xpath>
					<value>
						<ArmorRating_Blunt>48</ArmorRating_Blunt>
					</value>
				</li>

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

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedTermite_PlayerControlled"]/tools</xpath>
					<value>
						<tools>
							<li Class="CombatExtended.ToolCE">
								<label>head</label>
								<capacities>
									<li>Blunt</li>
								</capacities>
								<power>25</power>
								<cooldownTime>3.01</cooldownTime>
								<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
								<armorPenetrationSharp>0</armorPenetrationSharp>
								<armorPenetrationBlunt>13.5</armorPenetrationBlunt>
								<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
							</li>
						</tools>
					</value>
				</li>

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

				<li Class="PatchOperationAdd">
					<xpath>Defs/ThingDef[defName="VFE_Mech_AdvancedTermite_PlayerControlled"]/comps</xpath>
					<value>
						<li Class="CombatExtended.CompProperties_ArmorDurability">
							<Durability>1880</Durability>
							<Regenerates>true</Regenerates>
							<RegenInterval>1250</RegenInterval>
							<RegenValue>5</RegenValue>
							<Repairable>true</Repairable>
							<RepairIngredients>
								<Steel>5</Steel>
								<Plasteel>5</Plasteel>
							</RepairIngredients>
							<RepairTime>300</RepairTime>
							<RepairValue>200</RepairValue>
							<MinArmorPct>0.5</MinArmorPct>
						</li>
					</value>
				</li>

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

</Patch>