[Parity][map][S2][F] 自动地图右上角难度恒为英文 "Normal" #628
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?
来源审计项:
map#9— [S2][F] 自动地图右上角难度恒为英文 "Normal"位置:
src/client/ui/minimap.ts:1205-1214:const difficulty = options?.difficulty ?? level.difficulty ?? 'Normal'。x: 800 - 16只进入统计信息,实际绘制用logicalWidth - 16(1264),不可见。minimap.ts:1270-1277:绘制第二行。buildMinimapLevel(automap-view.ts:599-612)和 world-renderer(1207-1225)都不提供difficulty。代码:
原版: 难度显示与否、字符串来源都待确认(见第 3 节第 2 条)。无论如何,不应在 Nightmare/Hell 显示 Normal,也不应在中文界面显示英文字面量。证据:?
影响: 噩梦 / 地狱难度下显示 "Normal";中文界面在任何难度下都显示英文 "Normal"。
建议: 从会话难度取值,字符串走 tbl。数据缺失时报错,不要用字面量兜底。若核实原版不显示难度,则删除这一行。
已有 issue: —