<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<!-- ========== Mech - Federator ========== -->
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="Mech_Federator"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Humanoid</bodyShape>
				<canParry>true</canParry>
				<maxParry>4</maxParry>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Mech_Federator"]/race/baseHealthScale</xpath>
		<value>
			<baseHealthScale>7</baseHealthScale>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Mech_Federator"]/statBases/ArmorRating_Blunt</xpath>
		<value>
			<ArmorRating_Blunt>400</ArmorRating_Blunt>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Mech_Federator"]/statBases/ArmorRating_Sharp</xpath>
		<value>
			<ArmorRating_Sharp>75</ArmorRating_Sharp>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Mech_Federator"]/statBases/ArmorRating_Heat</xpath>
		<value>
			<ArmorRating_Heat>1.90</ArmorRating_Heat>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Mech_Federator"]/statBases</xpath>
		<value>
			<CarryWeight>60</CarryWeight>
			<CarryBulk>60</CarryBulk>
			<AimingAccuracy>1.4</AimingAccuracy>
			<ShootingAccuracyPawn>1.4</ShootingAccuracyPawn>
			<MeleeDodgeChance>0.05</MeleeDodgeChance>
			<MeleeCritChance>0.4</MeleeCritChance>
			<MeleeParryChance>0.3</MeleeParryChance>
			<SmokeSensitivity>0</SmokeSensitivity>
			<NightVisionEfficiency>0.80</NightVisionEfficiency>
			<MeleeHitChance>1.5</MeleeHitChance>
		</value>
	</Operation>

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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Mech_Federator"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_ArmorDurability">
				<Durability>3750</Durability>
				<Regenerates>true</Regenerates>
				<RegenInterval>600</RegenInterval>
				<RegenValue>5</RegenValue>
				<MinArmorPct>0</MinArmorPct>
				<MinArmorValueSharp>26.25</MinArmorValueSharp>
				<MinArmorValueBlunt>40</MinArmorValueBlunt>
				<MinArmorValueHeat>0.7</MinArmorValueHeat>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="Mech_Federator"]</xpath>
		<value>
			<li Class="CombatExtended.PartialArmorExt">
				<stats>
					<li>
						<useStatic>true</useStatic>
						<ArmorRating_Sharp>28</ArmorRating_Sharp>
						<parts>
							<li>SightSensor</li>
						</parts>
					</li>
					<li>
						<useStatic>true</useStatic>
						<ArmorRating_Blunt>28</ArmorRating_Blunt>
						<parts>
							<li>SightSensor</li>
						</parts>
					</li>
				</stats>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Mech_Federator"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>35</power>
					<cooldownTime>3.67</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationBlunt>15</armorPenetrationBlunt>
					<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
					<chanceFactor>0.2</chanceFactor>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>left fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>40</power>
					<cooldownTime>2.67</cooldownTime>
					<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>14</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationBlunt>37.5</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right fist</label>
					<capacities>
						<li>Stab</li>
					</capacities>
					<power>55</power>
					<cooldownTime>2.67</cooldownTime>
					<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>
					<surpriseAttack>
						<extraMeleeDamages>
							<li>
								<def>Stun</def>
								<amount>14</amount>
							</li>
						</extraMeleeDamages>
					</surpriseAttack>
					<armorPenetrationBlunt>37.5</armorPenetrationBlunt>
					<armorPenetrationSharp>15</armorPenetrationSharp>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/PawnKindDef[@Name="BaseMechKind"]/ignoresPainShock</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/PawnKindDef[@Name="BaseMechKind"]</xpath>
			<value>
				<ignoresPainShock>true</ignoresPainShock>
			</value>
		</nomatch>
	</Operation>

</Patch>