cortico-world-extra-actions 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/writer.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortico-world-extra-actions",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "勾选动作库里的动作,写进形象包的「额外动作拓展」文件夹,让桌宠照着做。自带入门形象包与示例动作,装完即用;完整 105 段动作库可一键下载。",
package/src/writer.js CHANGED
@@ -553,6 +553,8 @@ export function inspect({ packDir, libraryDir, catalog }) {
553
553
  if (!libraryDir || !existsSync(libraryDir)) problems.push(`动作库目录不存在:${libraryDir}`);
554
554
  const missing = [];
555
555
  for (const a of catalog) {
556
+ // 身体状态段(idle/walk/drag/turn)本来就没有触发词,它们不是"可加的动作",跳过
557
+ if (!a.word) continue;
556
558
  if (actionProblem(a)) { missing.push(a.id); continue; }
557
559
  const dir = join(libraryDir || '', 'actions', a.category, a.id);
558
560
  if (!existsSync(dir)) missing.push(a.id);