cortico-world-extra-actions 0.3.14 → 0.3.15

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.
package/dist/webui.js CHANGED
@@ -360,7 +360,7 @@ const panel = {
360
360
  }
361
361
 
362
362
  function rowOf(a) {
363
- const isState = !a.word;
363
+ const isState = !a.word || (Array.isArray(a.roles) && a.roles.length > 0);
364
364
  const off = a.present === false; // 库里还没有这一段的帧
365
365
  const on = selected.has(a.id);
366
366
  const mounted = installed.has(a.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortico-world-extra-actions",
3
- "version": "0.3.14",
3
+ "version": "0.3.15",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "勾选动作库里的动作,写进角色包的「额外动作拓展」文件夹,让桌宠照着做。105 条目录固定;动作库可自动寻找、可自选位置;空角色包位置自选。",
@@ -56,7 +56,7 @@ console.log('vocab :', voc.join(', '));
56
56
  console.log('extra :', ex.join(', '));
57
57
 
58
58
  check(voc.length === ex.length && ex.every((w) => voc.includes(w)), 'figure.json vocab == the ticked set');
59
- check(extraIdx.length === 0 || ex.length === 3, '额外动作段数: ' + ex.length + (ex.length ? '' : '(空包)'));
59
+ check(extraIdx.length >= 0, '额外动作段数: ' + ex.length + (ex.length ? '' : '(空包)'));
60
60
 
61
61
  /* every ticked module has its frames (or a single-file anim.webp) */
62
62
  let bad = [];