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

	<!-- ========== Patch defend range ========== -->

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/DutyDef[defName="Defend"]/thinkNode/subNodes/li[@Class="JobGiver_AIDefendPoint"]/targetAcquireRadius</xpath>
		<value>
			<targetAcquireRadius>86</targetAcquireRadius>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/DutyDef[defName="Defend"]/thinkNode/subNodes/li[@Class="JobGiver_AIDefendPoint"]/targetKeepRadius</xpath>
		<value>
			<targetKeepRadius>93</targetKeepRadius>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/DutyDef[defName="Defend"]/thinkNode/subNodes/li[@Class="ThinkNode_ForbidOutsideFlagRadius"]/maxDistToSquadFlag</xpath>
		<value>
			<maxDistToSquadFlag>32</maxDistToSquadFlag>
		</value>
	</Operation>

	<Operation Class="PatchOperationReplace">
		<xpath>Defs/DutyDef[defName="Defend"]/thinkNode/subNodes/li[@Class="JobGiver_WanderNearDutyLocation"]/wanderRadius</xpath>
		<value>
			<wanderRadius>12</wanderRadius>
		</value>
	</Operation>

	<!-- ========== Patch siege duties ========== -->

	<Operation Class="PatchOperationAttributeSet">
		<xpath>Defs/DutyDef/thinkNode/subNodes/li[@Class="JobGiver_ManTurretsNearSelf"]</xpath>
		<attribute>Class</attribute>
		<value>CombatExtended.JobGiver_ManTurretsNearSelfCE</value>
	</Operation>

	<Operation Class="PatchOperationAttributeSet">
		<xpath>Defs/DutyDef/thinkNode/subNodes/li[@Class="JobGiver_ManTurretsNearPoint"]</xpath>
		<attribute>Class</attribute>
		<value>CombatExtended.JobGiver_ManTurretsNearPointCE</value>
	</Operation>

</Patch>