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

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="MinchoWitch_MinchoGolem"]/statBases</xpath>
		<value>
			<!--Innate immunity to toxic fallout, high immunity gain rate-->
			<SmokeSensitivity>0</SmokeSensitivity>
			<MeleeDodgeChance>1</MeleeDodgeChance>
			<MeleeCritChance>2</MeleeCritChance>
			<MeleeParryChance>1.5</MeleeParryChance>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="MinchoWitch_MinchoGolem"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>left fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>63</power>
					<cooldownTime>1.38</cooldownTime>
					<armorPenetrationBlunt>29.25</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>right fist</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>63</power>
					<cooldownTime>1.38</cooldownTime>
					<armorPenetrationBlunt>29.25</armorPenetrationBlunt>
				</li>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>50</power>
					<cooldownTime>2.11</cooldownTime>
					<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
					<chanceFactor>0.2</chanceFactor>
					<armorPenetrationBlunt>22.5</armorPenetrationBlunt>
				</li>
			</tools>
		</value>
	</Operation>
</Patch>