[P1][D08] Magic Find 接线:汇总 playerMf 并传入 ItemRatio 品质判定 #417
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#417
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?
现状
DropPipelineOptions已定义playerMf(drop-pipeline.ts),item-ratio.ts:207-228也已正确实现 1.13c 的 MF 递减公式
100 + trunc((mf * factor) / (mf + factor)),但
engine.ts:873-881的调用点根本没有传playerMf。→ 全游戏 MF 恒等于 0,装备上的 %增加获得魔法物品机会 完全不生效。
1.13c 真实行为
MF 只作用于 Unique / Set / Rare 三档,且各有递减 factor;Magic 档不递减;
Superior / Normal 不受 MF 影响。MF 来源包含装备、魔法宝石、以及
Goldfind无关项。验收标准
ITEM_MAGICBONUS总量,作为playerMf传入。Resolution Summary (Issue #417 — Commit
9022579)Aggregated player Magic Find (
playerMf) and Gold Find (playerGf) from equipped gear and inventory insrc/game/engine.tsandsrc/scene/act-scene.ts.\n- Verified 1.13c diminishing returns for Unique/Set/Rare and negative MF handling insrc/game/item-ratio.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).