已更新 get_map_pawns 支持显示死亡 pawn(通过扫描地图上的 Corpse 并输出 InnerPawn):

代码:Source/WulaFallenEmpire/EventSystem/AI/Tools/Tool_GetMapPawns.cs
默认 includeDead=true,会把尸体里的 pawn 也列出来,并在 tags 里标 dead
新增过滤项 dead(也支持中文别名 死亡/尸体)
文档同步:Source/WulaFallenEmpire/EventSystem/AI/UI/Dialog_AIConversation.cs
已重新编译输出:1.6/1.6/Assemblies/WulaFallenEmpire.dll
用法示例:

只看死亡:<get_map_pawns><filter>dead</filter></get_map_pawns>
排除死亡:<get_map_pawns><includeDead>false</includeDead></get_map_pawns>
This commit is contained in:
2025-12-14 13:19:18 +08:00
parent f4f5b58995
commit 002f407482
3 changed files with 91 additions and 27 deletions

View File

@@ -183,15 +183,16 @@ Usage:
Description: Scans the current map and lists pawns. Supports filtering by relation/type/status.
Use this tool when:
- You need to know what pawns are present on the map (raiders, visitors, animals, mechs, colonists).
- The player claims there are threats or asks about who/what is nearby.
Parameters:
- filter: (OPTIONAL) Comma-separated filters: friendly, hostile, neutral, colonist, animal, mech, humanlike, prisoner, slave, guest, wild, downed.
- maxResults: (OPTIONAL) Max lines to return (default 50).
Usage:
<get_map_pawns>
- The player claims there are threats or asks about who/what is nearby.
Parameters:
- filter: (OPTIONAL) Comma-separated filters: friendly, hostile, neutral, colonist, animal, mech, humanlike, prisoner, slave, guest, wild, downed, dead.
- includeDead: (OPTIONAL) true/false, include corpse pawns (default true).
- maxResults: (OPTIONAL) Max lines to return (default 50).
Usage:
<get_map_pawns>
<filter>hostile, humanlike</filter>
<maxResults>50</maxResults>
</get_map_pawns>
</get_map_pawns>
## call_bombardment
Description: Calls orbital bombardment support at a specified map coordinate using an AbilityDef's bombardment configuration (e.g., WULA_Firepower_Cannon_Salvo).