[P2][T18] 实现宝石镶嵌:Gems.txt 68 行 × 武器/盾/头盔三套属性 #106
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#106
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-16)也依赖这张表提供「各符文在该类基底上的属性」。
金标准数据
68 真实行(69 原始行 − 1 行
Expansion)× 41 列。真实样例:
68 行 = 7 类宝石 × 5 档 + 33 枚符文 —— 符文的镶嵌属性也在这张表里。
code→Misc.txt的code(T-05)。插槽上限
来自
ItemTypes.txt(T-01)的三段式:MaxSock1MaxSock25MaxSock40实际插槽数 =
min(基底.gemsockets, ItemTypes.MaxSockN)。实现要求
data\global\excel\Gems.txt,剔除Expansion行。code → GemRow索引。socketCount/socketedItems[]字段对接。陷阱
验收标准
code都能在 Misc.txt 里找到*ModNCode都能在 Properties 里解析到Chipped Amethyst在剑 / 头盔 / 身甲 / 盾上分别给出 att 40 / str 3 / str 3 / ac 8npm run typecheck0 errornpx vitest run全绿npx tsx scripts/verify-items.ts新增断言通过溯源
data\global\excel\下的Gems.txt/ItemTypes.txt/Misc.txt(本机/usr/local/google/home/taodao/d2-data,挂载序 d2data → d2exp → Patch_D2,Patch_D2 优先)已完成 Gems.txt 68 行宝石与符文镶嵌解析、武器/防具/盾牌三槽分流,以及 ItemTypes.txt ilvl 1-24/25-39/40+ 最大插槽判定,合并入 main (commit
aff1083)。