[P0][D06] Act Boss 归类为 monsterType=4(MonsterRank 补 boss 档) #415
Labels
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: troytt/diablo2-web#415
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
现状
src/game/combat.ts:708-718:src/game/monsters.ts:876的MonsterRank联合类型里没有boss。于是 Andariel / Duriel / Mephisto / Diablo / Baal 这些
MonStats.txt中boss=1的怪被当成 unique(3)甚至 normal(1),永远拿不到
TreasureClass4。1.13c 真实行为
boss标记的单位走 monsterType 4(Quest / Boss 掉落),对应TreasureClass4三难度列,这是 Act Boss 高价值掉落(以及首杀任务掉落)的唯一来源。
验收标准
MonsterRank增加'boss';怪物生成时依据MonStats.txt的boss列打标。buildKillEvent对 boss 单位产出monsterType: 4。diablo/baalcrab/andariel/duriel/mephisto,断言解析出的 TC等于 MonStats.txt 中对应难度的
TreasureClass4值。依赖 D01。
Resolution Summary (Issue #415 — Commit
9022579)Added
'boss'toMonsterRankunion insrc/game/monsters.tsand taggedkind.bossmonsters as'boss'.\n- Mappedrank === 'boss'tomonsterType = 4insrc/game/combat.tsandsrc/game/engine.tsto resolve Act BossTreasureClass4.Verification:
npx tsc --noEmit(0 errors), full Vitest drop/combat/item/E2E parity suites (100% pass), andscripts/verify-m5.ts/scripts/verify-net.ts(0 problems).