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

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="Geth" or defName="GethPrime"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Humanoid</bodyShape>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="GethColossus"
			] </xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Birdlike</bodyShape>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="GethPrime"]</xpath>
		<value>
			<race>
				<baseHealthScale>1.5</baseHealthScale>
				<baseBodySize>1.33</baseBodySize>
			</race>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="GethColossus"]/race/baseHealthScale</xpath>
		<value>
			<baseHealthScale>3.0</baseHealthScale>
			<baseBodySize>2.5</baseBodySize>
		</value>
	</Operation>

	<!--Geth-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="Geth"]</xpath>
		<value>
			<statBases>
				<CarryWeight>50</CarryWeight>
				<CarryBulk>50</CarryBulk>
				<MeleeDodgeChance>1</MeleeDodgeChance>
				<MeleeCritChance>1</MeleeCritChance>
				<MeleeParryChance>1</MeleeParryChance>
				<SmokeSensitivity>0</SmokeSensitivity>
				<Suppressability>0.4</Suppressability>
				<ArmorRating_Blunt>9</ArmorRating_Blunt>
				<ArmorRating_Sharp>4.5</ArmorRating_Sharp>
			</statBases>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[@Name="BaseGeth"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.26</cooldownTime>
					<linkedBodyPartsGroup>LeftArm</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.75</armorPenetrationBlunt>

				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>2</power>
					<cooldownTime>1.26</cooldownTime>
					<linkedBodyPartsGroup>RightArm</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.75</armorPenetrationBlunt>
				</li>

				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>3</power>
					<cooldownTime>3.05</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationBlunt>1</armorPenetrationBlunt>
					<chanceFactor>0.1</chanceFactor>
				</li>
			</tools>
		</value>
	</Operation>

	<!--Colossus-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="GethColossus"]/statBases</xpath>
		<value>
			<statBases>
				<GethLinkRepeater>2</GethLinkRepeater>
				<MeleeDodgeChance>0.5</MeleeDodgeChance>
				<MeleeCritChance>0.78</MeleeCritChance>
				<MeleeParryChance>0.5</MeleeParryChance>
				<ArmorRating_Blunt>42</ArmorRating_Blunt>
				<ArmorRating_Sharp>20</ArmorRating_Sharp>
				<Suppressability>0</Suppressability>
			</statBases>
		</value>
	</Operation>

	<!--Base melee is exceptionally strong. -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="GethColossus"]</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>Smash</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>45</power>
					<cooldownTime>3.8</cooldownTime>
					<linkedBodyPartsGroup>LeftArm</linkedBodyPartsGroup>
					<armorPenetrationBlunt>78.625</armorPenetrationBlunt>
				</li>

				<li Class="CombatExtended.ToolCE">
					<label>Smash</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>45</power>
					<cooldownTime>3.8</cooldownTime>
					<linkedBodyPartsGroup>RightArm</linkedBodyPartsGroup>
					<armorPenetrationBlunt>78.625</armorPenetrationBlunt>
				</li>

				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>24</power>
					<cooldownTime>2.05</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationBlunt>43</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!--GethPrime-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="GethPrime"]/statBases</xpath>
		<value>
			<statBases>
				<CarryWeight>100</CarryWeight>
				<CarryBulk>60</CarryBulk>
				<GethLinkRepeater>1</GethLinkRepeater>
				<MeleeDodgeChance>1</MeleeDodgeChance>
				<MeleeCritChance>1.1</MeleeCritChance>
				<MeleeParryChance>1.1</MeleeParryChance>
				<SmokeSensitivity>0.0</SmokeSensitivity>
				<Suppressability>0.2</Suppressability>
				<ArmorRating_Blunt>18</ArmorRating_Blunt>
				<ArmorRating_Sharp>10</ArmorRating_Sharp>
			</statBases>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="GethPrime"]</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>Smash</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>18</power>
					<cooldownTime>1.56</cooldownTime>
					<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
					<armorPenetrationBlunt>16.625</armorPenetrationBlunt>
				</li>

				<li Class="CombatExtended.ToolCE">
					<label>Smash</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>18</power>
					<cooldownTime>1.56</cooldownTime>
					<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>
					<armorPenetrationBlunt>16.625</armorPenetrationBlunt>
				</li>

				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>10</power>
					<cooldownTime>3.05</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationBlunt>10</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="Geth"]</xpath>
		<value>
			<comps>
				<li>
					<compClass>CombatExtended.CompPawnGizmo</compClass>
				</li>
				<li Class="CombatExtended.CompProperties_Suppressable"/>
			</comps>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="GethPrime"]</xpath>
		<value>
			<comps>
				<li>
					<compClass>CombatExtended.CompPawnGizmo</compClass>
				</li>
				<li Class="CombatExtended.CompProperties_Suppressable"/>
			</comps>
		</value>
	</Operation>
</Patch>