<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<Operation Class="PatchOperationFindMod">
		<mods>
			<li>Rimefeller</li>
		</mods>

		<!-- If Rimefeller is also installed, have the PASGT helmets require Synthamide for crafting -->
		<match Class="PatchOperationSequence">
			<operations>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[
						defName="RNApparel_PASGTDCUHelmet" or
						defName="RNApparel_PASGTM81Helmet"
						]/costList </xpath>
					<value>
						<costList>
							<Synthamide>10</Synthamide>
						</costList>
					</value>
				</li>
			</operations>
		</match>

		<!-- Otherwise, default to Devilstrand -->
		<nomatch Class="PatchOperationSequence">
			<operations>

				<li Class="PatchOperationReplace">
					<xpath>Defs/ThingDef[
						defName="RNApparel_PASGTDCUHelmet" or
						defName="RNApparel_PASGTM81Helmet"
						]/costList </xpath>
					<value>
						<costList>
							<DevilstrandCloth>10</DevilstrandCloth>
						</costList>
					</value>
				</li>
			</operations>

		</nomatch>

	</Operation>
</Patch>