[P1][T09] 加载 UniqueItems.txt(401 行 × 70 列,enabled=1 仅 385) #97
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#97
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?
问题
暗金物品是品质判定(T-14)判到
unique(7)之后的落点。没有这张表,判定出 unique 也无物可掉。金标准数据
401 真实行(403 原始行 − 1 行
Expansion− 1 行 index 空)× 70 列,其中enabled=1只有 385 行。列头:
真实样例:
关键列:
indexcodeenabledladderraritycode下多个暗金之间的权重lvlilvl >= lvllvl reqnolimit/carry1prop1-12+par/min/maxProperties.code;par是技能名 / 技能页参数chrtransform/invtransform实现要求
Expansion与 index 为空的行。code → [UniqueItem]的多值索引(一个基底可能对应多个暗金,按rarity加权选)。prop1-12解析成 Property 引用;par可能是字符串(技能名,如"Oak Sage")也可能是数字,要兼容。index字符串供 T-20 查 tbl。enabled=1、ilvl >= lvl、(非 ladder 环境下)ladder != 1。陷阱
验收标准
enabled=1恰好 385code → [UniqueItem]索引建立,每个code都能在全局物品码表里找到propN都能在 Properties 里解析到parN的字符串 / 数字两种形态都有测试覆盖The Gnasher(code=hax, lvl=7, 4 条属性) /Nature's Peace(ladder=1, charged + par 字符串)npm run typecheck0 errornpx vitest run全绿npx tsx scripts/verify-items.ts新增断言通过溯源
data\global\excel\下的UniqueItems.txt(本机/usr/local/google/home/taodao/d2-data,挂载序 d2data → d2exp → Patch_D2,Patch_D2 优先)已完成并通过 1.13c MPQ 真实表验证(401 行暗金表,385 行 enabled,Oak Sage 字符串异构参数,code->[UniqueItem] 索引),合并入 main。