[P1][D09] /players N 接线:真实 gamePlayers / partyPlayers 驱动 NoDrop 缩放 #418
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#418
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/engine.ts:878-879硬编码:treasure-engine.ts:140-168的computeScaledNoDrop本身已通过审计(与 1.13c 一致:effectivePlayers = p + trunc((g - p) / 2),r = NoDrop / (NoDrop + ProbSum),NewNoDrop = int(ProbSum * r^N / (1 - r^N))),但输入永远是 1,等于该机制从未启用。验收标准
gamePlayers(含单机/players N指令,1–8)与partyPlayers(附近组队人数)。engine会话状态提供,多人模式下由net会话人数驱动(与 D18 协同)。/players N聊天指令并在 HUD 显示当前值。Act 1 H2H A在 players 1 / 3 / 5 / 8 下的 NoDrop 缩放值与 1.13c 手算值逐一相等。Resolution Summary (Issue #418 — Commit
9022579)Added
gamePlayers/partyPlayersstate andsetPlayers(players, partyPlayers)toGameEngine(src/game/engine.ts) and wired/players Nchat command insrc/scene/act-scene.tsto drive 1.13c NoDrop exponential scaling.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).