[P2][D15] 地面名称标签:ethereal / socketed 的灰色覆盖规则 #424

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

现状

src/ui/ground-labels.ts:41 的 getGroundItemQualityColor 只看 item.quality 字符串。

1.13c 真实行为

基础配色(白=普通、灰=低质、蓝=魔法、黄=稀有、金=独特、绿=套装、橙=合成)已正确;
但 normal / superior 物品若带 ethereal 或 socket,地面标签文字改为灰色。

验收标准

  • getGroundItemQualityColor 对 normal/superior + (ethereal || sockets > 0) 返回灰色。
  • magic / rare / unique / set 不受该覆盖影响。
  • vitest:覆盖 ethereal-normal、socketed-normal、socketed-superior、socketed-rare 四种组合。
## 现状 `src/ui/ground-labels.ts:41` 的 `getGroundItemQualityColor` 只看 `item.quality` 字符串。 ## 1.13c 真实行为 基础配色(白=普通、灰=低质、蓝=魔法、黄=稀有、金=独特、绿=套装、橙=合成)已正确; 但 **normal / superior 物品若带 ethereal 或 socket,地面标签文字改为灰色**。 ## 验收标准 - [ ] `getGroundItemQualityColor` 对 normal/superior + (ethereal || sockets > 0) 返回灰色。 - [ ] magic / rare / unique / set 不受该覆盖影响。 - [ ] vitest:覆盖 ethereal-normal、socketed-normal、socketed-superior、socketed-rare 四种组合。
troytt added this to the [M18] 打怪掉落物品:怪物死亡掉落全链路 1.13c 还原 milestone 2026-09-24 03:25:59 +00:00
Author
Owner

Resolution Summary (Issue #424 — Commit 9022579)

  • Updated getGroundItemQualityColor in src/ui/ground-labels.ts and sparkle aura colors in src/scene/act-scene.ts to apply the 1.13c gray (#808080) override for ethereal or socketed normal/superior non-runeword items.

  • 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 #424 — Commit `9022579`) - Updated `getGroundItemQualityColor` in `src/ui/ground-labels.ts` and sparkle aura colors in `src/scene/act-scene.ts` to apply the 1.13c gray (`#808080`) override for ethereal or socketed normal/superior non-runeword items. - **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#424
No description provided.