<?xml version="1.0" encoding="utf-8"?>
<Patch>
	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ScenarioDef[defName="NyaronStart"]/scenario/parts</xpath>
		<value>
			<li Class="ScenPart_StartingThing_Defined">
				<def>StartingThing_Defined</def>
				<thingDef>Ammo_NyaronCell</thingDef>
				<count>240</count>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ScenarioDef[defName="NyaronStart_butler"]/scenario/parts</xpath>
		<value>
			<li Class="ScenPart_StartingThing_Defined">
				<def>StartingThing_Defined</def>
				<thingDef>Ammo_303British_FMJ</thingDef>
				<count>100</count>
			</li>
			<li Class="ScenPart_StartingThing_Defined">
				<def>StartingThing_Defined</def>
				<thingDef>Ammo_NyaronCell</thingDef>
				<count>60</count>
			</li>
		</value>
	</Operation>

	<!--Add material filter to faction for MIB type events-->

	<Operation Class="PatchOperationConditional">
		<xpath>Defs/FactionDef[@Name="NyaronFactionBase"]/apparelStuffFilter</xpath>
		<match Class="PatchOperationConditional">
			<xpath>Defs/FactionDef[@Name="NyaronFactionBase"]/apparelStuffFilter/thingDefs</xpath>
			<match Class="PatchOperationConditional">
				<xpath>Defs/FactionDef[@Name="NyaronFactionBase"]/apparelStuffFilter/thingDefs/li["Steel"]</xpath>
				<match Class="PatchOperationReplace">
					<xpath>Defs/FactionDef[@Name="NyaronFactionBase"]/apparelStuffFilter/thingDefs/li["Steel"]</xpath>
					<value>
						<li>Steel</li>
					</value>
				</match>
				<nomatch Class="PatchOperationAdd">
					<xpath>Defs/FactionDef[@Name="NyaronFactionBase"]/apparelStuffFilter/thingDefs</xpath>
					<value>
						<li>Steel</li>
					</value>
				</nomatch>
			</match>
			<nomatch Class="PatchOperationAdd">
				<xpath>Defs/FactionDef[@Name="NyaronFactionBase"]/apparelStuffFilter</xpath>
				<value>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</value>
			</nomatch>
		</match>
		<nomatch Class="PatchOperationAdd">
			<xpath>Defs/FactionDef[@Name="NyaronFactionBase"]</xpath>
			<value>
				<apparelStuffFilter>
					<thingDefs>
						<li>Steel</li>
					</thingDefs>
				</apparelStuffFilter>
			</value>
		</nomatch>
	</Operation>
</Patch>