[Parity][panels][S3][F] 必需数据用 ?? 默认值顶上 #671

Closed
opened 2026-10-02 11:42:53 +00:00 by troytt · 1 comment
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 公认行为。

来源审计项:panels#18 — [S3][F] 必需数据用 ?? 默认值顶上

  • 位置(src/client/ui/world-panels.ts)
    • 1236-1243:hasUnidentifiedItems ?? true、deadMercenaryReviveCost ?? … ?? 0
    • 429:cost ?? 0
    • ?? ACT_WAYPOINTS[1] / ?? ACT_QUESTS[1]:2023、2280、2290、2302、2584、2663
    • WAYPOINT_ROW_OFFSETS_Y[i] ?? (60 + i * 36):2025、2304、2667
    • npcId 退到 0:1181、1245、1276、1389、3794-3796、3908-3910
    • 雇佣兵 id 一路退到 i+1:3793(entry?.nameId ?? mercId ?? id ?? i+1)
    • getStatVal 默认等级 1、maxLife 100:3995-4025
    • 队友默认 'none'、100%:组队面板
  • 影响:数据缺失时显示假值(等级 1、复活 0 金、Act 1 小站列表等),不会报错。
  • 建议:必需字段缺失就抛错。
  • 已有 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 公认行为。 ### 来源审计项:`panels#18` — [S3][F] 必需数据用 `??` 默认值顶上 - **位置**(`src/client/ui/world-panels.ts`) - 1236-1243:`hasUnidentifiedItems ?? true`、`deadMercenaryReviveCost ?? … ?? 0` - 429:`cost ?? 0` - `?? ACT_WAYPOINTS[1]` / `?? ACT_QUESTS[1]`:2023、2280、2290、2302、2584、2663 - `WAYPOINT_ROW_OFFSETS_Y[i] ?? (60 + i * 36)`:2025、2304、2667 - npcId 退到 0:1181、1245、1276、1389、3794-3796、3908-3910 - 雇佣兵 id 一路退到 `i+1`:3793(`entry?.nameId ?? mercId ?? id ?? i+1`) - `getStatVal` 默认等级 1、maxLife 100:3995-4025 - 队友默认 'none'、100%:组队面板 - **影响**:数据缺失时显示假值(等级 1、复活 0 金、Act 1 小站列表等),不会报错。 - **建议**:必需字段缺失就抛错。 - **已有 issue**:—
Author
Owner

Resolved in commit 171f7c0 (Milestone M6 Phase 1: World Panels, NPC Menus, Waypoints, Tooltips & Fail-Fast parity). Verified with tests/client/world-panels-batch6.test.ts and npm run typecheck.

Resolved in commit 171f7c0 (Milestone M6 Phase 1: World Panels, NPC Menus, Waypoints, Tooltips & Fail-Fast parity). Verified with tests/client/world-panels-batch6.test.ts and npm run typecheck.
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#671
No description provided.