[Parity][render][S3][R] 死代码 / 只在测试里用的自造规则 #621

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

来源审计项:render#21 — [S3][R] 死代码 / 只在测试里用的自造规则

  • 位置:src/client/scene/missile-overlay-renderer.ts:drawMissileProjectile(meteor / firewall 按名字特判、90+(slvl-1)*15、消失缩放 0.2+0.8r、meteor 下落 ttl*25、滑行 ttl*15、catch → additive)、drawExplosion(所有方向叠画,恒 additive)、drawCastOverlay、LightningTrailManager(用 drawSolid 方块作程序化兜底,art 链 lightningstrike → chainlightning → lightningbolt → lightninghit)、drawElectricBoltFallback;src/client/render/missiles-meta.ts:40-87(velocityToDccDirection,atan2 加 OpenDiablo2 方向表);src/client/render/monster-art.ts(loadMonsterAtlas 运行时只取 wl/nu,opaqueBlack 172)
  • 影响:生产路径不调用(按引用搜索确认),当前不可见;但它们留下了"色块兜底""名字特判"这类模式,被重新接回时会直接违反 §3。
  • 建议:删除,或移到测试辅助目录。
  • 已有 issue:#525(五套技能管线)部分相关

> **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#21` — [S3][R] 死代码 / 只在测试里用的自造规则 - 位置:`src/client/scene/missile-overlay-renderer.ts`:`drawMissileProjectile`(meteor / firewall 按名字特判、`90+(slvl-1)*15`、消失缩放 `0.2+0.8r`、meteor 下落 `ttl*25`、滑行 `ttl*15`、`catch → additive`)、`drawExplosion`(所有方向叠画,恒 additive)、`drawCastOverlay`、`LightningTrailManager`(用 `drawSolid` 方块作程序化兜底,art 链 lightningstrike → chainlightning → lightningbolt → lightninghit)、`drawElectricBoltFallback`;`src/client/render/missiles-meta.ts:40-87`(`velocityToDccDirection`,atan2 加 OpenDiablo2 方向表);`src/client/render/monster-art.ts`(`loadMonsterAtlas` 运行时只取 wl/nu,opaqueBlack 172) - 影响:生产路径不调用(按引用搜索确认),当前不可见;但它们留下了"色块兜底""名字特判"这类模式,被重新接回时会直接违反 §3。 - 建议:删除,或移到测试辅助目录。 - 已有 issue:#525(五套技能管线)部分相关 ---
Author
Owner

Resolved in commit 56f4f7f: Cleaned up dead code, removed fallback drawElectricBoltFallback, eliminated redundant OpenDiablo2 direction table in favor of canonical dir64ToDcc, and removed hardcoded art atlas parameters.

Resolved in commit 56f4f7f: Cleaned up dead code, removed fallback drawElectricBoltFallback, eliminated redundant OpenDiablo2 direction table in favor of canonical dir64ToDcc, and removed hardcoded art atlas parameters.
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#621
No description provided.