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

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/groups</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart</xpath>
			<value>
				<groups>
					<li>CoveredByNaturalArmor</li>
				</groups>
			</value>
		</nomatch>
		<match Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/groups</xpath>
			<value>
				<li>CoveredByNaturalArmor</li>
			</value>
		</match>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[def="AA_Thorax"]/groups</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[def="AA_Thorax"]</xpath>
			<value>
				<groups>
					<li>CoveredByNaturalArmor</li>
				</groups>
			</value>
		</nomatch>
		<match Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[def="AA_Thorax"]/groups</xpath>
			<value>
				<li>CoveredByNaturalArmor</li>
			</value>
		</match>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[def="Pronotum"]/groups</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[def="Pronotum"]</xpath>
			<value>
				<groups>
					<li>CoveredByNaturalArmor</li>
				</groups>
			</value>
		</nomatch>
		<match Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[def="Pronotum"]/groups</xpath>
			<value>
				<li>CoveredByNaturalArmor</li>
			</value>
		</match>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[def="Pronotum"]/parts/li[def="InsectHead"]/groups</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[def="Pronotum"]/parts/li[def="InsectHead"]</xpath>
			<value>
				<groups>
					<li>CoveredByNaturalArmor</li>
				</groups>
			</value>
		</nomatch>
		<match Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[def="Pronotum"]/parts/li[def="InsectHead"]/groups</xpath>
			<value>
				<li>CoveredByNaturalArmor</li>
			</value>
		</match>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[def="Pronotum"]/parts/li[def="InsectHead"]/parts/li[def="AA_InsectMouth"]/groups</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[def="Pronotum"]/parts/li[def="InsectHead"]/parts/li[def="AA_InsectMouth"]</xpath>
			<value>
				<groups>
					<li>CoveredByNaturalArmor</li>
				</groups>
			</value>
		</nomatch>
		<match Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[def="Pronotum"]/parts/li[def="InsectHead"]/parts/li[def="AA_InsectMouth"]/groups</xpath>
			<value>
				<li>CoveredByNaturalArmor</li>
			</value>
		</match>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="left second leg"]/groups</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="left second leg"]</xpath>
			<value>
				<groups />
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="right second leg"]/groups</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="right second leg"]</xpath>
			<value>
				<groups />
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="left third leg"]/groups</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="left third leg"]</xpath>
			<value>
				<groups />
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="right third leg"]/groups</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[customLabel="right third leg"]</xpath>
			<value>
				<groups />
			</value>
		</nomatch>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/BodyDef[defName="AA_Arachnid"]/corePart/parts/li[def="InsectLeg"]/groups</xpath>
		<value>
			<li>CoveredByNaturalArmor</li>
		</value>
	</Operation>

</Patch>