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

	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Biotech</li>
		</mods>

		<match Class="PatchOperationFindMod">
			<mods>
				<li>Vanilla Factions Expanded - Mechanoids</li>
			</mods>

			<match Class="PatchOperationSequence">
				<operations>

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

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

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

					<li Class="PatchOperationAdd">
						<xpath>Defs/ThingDef[defName="VFE_Mech_Advanced_Goliath_PlayerControlled"]/statBases</xpath>
						<value>
							<ArmorRating_Heat>0.75</ArmorRating_Heat>
							<CarryWeight>400</CarryWeight>
							<CarryBulk>200</CarryBulk>
							<AimingAccuracy>1.8</AimingAccuracy>
							<ShootingAccuracyPawn>1.6</ShootingAccuracyPawn>
							<MeleeDodgeChance>0.05</MeleeDodgeChance>
							<MeleeCritChance>0.75</MeleeCritChance>
							<MeleeParryChance>0.2</MeleeParryChance>
							<MaxHitPoints>500</MaxHitPoints>
						</value>
					</li>

					<li Class="PatchOperationReplace">
						<xpath>Defs/ThingDef[defName="VFE_Mech_Advanced_Goliath_PlayerControlled"]/tools</xpath>
						<value>
							<tools>
								<li Class="CombatExtended.ToolCE">
									<label>head</label>
									<capacities>
										<li>Blunt</li>
									</capacities>
									<power>35</power>
									<cooldownTime>3.0</cooldownTime>
									<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
									<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
									<armorPenetrationBlunt>15</armorPenetrationBlunt>
								</li>
							</tools>
						</value>
					</li>

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

					<li Class="PatchOperationAdd">
						<xpath>Defs/ThingDef[defName="VFE_Mech_Advanced_Goliath_PlayerControlled"]/comps</xpath>
						<value>
							<li Class="CombatExtended.CompProperties_ArmorDurability">
								<Durability>3650</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>
		</match>
	</Operation>

</Patch>