<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Ideology</li>
		</mods>
		<match Class="PatchOperationSequence">
			<operations>

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

				<!-- head -->
				<li Class="PatchOperationConditional">
					<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalHead"]/groups</xpath>
					<nomatch Class="PatchOperationAdd">
						<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalHead"]</xpath>
						<value>
							<groups>
								<li>CoveredByNaturalArmor</li>
							</groups>
						</value>
					</nomatch>
					<match Class="PatchOperationAdd">
						<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalHead"]/groups</xpath>
						<value>
							<li>CoveredByNaturalArmor</li>
						</value>
					</match>
				</li>
	
				<li Class="PatchOperationConditional">
					<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]/groups</xpath>
					<nomatch Class="PatchOperationAdd">
						<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]</xpath>
						<value>
							<groups>
								<li>CoveredByNaturalArmor</li>
							</groups>
						</value>
					</nomatch>
					<match Class="PatchOperationAdd">
						<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SightSensor"]/groups</xpath>
						<value>
							<li>CoveredByNaturalArmor</li>
						</value>
					</match>
				</li>

				<li Class="PatchOperationConditional">
					<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]/groups</xpath>
					<nomatch Class="PatchOperationAdd">
						<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]</xpath>
						<value>
							<groups>
								<li>CoveredByNaturalArmor</li>
							</groups>
						</value>
					</nomatch>
					<match Class="PatchOperationAdd">
						<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="HearingSensor"]/groups</xpath>
						<value>
							<li>CoveredByNaturalArmor</li>
						</value>
					</match>
				</li>

				<li Class="PatchOperationConditional">
					<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]/groups</xpath>
					<nomatch Class="PatchOperationAdd">
						<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]</xpath>
						<value>
							<groups>
								<li>CoveredByNaturalArmor</li>
							</groups>
						</value>
					</nomatch>
					<match Class="PatchOperationAdd">
						<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalHead"]/parts/li[def="SmellSensor"]/groups</xpath>
						<value>
							<li>CoveredByNaturalArmor</li>
						</value>
					</match>
				</li>

				<!-- MechanicalArm -->
				<li Class="PatchOperationConditional">
					<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalArm"]/groups</xpath>
					<nomatch Class="PatchOperationAdd">
						<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalArm"]</xpath>
						<value>
							<groups>
								<li>CoveredByNaturalArmor</li>
							</groups>
						</value>
					</nomatch>
					<match Class="PatchOperationAdd">
						<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="MechanicalArm"]/groups</xpath>
						<value>
							<li>CoveredByNaturalArmor</li>
						</value>
					</match>
				</li>

				<!-- MechanicalLeg -->
				<li Class="PatchOperationConditional">
					<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="SmallMechanicalLeg"]/groups</xpath>
					<nomatch Class="PatchOperationAdd">
						<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="SmallMechanicalLeg"]</xpath>
						<value>
							<groups>
								<li>CoveredByNaturalArmor</li>
							</groups>
						</value>
					</nomatch>
					<match Class="PatchOperationAdd">
						<xpath>Defs/BodyDef[defName="Mech_Companion"]/corePart/parts/li[def="SmallMechanicalLeg"]/groups</xpath>
						<value>
							<li>CoveredByNaturalArmor</li>
						</value>
					</match>
				</li>

			</operations>
		</match>
	</Operation>
</Patch>