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

	<!-- ========== Add combat frenzy mental break ========== -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/ThinkTreeDef[defName="MentalStateCritical"]/thinkRoot/subNodes</xpath>
		<value>
			<li Class="ThinkNode_ConditionalMentalState">
				<state>CombatFrenzy</state>
				<subNodes>
					<li Class="ThinkNode_Priority">
						<subNodes>
							<li Class="JobGiver_AIFightEnemies" />
							<li Class="JobGiver_WanderAnywhere">
								<maxDanger>Deadly</maxDanger>
							</li>
						</subNodes>
					</li>
				</subNodes>
			</li>
			<li Class="ThinkNode_ConditionalMentalState">
				<state>ShellShock</state>
				<subNodes>
					<li Class="JobGiver_KeepLyingDown" />
				</subNodes>
			</li>
		</value>
	</Operation>

</Patch>