danoniplus 31.7.4 → 31.7.6

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/js/danoni_main.js +11 -9
  2. package/package.json +1 -1
package/js/danoni_main.js CHANGED
@@ -4,12 +4,12 @@
4
4
  *
5
5
  * Source by tickle
6
6
  * Created : 2018/10/08
7
- * Revised : 2023/08/14
7
+ * Revised : 2023/08/20
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 31.7.4`;
12
- const g_revisedDate = `2023/08/14`;
11
+ const g_version = `Ver 31.7.6`;
12
+ const g_revisedDate = `2023/08/20`;
13
13
  const g_alphaVersion = ``;
14
14
 
15
15
  // カスタム用バージョン (danoni_custom.js 等で指定可)
@@ -7591,13 +7591,15 @@ const scoreConvert = (_dosObj, _scoreId, _preblankFrame, _dummyNo = ``,
7591
7591
  }
7592
7592
 
7593
7593
  // キー変化定義
7594
- obj.keychFrames = [0];
7595
- obj.keychTarget = [`0`];
7594
+ obj.keychFrames = [];
7595
+ obj.keychTarget = [];
7596
7596
  if (hasVal(getRefData(`keych`, `${scoreIdHeader}_data`))) {
7597
7597
  const keychdata = splitLF2(getRefData(`keych`, `${scoreIdHeader}_data`), `,`);
7598
- obj.keychFrames.push(...keychdata.filter((val, j) => j % 2 === 0));
7598
+ obj.keychFrames.push(...(keychdata.filter((val, j) => j % 2 === 0)).map(val => val === `0` ? 0 : calcFrame(val)));
7599
7599
  obj.keychTarget.push(...keychdata.filter((val, j) => j % 2 === 1));
7600
7600
  }
7601
+ obj.keychFrames.unshift(0);
7602
+ obj.keychTarget.unshift(`0`);
7601
7603
 
7602
7604
  return obj;
7603
7605
  };
@@ -7996,9 +7998,9 @@ const pushArrows = (_dataObj, _speedOnFrame, _motionOnFrame, _firstArrivalFrame)
7996
7998
 
7997
7999
  const fuzzyCheck = (_str, _list) => listMatching(_str, _list);
7998
8000
  const isExceptData = {
7999
- word: (_exceptList, _j) => fuzzyCheck(_data[startNum][_j][1], _exceptList.word),
8000
- back: (_exceptList, _j) => fuzzyCheck(_data[startNum][_j].animationName, _exceptList.back),
8001
- mask: (_exceptList, _j) => fuzzyCheck(_data[startNum][_j].animationName, _exceptList.mask),
8001
+ word: (_exceptList, _j) => fuzzyCheck(_data[startNum][_j][1] || ``, _exceptList.word),
8002
+ back: (_exceptList, _j) => fuzzyCheck(_data[startNum][_j].animationName || ``, _exceptList.back),
8003
+ mask: (_exceptList, _j) => fuzzyCheck(_data[startNum][_j].animationName || ``, _exceptList.mask),
8002
8004
  };
8003
8005
 
8004
8006
  const getLength = _list =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "31.7.4",
3
+ "version": "31.7.6",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {