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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Sandcrawler"]/race/baseBodySize</xpath>
		<value>
			<baseBodySize>10</baseBodySize>
		</value>
	</Operation>

	<Operation Class="PatchOperationAddModExtension">
		<xpath>Defs/ThingDef[defName="Sandcrawler"]</xpath>
		<value>
			<li Class="CombatExtended.RacePropertiesExtensionCE">
				<bodyShape>Sandcrawler_Shape</bodyShape>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Sandcrawler"]/statBases</xpath>
		<value>
			<CarryWeight>400</CarryWeight>
			<CarryBulk>80</CarryBulk>
			<MeleeDodgeChance>0</MeleeDodgeChance>
			<MeleeCritChance>0</MeleeCritChance>
			<MeleeParryChance>0</MeleeParryChance>
			<MaxHitPoints>1000</MaxHitPoints>
			<SmokeSensitivity>0</SmokeSensitivity>
		</value>
	</Operation>

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

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

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Sandcrawler"]/tools</xpath>
		<value>
			<tools>
				<li Class="CombatExtended.ToolCE">
					<label>head</label>
					<capacities>
						<li>Blunt</li>
					</capacities>
					<power>35</power>
					<cooldownTime>3.51</cooldownTime>
					<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
					<armorPenetrationSharp>0</armorPenetrationSharp>
					<armorPenetrationBlunt>15</armorPenetrationBlunt>
					<alwaysTreatAsWeapon>true</alwaysTreatAsWeapon>
				</li>
			</tools>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/BodyDef[defName="MechanicalSandcrawler"]//*[def="FrontHatch"]/groups</xpath>
		<value>
			<li>CoveredByNaturalArmor</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/BodyDef[defName="MechanicalSandcrawler"]//*[def="FrontWindow" or def="Reactor" or def="FluidReprocessor"]</xpath>
		<value>
			<groups>
				<li>CoveredByNaturalArmor</li>
			</groups>
		</value>
	</Operation>

</Patch>