[P2][T08] 加载 AutoMagic.txt(36 行) #96
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#96
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?
问题
AutoMagic.txt是给怪物身上的装备和自动附魔用的隐藏词缀池。.d2s为它留了专门的 11 bit 字段(见 T-17 的autoAffix id),所以不能不做。金标准数据
36 行 × 38 列,全部
spawnable=1,无分隔行,来自 d2exp.mpq。列头(比 MagicPrefix 少一个
classspecific):真实样例:
实现要求
data\global\excel\AutoMagic.txt(来自 d2exp.mpq)。Affix结构,但注意没有classspecific列,解析器不能无脑共用。.d2s的autoAffix id(11 bit)按序号引用 —— 序号就是行号,所以不能重排。陷阱
验收标准
spawnable=1mod1-3code全部能在 Properties 里解析到skilltab这类带 param 的 mod 能正确保留 paramnpm run typecheck0 errornpx vitest run全绿npx tsx scripts/verify-items.ts新增断言通过溯源
data\global\excel\下的AutoMagic.txt(本机/usr/local/google/home/taodao/d2-data,挂载序 d2data → d2exp → Patch_D2,Patch_D2 优先)已完成并通过 1.13c d2exp 真实表验证(36 行全 spawnable=1,0..35 行号索引对齐 .d2s autoAffixId),合并入 main (commit
0602911)。