Skip to content

Commit

Permalink
SQUASH: feat(pkuxkx/map/xiaoyao): 逍遥行 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dzpao committed May 4, 2024
1 parent 44e42be commit 9c75820
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mud/pkuxkx/plugins/basic/map/xiaoyao.tin
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ load-module basic/busy;

event.HandleOnce {map/init} {map/xiaoyao} {map} {xiaoyao.Init};

VAR {逍遥行正在赶路} {xiaoyao.under-way} {0};

#alias {xiaoyao.Init} {
event.Handle {map/GotRoomInfo} {xiaoyao.try-locate} {map/xiaoyao} {xiaoyao.try-locate};
storage.Load {map-xiaoyao} {map.xiaoyao.map;map.xiaoyao.room};
Expand Down Expand Up @@ -415,6 +417,7 @@ event.HandleOnce {map/init} {map/xiaoyao} {map} {xiaoyao.Init};
prompt.Set {{walk}{<139>正在前往 <129>$target[room]<139>...<299>}};

#line sub var event.HandleOnce map/walk/continue {xiaoyao/goto} {map/xiaoyao} {xiaoyao.walk-end $hook};
#var xiaoyao.under-way {1};
map.WalkNodes {$target[path]} {xiaoyao/goto};
};

Expand All @@ -431,13 +434,15 @@ event.HandleOnce {map/init} {map/xiaoyao} {map} {xiaoyao.Init};
event.DelayEmit map/walk/continue {$hook};
};

#var xiaoyao.under-way {0};

#nop 配合 try-locate 进行定位。;
look;
};

#alias {xiaoyao.try-locate} {
#nop 移动中,位置随时会变。;
#if { ! @ga.AllDone{} } {
#if { ! @ga.AllDone{} || $xiaoyao.under-way } {
#return;
};

Expand Down

0 comments on commit 9c75820

Please sign in to comment.