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

	<Operation Class="PatchOperationRemove">
		<xpath>Defs/ThingDef[defName="Apparello_Bandit" or defName="Apparello_Bandal" or defName="Apparello_Beret" or defName="Apparello_Brimsk" or defName="Apparello_Cyninja" or defName="Apparello_Footy" or defName="Apparello_Gassy" or defName="Apparello_Goggles" or defName="Apparello_Headset" or defName="Apparello_Hoood" or defName="Apparello_Medband" or defName="Apparel_Psymask" or defName="Apparello_Raz" or defName="Apparello_Vandal" or defName="Apparello_Shadess" or defName="Apparello_Docteur" or defName="Apparello_Visoor"]/apparel/layers/li[.="Overhead"]</xpath>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparello_Cyninja" or defName="Apparello_Cybissar" or defName="Apparello_Doom" or defName="Apparello_Meffect" or defName="Apparello_Meffectwo" or defName="Apparello_Kurt" or defName="Apparello_Kurtlite" or defName="Apparello_ProtoFin" or defName="Apparello_Proto" or defName="Apparello_Rockman" or defName="Apparello_Wendywelder" or defName="Apparello_Yi" or defName="Apparello_Brimsk" or defName="Apparello_Gassy" or defName="Apparello_Goggles" or defName="Apparello_Headset" or defName="Apparel_Psymask" or defName="Apparello_Shadess" or defName="Apparello_Docteur" or defName="Apparello_Visoor" or defName="Apparello_Sandtrader" or defName="Apparello_Zorro"]/apparel/layers</xpath>
		<value>
			<li>StrappedHead</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThingDef[defName="Apparello_Cyninja" or defName="Apparello_Cybissar" or defName="Apparello_ProtoFin" or defName="Apparello_Proto" or defName="Apparello_Headset" or defName="Apparello_Docteur" or defName="Apparello_Footy" or defName="Apparello_Medband" or defName="Apparello_Vandal"]/apparel/layers</xpath>
		<value>
			<li>OnHead</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Tribalshield"]/apparel/layers/li[.="Shell"]</xpath>
		<value>
			<li>Shield</li>
		</value>
	</Operation>
	<!-- ====================== Bandit ===================== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Bandit"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Overhead</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Bandit"]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>Neck</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<!-- ====================== Beret ===================== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Beret"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Overhead</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Beret"]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>UpperHead</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<!-- ====================== Bandal ===================== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Bandal"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Overhead</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Bandal"]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>UpperHead</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<!-- ====================== Hood ===================== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Hoood"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Overhead</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Hoood"]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>UpperHead</li>
				<li>Neck</li>
				<li>Ears</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<!-- ====================== Raz ===================== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Raz"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>Overhead</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Raz"]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>UpperHead</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<!-- ====================== Shades ===================== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Shadess"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>StrappedHead</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Shadess"]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>Eyes</li>
			</bodyPartGroups>
		</value>
	</Operation>

	<!-- ====================== Aviator Sunglasses ===================== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Piloggle"]/apparel/layers</xpath>
		<value>
			<layers>
				<li>StrappedHead</li>
			</layers>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/ThingDef[defName="Apparello_Piloggle"]/apparel/bodyPartGroups</xpath>
		<value>
			<bodyPartGroups>
				<li>Eyes</li>
			</bodyPartGroups>
		</value>
	</Operation>

</Patch>