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

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="O21_FR_Orc"]/comps</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="O21_FR_Orc"]</xpath>
			<value>
				<comps/>
			</value>
		</nomatch>
	</Operation>

	<!-- Orcs are markedly larger than your average human. -->
	<Operation Class="PatchOperationReplace">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="O21_FR_Orc"]/race/baseBodySize</xpath>
		<value>
			<baseBodySize>1.3</baseBodySize>
		</value>
	</Operation>

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="O21_FR_Orc"]/alienRace/generalSettings/disallowedTraits/li[defName="Undergrounder"]</xpath>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="O21_FR_Orc"]/statBases</xpath>
		<value>
			<MeleeDodgeChance>0.70</MeleeDodgeChance>
			<MeleeCritChance>1.10</MeleeCritChance>
			<MeleeParryChance>1</MeleeParryChance>
			<SmokeSensitivity>0.80</SmokeSensitivity>
			<CarryWeight>50</CarryWeight>
			<CarryBulk>30</CarryBulk>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="O21_FR_Orc"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>3</power>
					<cooldownTime>1.66</cooldownTime>
					<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.75</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>3</power>
					<cooldownTime>1.66</cooldownTime>
					<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>
					<armorPenetrationBlunt>0.75</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>4</power>
					<cooldownTime>5.05</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>1</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<capacities>
						<li>Bite</li>
					</capacities>
					<power>8</power>
					<cooldownTime>1.57</cooldownTime>
					<chanceFactor>0.33</chanceFactor>
					<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
					<armorPenetrationSharp>0.08</armorPenetrationSharp>
					<armorPenetrationBlunt>0.6</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>

	<!-- While hardly remarkable for their intellectual prowess, orcs are nonetheless smart enough to take cover when arrows start flying. -->
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/AlienRace.ThingDef_AlienRace[defName="O21_FR_Orc"]/comps</xpath>
		<value>
			<li>
				<compClass>CombatExtended.CompPawnGizmo</compClass>
			</li>
			<li Class="CombatExtended.CompProperties_Suppressable"/>
		</value>
	</Operation>
</Patch>