Create WulaPatch_SearchAndDestroy.xml

This commit is contained in:
2025-08-20 17:30:33 +08:00
parent b949e6be0f
commit 36d801844e

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationInsert" MayRequire="MemeGoddess.SearchAndDestroy">
<xpath>Defs/ThinkTreeDef[defName = "WULA_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>
</Operation>
</Patch>