feat(map-gen/maze): 补齐 11 个官方核心地下城专属 Pass(塔拉夏真假墓、蛆虫巢穴、墨菲斯托大厅等) #49

Closed
opened 2026-09-17 05:20:39 +00:00 by troytt · 1 comment
Owner

背景与现状

在 src/game/maze.ts:742-754 中,显式列出了 11 个未实现的特殊生成 Pass:

const UNIMPLEMENTED_PASSES: readonly string[] = [
  'DRLGMAZE_PlaceAct2TombStuff',
  'DRLGMAZE_PlaceAct2LairStuff',
  'DRLGMAZE_PlaceAct3DungeonStuff',
  'DRLGMAZE_PlaceAct3SewerStuff',
  'DRLGMAZE_PlaceAct3MephistoStuff',
  'DRLGMAZE_PlaceAct5TempleStuff',
  'DRLGMAZE_PlaceAct5BaalStuff',
  'DRLGMAZE_PlaceAct5IceStuff',
  'DRLGMAZE_PlaceAct1Barracks',
  'DRLGMAZE_PlaceAct4Lava',
  'DRLGMAZE_ScanReplaceSpecialAct2SewersPresets',
]

暗黑2原版逻辑(Oracle / Ground Truth)

这 11 个 Pass 承载了暗黑2几乎所有地下城任务核心场景的生成逻辑:

  1. PlaceAct2TombStuff: 塔拉夏7墓真墓插杖插座(Orifice)与6座假墓的金箱子守护房间。
  2. PlaceAct2LairStuff: 蛆虫巢穴第3层钻地虫(Coldworm)房间与王者之杖宝箱。
  3. PlaceAct3DungeonStuff: 剥皮地道大脑箱子房间与残破神殿蓝依森之书祭坛房间。
  4. PlaceAct3SewerStuff: 库拉斯特下水道1层排水拉杆与开启2层的排水口。
  5. PlaceAct3MephistoStuff: 憎恨囚牢3层鲜血护城河、议会大厅与通往第4幕的红门。
  6. PlaceAct5TempleStuff: 瓦特之厅四向十字分支与尼拉塞克祭坛。
  7. PlaceAct5BaalStuff: 毁灭王座与巴尔平台。
  8. PlaceAct5IceStuff: 冰河安雅冰冻平台。
  9. PlaceAct1Barracks: 修道院军营铁匠与恰西铁锤铁砧。
  10. PlaceAct4Lava: 地狱熔炉与海法斯特。
  11. ScanReplaceSpecialAct2SewersPresets: 鲁高因下水道罗达门特平台。

解决建议与改造方案

制定各幕专属地下城 Pass 完善计划,分阶段逐一补齐各核心地下城任务与地标场景的生成逻辑。

## 背景与现状 在 `src/game/maze.ts:742-754` 中,显式列出了 11 个未实现的特殊生成 Pass: ```ts const UNIMPLEMENTED_PASSES: readonly string[] = [ 'DRLGMAZE_PlaceAct2TombStuff', 'DRLGMAZE_PlaceAct2LairStuff', 'DRLGMAZE_PlaceAct3DungeonStuff', 'DRLGMAZE_PlaceAct3SewerStuff', 'DRLGMAZE_PlaceAct3MephistoStuff', 'DRLGMAZE_PlaceAct5TempleStuff', 'DRLGMAZE_PlaceAct5BaalStuff', 'DRLGMAZE_PlaceAct5IceStuff', 'DRLGMAZE_PlaceAct1Barracks', 'DRLGMAZE_PlaceAct4Lava', 'DRLGMAZE_ScanReplaceSpecialAct2SewersPresets', ] ``` ## 暗黑2原版逻辑(Oracle / Ground Truth) 这 11 个 Pass 承载了暗黑2几乎所有地下城任务核心场景的生成逻辑: 1. `PlaceAct2TombStuff`: 塔拉夏7墓真墓插杖插座(Orifice)与6座假墓的金箱子守护房间。 2. `PlaceAct2LairStuff`: 蛆虫巢穴第3层钻地虫(Coldworm)房间与王者之杖宝箱。 3. `PlaceAct3DungeonStuff`: 剥皮地道大脑箱子房间与残破神殿蓝依森之书祭坛房间。 4. `PlaceAct3SewerStuff`: 库拉斯特下水道1层排水拉杆与开启2层的排水口。 5. `PlaceAct3MephistoStuff`: 憎恨囚牢3层鲜血护城河、议会大厅与通往第4幕的红门。 6. `PlaceAct5TempleStuff`: 瓦特之厅四向十字分支与尼拉塞克祭坛。 7. `PlaceAct5BaalStuff`: 毁灭王座与巴尔平台。 8. `PlaceAct5IceStuff`: 冰河安雅冰冻平台。 9. `PlaceAct1Barracks`: 修道院军营铁匠与恰西铁锤铁砧。 10. `PlaceAct4Lava`: 地狱熔炉与海法斯特。 11. `ScanReplaceSpecialAct2SewersPresets`: 鲁高因下水道罗达门特平台。 ## 解决建议与改造方案 制定各幕专属地下城 Pass 完善计划,分阶段逐一补齐各核心地下城任务与地标场景的生成逻辑。
Author
Owner

修复完成并验证通过

  • 关联分支: fix/issue-49
  • 提交记录: 81d2172
  • 核心改动:
    1. 新增 src/game/maze-special-passes.ts(994 行高保真移植),完整实现官方全部 11 个核心专属地下城 Pass(塔拉夏真假墓、蛆虫巢穴钻地虫、剥皮地牢脑宝箱、残破神殿蓝·森古书祭坛、库拉斯特下水道水闸、憎恨囚牢墨菲斯托大厅与红门、沃特之厅尼拉塞克祭坛、毁灭王座巴尔台座、冰河救安雅冰台、修道院兵营恰西铁砧与地狱熔炉海法斯特等);
    2. 将 11 个 Pass 挂载至 MAZE_LEVEL_TYPE_PROFILES,将 UNIMPLEMENTED_PASSES 清空为 [];
    3. 新增 tests/maze-special-passes.test.ts(27/27 项单测全绿),全量 657 项测试无回归,npx tsc --noEmit 0 报错。
### 修复完成并验证通过 - **关联分支**: `fix/issue-49` - **提交记录**: `81d2172` - **核心改动**: 1. 新增 `src/game/maze-special-passes.ts`(994 行高保真移植),完整实现官方全部 11 个核心专属地下城 Pass(塔拉夏真假墓、蛆虫巢穴钻地虫、剥皮地牢脑宝箱、残破神殿蓝·森古书祭坛、库拉斯特下水道水闸、憎恨囚牢墨菲斯托大厅与红门、沃特之厅尼拉塞克祭坛、毁灭王座巴尔台座、冰河救安雅冰台、修道院兵营恰西铁砧与地狱熔炉海法斯特等); 2. 将 11 个 Pass 挂载至 `MAZE_LEVEL_TYPE_PROFILES`,将 `UNIMPLEMENTED_PASSES` 清空为 `[]`; 3. 新增 `tests/maze-special-passes.test.ts`(27/27 项单测全绿),全量 657 项测试无回归,`npx tsc --noEmit` 0 报错。
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: troytt/diablo2-web#49
No description provided.