<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="HC_Giant"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Humanoid</bodyShape>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="HC_Giant"]/statBases</xpath>
		<value>
			<!--Significant size results in ease of powerful strikes and difficulty in parrying their blows-->
			<MeleeCritChance>1.6</MeleeCritChance>
			<MeleeParryChance>1.8</MeleeParryChance>
			<!--Mentally simpler and also generally just less attendant to most small arms shooting them-->
			<Suppressability>0.5</Suppressability>
			<SmokeSensitivity>1</SmokeSensitivity>
			<CarryBulk>25</CarryBulk>
		</value>
	</Operation>

	<!--Very heavy blows-->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="HC_Giant"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>19</power>
					<cooldownTime>2.25</cooldownTime>
					<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
					<armorPenetrationBlunt>7.56</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>19</power>
					<cooldownTime>2.25</cooldownTime>
					<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>
					<armorPenetrationBlunt>7.56</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>22</power>
					<cooldownTime>6.66</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>9.045</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!--Giant size prevents use of loadbearing gear, and reasonably, shields.-->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="GI_PawnBase"]/comps</xpath>
		<value>
			<li Class="CombatExtended.CompProperties_Inventory"/>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[@Name="GI_PawnBase"]/comps</xpath>
		<value>
			<li>
				<compClass>CombatExtended.CompPawnGizmo</compClass>
			</li>
			<li Class="CombatExtended.CompProperties_Suppressable"/>
		</value>
	</Operation>
</Patch>