Files
ArachnaeSwarm/1.6/1.6/Patches/ARA_SearchAndDestroy.xml
2025-10-21 01:33:29 +08:00

29 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Search and Destroy (Continued)</li>
</mods>
<match Class="PatchOperationInsert">
<xpath>Defs/ThinkTreeDef[defName = "ARA_Humanlike"]/thinkRoot[@Class ="ThinkNode_Priority"]/subNodes/li[@Class="ThinkNode_ConditionalColonist"]</xpath> <!--Priority
is important here, hence the insert after this specific subNode-->
<value>
<!-- Do search and destroy instead of waiting -->
<li Class="SearchAndDestroy.ThinkNode_ConditionalSearchAndDestroy">
<subNodes>
<li Class="ThinkNode_Priority">
<subNodes>
<!-- <li Class="JobGiver_MoveToStandable"/> -->
<li Class="SearchAndDestroy.JobGiver_AIFightEnemiesShortExp">
<targetAcquireRadius>200</targetAcquireRadius>
<targetKeepRadius>72</targetKeepRadius>
</li>
<li Class="SearchAndDestroy.JobGiver_GoWithinRangeOfHostile" />
</subNodes>
</li>
</subNodes>
</li>
</value>
</match>
</Operation>
</Patch>