refactor(map-gen/preset): 将混沌避难所(Level 108)移入固定地图管线,移除野外特例硬编码 #45
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?
背景与现状
第四幕的混沌避难所(Chaos Sanctuary / Level 108)是第四幕最终决战场景。当前 TS 实现中,将其脱离了预制地图管线,而在
src/game/wilderness.ts:2525(stampAct4ChaosSanctuary)中作为野外地图的一个特例分支,硬编码拼接了 7 个十字翼预设。暗黑2原版逻辑(Oracle / Ground Truth)
Levels.txt中,混沌避难所属于标准预制地图(DrlgType == 2),并非野外地形。差异点与缺陷表现
解决建议与改造方案
wilderness.ts,归入 Preset 地图处理管线。已在分支
fix/issue-45中真实修复并验证通过。Commit:
72aa835验证项:
tests/preset.test.ts)npx tsc --noEmit)npm run build)