feat(wilderness): 还原 DRLGOUTDOORS_SpawnAct12Waypoint 小站与神殿拓扑放置算法 #68
Labels
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: troytt/diablo2-web#68
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
在原版暗黑 2 中,野外小站(Waypoints)与神殿(Shrines)由
DRLGOUTDOORS_SpawnAct12Waypoint精确判定:而当前 Web 引擎在
src/game/level-links.ts中明确标明findWaypointSpot是一个临时占位符(stand-in):它简单地在碰撞网格中从关卡中心(gridWidth / 2, gridHeight / 2)往外做欧氏距离 BFS 寻找第一个可行走格。这常导致小站被甩在关卡中央的死角或奇怪的泥坑中。改造内容
DRLGOUTDOORS_SpawnAct12Waypoint原版逻辑:findWaypointSpot中心 BFS 占位符:验收标准
findWaypointSpot的中心 BFS 占位符npm run typecheck零错误,npx vitest run全绿