[Parity][map][S2][F] 自动地图右上角难度恒为英文 "Normal" #628

Closed
opened 2026-10-02 11:42:48 +00:00 by troytt · 0 comments
Owner

1.13c 客户端保真度审计立项(基准快照:7bd1090 / main @ 77a20c7)

证据标记说明:V-data = 1.13c MPQ 数据表 (.txt / animdata.d2 / .tbl / pal.pl2);V-src = D2MOO 逆向源码;V-bin = 1.13c DLL 反汇编;K = 1.13c 公认行为。

来源审计项:map#9 — [S2][F] 自动地图右上角难度恒为英文 "Normal"

位置:

  • src/client/ui/minimap.ts:1205-1214:const difficulty = options?.difficulty ?? level.difficulty ?? 'Normal'。
  • 1211 处 x: 800 - 16 只进入统计信息,实际绘制用 logicalWidth - 16(1264),不可见。
  • minimap.ts:1270-1277:绘制第二行。
  • buildMinimapLevel(automap-view.ts:599-612)和 world-renderer(1207-1225)都不提供 difficulty。

代码:

const difficulty = options?.difficulty ?? level.difficulty ?? 'Normal'

原版: 难度显示与否、字符串来源都待确认(见第 3 节第 2 条)。无论如何,不应在 Nightmare/Hell 显示 Normal,也不应在中文界面显示英文字面量。证据:?

影响: 噩梦 / 地狱难度下显示 "Normal";中文界面在任何难度下都显示英文 "Normal"。

建议: 从会话难度取值,字符串走 tbl。数据缺失时报错,不要用字面量兜底。若核实原版不显示难度,则删除这一行。

已有 issue: —

> **1.13c 客户端保真度审计立项**(基准快照:`7bd1090` / `main @ 77a20c7`) > 证据标记说明:`V-data` = 1.13c MPQ 数据表 (`.txt` / `animdata.d2` / `.tbl` / `pal.pl2`);`V-src` = D2MOO 逆向源码;`V-bin` = 1.13c DLL 反汇编;`K` = 1.13c 公认行为。 ### 来源审计项:`map#9` — [S2][F] 自动地图右上角难度恒为英文 "Normal" **位置:** - `src/client/ui/minimap.ts:1205-1214`:`const difficulty = options?.difficulty ?? level.difficulty ?? 'Normal'`。 - 1211 处 `x: 800 - 16` 只进入统计信息,实际绘制用 `logicalWidth - 16`(1264),不可见。 - `minimap.ts:1270-1277`:绘制第二行。 - `buildMinimapLevel`(`automap-view.ts:599-612`)和 world-renderer(1207-1225)都不提供 `difficulty`。 **代码:** ```ts const difficulty = options?.difficulty ?? level.difficulty ?? 'Normal' ``` **原版:** 难度显示与否、字符串来源都待确认(见第 3 节第 2 条)。无论如何,不应在 Nightmare/Hell 显示 Normal,也不应在中文界面显示英文字面量。证据:? **影响:** 噩梦 / 地狱难度下显示 "Normal";中文界面在任何难度下都显示英文 "Normal"。 **建议:** 从会话难度取值,字符串走 tbl。数据缺失时报错,不要用字面量兜底。若核实原版不显示难度,则删除这一行。 **已有 issue:** —
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#628
No description provided.