[Parity][render][S3][F] unit-drawables / scene-source 里零散的默认值和偏置 #620

Closed
opened 2026-10-02 11:42:47 +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 公认行为。

来源审计项:render#20 — [S3][F] unit-drawables / scene-source 里零散的默认值和偏置

  • 位置:
    • src/client/view/unit-drawables.ts:636-642:warp radiusX ?? 28、radiusY ?? 20,名字缺失时显示自造文案 `Entrance (${warpId})`
    • :253-256:item 的 name 如果是 3-4 位字母数字就当作 code
    • :656:frame: unit.frame ?? (item ? 0 : tick % 8)
    • :447:totalFrames ?? 16;:469:blendMode ?? 'additive';:474:token `OVL_${id}`
    • :661、:419、:480:sortY 偏置(尸体 −16、missile +4、overlay +1)
    • :550-552:用 lifePct <= 0 推断尸体(在线路径传的是 isCorpse,不受影响)
    • src/client/view/scene-source.ts:227-239:getLevelId / getActId 默认 1
  • 影响:大多只在数据缺失时出现;sortY 偏置会让尸体、missile 与墙体或单位的遮挡顺序和原版不同(原版按单位所在位置和绘制层排序,K-中)。
  • 建议:必需字段缺失时报错;排序按原版规则(单位脚点 + 层),去掉经验偏置。
  • 已有 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 公认行为。 ### 来源审计项:`render#20` — [S3][F] unit-drawables / scene-source 里零散的默认值和偏置 - 位置: - `src/client/view/unit-drawables.ts:636-642`:warp `radiusX ?? 28`、`radiusY ?? 20`,名字缺失时显示自造文案 `` `Entrance (${warpId})` `` - `:253-256`:item 的 name 如果是 3-4 位字母数字就当作 code - `:656`:`frame: unit.frame ?? (item ? 0 : tick % 8)` - `:447`:`totalFrames ?? 16`;`:469`:`blendMode ?? 'additive'`;`:474`:token `` `OVL_${id}` `` - `:661`、`:419`、`:480`:sortY 偏置(尸体 −16、missile +4、overlay +1) - `:550-552`:用 `lifePct <= 0` 推断尸体(在线路径传的是 `isCorpse`,不受影响) - `src/client/view/scene-source.ts:227-239`:`getLevelId` / `getActId` 默认 1 - 影响:大多只在数据缺失时出现;sortY 偏置会让尸体、missile 与墙体或单位的遮挡顺序和原版不同(原版按单位所在位置和绘制层排序,K-中)。 - 建议:必需字段缺失时报错;排序按原版规则(单位脚点 + 层),去掉经验偏置。 - 已有 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#620
No description provided.