[P1][D11] 死亡动画帧门控:掉落延迟到死亡动画结束帧触发 #420
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#420
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:730-733在monster.hp <= 0的同一帧就发出kill事件,src/game/engine.ts:846紧接着同帧执行掉落。视觉上物品在怪物尚未开始播放死亡动画时就已经洒了一地。1.13c 真实行为
掉落挂在死亡动画的终帧(
AnimData.d2中DT/DD序列的结束)上,与尸体定格、
flippy弹出、掉落音效在时间轴上对齐。验收标准
animator的死亡序列终帧解析。Resolution Summary (Issue #420 — Commit
9022579)Gated monster drop dispatch on death animation completion (
DT->DDtransition) viaqueueMonsterDropandtriggerMonsterDropinsrc/game/engine.tsandsrc/scene/act-scene.ts.\n- Verified intests/death-animation-drop-gating.test.ts.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).