Skip to content

Commit c13bdbc

Browse files
Patch for traders rescuing allies
1 parent 8079f35 commit c13bdbc

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Patches/PatchInRescueBehavior.xml

+27
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,33 @@
109109
</value>
110110
</li>
111111

112+
<!-- ExitMapBestAndDefendSelf duty used by traders who are leaving -->
113+
<li Class="PatchOperationReplace">
114+
<xpath>/Defs/DutyDef[defName="ExitMapBestAndDefendSelf"]/thinkNode</xpath>
115+
<value>
116+
<thinkNode Class="ThinkNode_Priority">
117+
<subNodes>
118+
<li Class="JobGiver_AIDefendSelf">
119+
<targetAcquireRadius>35</targetAcquireRadius>
120+
<targetKeepRadius>40</targetKeepRadius>
121+
</li>
122+
<li Class="CM_No_Pawn_Left_Behind.JobGiver_Rescue">
123+
<rescueChance>1.00</rescueChance>
124+
<searchRadius>20.0</searchRadius>
125+
<opinionPriorityWeight>1.0</opinionPriorityWeight>
126+
<marketValuePriorityWeight>1.0</marketValuePriorityWeight>
127+
<distancePriorityWeight>1.0</distancePriorityWeight>
128+
<healthSearchDistanceWeight>1.0</healthSearchDistanceWeight>
129+
</li>
130+
<li Class="JobGiver_ExitMapBest">
131+
<defaultLocomotion>Walk</defaultLocomotion>
132+
<jobMaxDuration>120</jobMaxDuration>
133+
</li>
134+
</subNodes>
135+
</thinkNode>
136+
</value>
137+
</li>
138+
112139
</operations>
113140
</Operation>
114141

0 commit comments

Comments
 (0)