feat(portal): 实装回城之书/卷轴、1.13c 城镇传送门坐标与双向传送 (#394) #488
Loading…
Reference in New Issue
No description provided.
Delete Branch "feat/issue-394-town-portal"
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?
Closes #394
变更内容 (Diablo II v1.13c Ground Truth)
src/game/portal.ts):提取Levels.txt+LvlPrest.txt各幕城镇 DS1 中 Type-2 Object #33 (Objects.txtID 59Town Portal) 的精确 Tile 并在中心子格 (tile * 5 + 3) 开启传送门;扩展TownPortalSlot.mouthInLevel(levelId)与enterFrom(levelId)实现双向生命周期(野外进城保持开启,城内返野自动关闭,对齐ObjMode.cpp:3245)。tbk) / 回城卷轴 (tsc) 背包交互与充能 (src/ui/inventory.ts,src/ui/hud-manager.ts,src/game/class-starter-profiles.ts):实装书本quantity(初始 20/20)、悬浮数量与操作提示、左键卷轴放入书本充能、右键背包内tbk/tsc施展回城传送门(城镇内拒绝施展且不扣次数)。scripts/pack-overlays.ts,src/scene/act-scene.ts):提取并烘焙tptrlitophth.dcc/tphdlitophth.dcc(OP 15 帧开启) 与tptrlitonhth.dcc/tphdlitonhth.dcc(ON 15 帧循环),支持蓝光照明 (Light=19,RGB=(64,110,255))、头顶目的地标签 (传送门 -> <目标区域>)、近距离左键点击或心灵传动 (Skill 43) 双向传送。tests/town-portal.test.ts单元测试(6/6 通过)并通过无头 Chrome CDP 全流程端到端验证。2fe9138fb1to7295dc8b3e