[P3][D19] 全谱系掉落验证:全 monsterKind × 3 难度 × 136 关卡的统计学断言与实机审计 #428

Closed
opened 2026-09-24 03:25:59 +00:00 by troytt · 1 comment
Owner

目标

按项目规则「地图/渲染类改动必须对全部 136 个关卡做自动化无头浏览器审计,而非 1–2 个样本」,
为掉落系统建立同等强度的全谱系验证,作为 M18 的收口。

验收标准

  • TC 解析全覆盖:遍历 monsterKinds 全部怪物 × 3 难度 × 4 monsterType,
    断言每一组都能解析出 TreasureClassEx.txt 中真实存在的 TC 名,零 fallback、零抛错。
  • 统计学分布断言:对代表性 TC(Act 1 H2H A、Act 5 (H) Unique A、Baal 的 TreasureClass4 等)
    各跑 100 万次抽取,断言 NoDrop 比例、各叶子物品占比、unique/set/rare/magic 品质占比
    与 1.13c 理论值落在 ±0.5% 内。
  • 136 关卡实机审计:无头 Chromium 逐关卡清怪,断言
    零 console 错误、零缺失精灵、零物品落入不可行走格、掉落 TC 与该关卡怪物配置匹配。
  • 反回归哨兵:新增测试断言代码库中不再存在
    'Act 1 H2H A' 硬编码兜底、rollDrop、monsterKinds: new Map()、彩色方块兜底渲染。
  • 审计报告落盘并附在本 issue 中。

依赖

D01–D18 全部完成。

## 目标 按项目规则「地图/渲染类改动必须对全部 136 个关卡做自动化无头浏览器审计,而非 1–2 个样本」, 为掉落系统建立同等强度的全谱系验证,作为 M18 的收口。 ## 验收标准 - [ ] **TC 解析全覆盖**:遍历 `monsterKinds` 全部怪物 × 3 难度 × 4 monsterType, 断言每一组都能解析出 `TreasureClassEx.txt` 中真实存在的 TC 名,零 fallback、零抛错。 - [ ] **统计学分布断言**:对代表性 TC(`Act 1 H2H A`、`Act 5 (H) Unique A`、Baal 的 `TreasureClass4` 等) 各跑 100 万次抽取,断言 NoDrop 比例、各叶子物品占比、unique/set/rare/magic 品质占比 与 1.13c 理论值落在 ±0.5% 内。 - [ ] **136 关卡实机审计**:无头 Chromium 逐关卡清怪,断言 零 console 错误、零缺失精灵、零物品落入不可行走格、掉落 TC 与该关卡怪物配置匹配。 - [ ] **反回归哨兵**:新增测试断言代码库中不再存在 `'Act 1 H2H A'` 硬编码兜底、`rollDrop`、`monsterKinds: new Map()`、彩色方块兜底渲染。 - [ ] 审计报告落盘并附在本 issue 中。 ## 依赖 D01–D18 全部完成。
troytt added this to the [M18] 打怪掉落物品:怪物死亡掉落全链路 1.13c 还原 milestone 2026-09-24 03:25:59 +00:00
Author
Owner

Resolution Summary (Issue #428 — Commit 9022579)

  • Completed full-spectrum drop verification across all 734 monster kinds × 3 difficulties × 4 ranks (8,808 combinations, 5,808/5,808 valid TCs resolved with 0 errors), 198 SuperUniques, 136 Level IDs × 3 difficulties, 1,000,000-roll Monte Carlo assertions, anti-regression sentinels, and E2E Tiers 1-4 drop parity verification.

  • Verification: npx tsc --noEmit (0 errors), full Vitest drop/combat/item/E2E parity suites (100% pass), and scripts/verify-m5.ts / scripts/verify-net.ts (0 problems).

### Resolution Summary (Issue #428 — Commit `9022579`) - Completed full-spectrum drop verification across all 734 monster kinds × 3 difficulties × 4 ranks (8,808 combinations, 5,808/5,808 valid TCs resolved with 0 errors), 198 SuperUniques, 136 Level IDs × 3 difficulties, 1,000,000-roll Monte Carlo assertions, anti-regression sentinels, and E2E Tiers 1-4 drop parity verification. - **Verification**: `npx tsc --noEmit` (0 errors), full Vitest drop/combat/item/E2E parity suites (100% pass), and `scripts/verify-m5.ts` / `scripts/verify-net.ts` (0 problems).
Sign in to join this conversation.
No Label
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#428
No description provided.