Skip to content

Commit

Permalink
feat(pkuxkx): 优化逍遥行,目标优先到城市中心而不是边缘地带
Browse files Browse the repository at this point in the history
  • Loading branch information
dzpao committed Mar 31, 2024
1 parent 6087df1 commit 24d8e0b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mud/pkuxkx/plugins/basic/map/xiaoyao.tin
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,11 @@ event.HandleOnce {map/init} {map/xiaoyao} {map} {xiaoyao.Init};
// 关于 walk 命令的细节可以参考 help walk。
// };
#alias {xiaoyao.Goto} {
#local target {%1};
#local target {@xiaoyao.locateByName{%1}};
#local hook {%2};
#local retry {@defaultNum{%3;0}};

#if { "%1" == "" } {
#if { "$target" == "" } {
xtt.Usage xiaoyao.Goto {<169>这里是 PaoTin++ 逍遥行};
#return;
};
Expand Down Expand Up @@ -483,6 +483,10 @@ event.HandleOnce {map/init} {map/xiaoyao} {map} {xiaoyao.Init};
#return {};
};

#if { &map.xiaoyao.map[=$name] > 0 } {
#return {$name};
};

#local nodes {@table.Keys{map.xiaoyao.map;%*$name%*}};
#local best {};
#local normal {};
Expand Down

0 comments on commit 24d8e0b

Please sign in to comment.