<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<Operation Class="PatchOperationConditional">
		<xpath>Defs/BodyDef[defName="Arachnid"]/corePart/groups</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="Arachnid"]/corePart</xpath>
			<value>
				<groups>
					<li>CoveredByNaturalArmor</li>
				</groups>
			</value>
		</nomatch>
		<match Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="Arachnid"]/corePart/groups</xpath>
			<value>
				<li>CoveredByNaturalArmor</li>
			</value>
		</match>
	</Operation>

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

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

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/BodyDef[defName="Arachnid"]/corePart/parts/li[def="Pronotum"]/parts/li[def="InsectHead"]/groups</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="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="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="Arachnid"]/corePart/parts/li[def="InsectLeg"]/groups</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="Arachnid"]/corePart/parts/li[def="InsectLeg"]</xpath>
			<value>
				<groups>
					<li>CoveredByNaturalArmor</li>
				</groups>
			</value>
		</nomatch>
		<match Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="Arachnid"]/corePart/parts/li[def="InsectLeg"]/groups</xpath>
			<value>
				<li>CoveredByNaturalArmor</li>
			</value>
		</match>
	</Operation>

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

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

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

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/BodyDef[defName="ArachnidScorpion"]/corePart/parts/li[def="Pronotum"]/parts/li[def="InsectHead"]/groups</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="ArachnidScorpion"]/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="ArachnidScorpion"]/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="ArachnidScorpion"]/corePart/parts/li[def="InsectLeg"]/groups</xpath>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="ArachnidScorpion"]/corePart/parts/li[def="InsectLeg"]</xpath>
			<value>
				<groups>
					<li>CoveredByNaturalArmor</li>
				</groups>
			</value>
		</nomatch>
		<match Class="PatchOperationAdd">
			<xpath>Defs/BodyDef[defName="ArachnidScorpion"]/corePart/parts/li[def="InsectLeg"]/groups</xpath>
			<value>
				<li>CoveredByNaturalArmor</li>
			</value>
		</match>
	</Operation>
</Patch>