[P2][T07] 加载 RarePrefix.txt / RareSuffix.txt(46 + 155 行) #95
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#95
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?
问题
稀有物品的名字由这两张表提供(
Beast+bite→ 「Beast Bite」)。缺了它们,稀有物品只能显示基底名。金标准数据
两表同构,各 16 列,无任何分隔行:
真实样例:
实现要求
Patch_D2.mpq里没有这两张表,要从d2exp.mpq取。挂载优先级 Patch_D2 > d2exp > d2data,所以正常挂载后read()会自动落到 d2exp,但要确认挂载顺序正确。itype/etype过滤条件。itype全空表示「任意物品」(如Warp/Rift)—— 不要把空当成「不匹配任何东西」。陷阱
验收标准
d2exp.mpq(不是 d2data 的旧版)itype全空的条目被标记为通配itype/etype都能在 ItemTypes 里解析到npm run typecheck0 errornpx vitest run全绿npx tsx scripts/verify-items.ts新增断言通过溯源
data\global\excel\下的RarePrefix.txt/RareSuffix.txt(本机/usr/local/google/home/taodao/d2-data,挂载序 d2data → d2exp → Patch_D2,Patch_D2 优先)已完成并通过 1.13c d2exp 真实表验证(46 前缀 / 155 后缀,通配与 itype 过滤),合并入 main (commit
20a8ff5)。