danoniplus 30.2.2 → 30.2.3

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 +18 -5
  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/02/20
7
+ * Revised : 2023/02/26
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 30.2.2`;
12
- const g_revisedDate = `2023/02/20`;
11
+ const g_version = `Ver 30.2.3`;
12
+ const g_revisedDate = `2023/02/26`;
13
13
  const g_alphaVersion = ``;
14
14
 
15
15
  // カスタム用バージョン (danoni_custom.js 等で指定可)
@@ -3634,6 +3634,12 @@ const keysConvert = (_dosObj, { keyExtraList = _dosObj.keyExtraList.split(`,`) }
3634
3634
  g_keyObj[`divMax${ptnName}`] = setVal(tmpDivPtn[1], -1, C_TYP_FLOAT);
3635
3635
  }
3636
3636
  }
3637
+ } else if (g_keyObj[`chara${newKey}_0`] !== undefined) {
3638
+ // 特に指定が無い場合はcharaX_Yの配列長で決定
3639
+ for (let k = 0; k < tmpMinPatterns; k++) {
3640
+ const ptnName = `${newKey}_${k + dfPtnNum}`;
3641
+ g_keyObj[`div${ptnName}`] = g_keyObj[`chara${newKey}_0`].length;
3642
+ }
3637
3643
  }
3638
3644
 
3639
3645
  // ステップゾーン位置 (posX_Y)
@@ -3641,8 +3647,7 @@ const keysConvert = (_dosObj, { keyExtraList = _dosObj.keyExtraList.split(`,`) }
3641
3647
  loopFunc: (k, keyheader) => {
3642
3648
  const ptnName = `${newKey}_${k + dfPtnNum}`;
3643
3649
  if (g_keyObj[`divMax${ptnName}`] === undefined || g_keyObj[`divMax${ptnName}`] === -1) {
3644
- const posLength = g_keyObj[`${keyheader}_${k + dfPtnNum}`].length;
3645
- g_keyObj[`divMax${ptnName}`] = g_keyObj[`${keyheader}_${k + dfPtnNum}`][posLength - 1] + 1;
3650
+ g_keyObj[`divMax${ptnName}`] = Math.max(...g_keyObj[`${keyheader}_${k + dfPtnNum}`]) + 1;
3646
3651
  }
3647
3652
  }
3648
3653
  });
@@ -3672,6 +3677,14 @@ const keysConvert = (_dosObj, { keyExtraList = _dosObj.keyExtraList.split(`,`) }
3672
3677
 
3673
3678
  // シャッフルグループ (shuffleX_Y)
3674
3679
  newKeyTripleParam(newKey, `shuffle`);
3680
+ if (g_keyObj[`shuffle${newKey}_${dfPtnNum}_0`] === undefined) {
3681
+ // 特に指定が無い場合はcolorX_Yの配列長で決定
3682
+ for (let k = 0; k < tmpMinPatterns; k++) {
3683
+ const ptnName = `${newKey}_${k + dfPtnNum}`;
3684
+ g_keyObj[`shuffle${ptnName}_0`] = [...Array(g_keyObj[`color${ptnName}`].length)].fill(0);
3685
+ g_keyObj[`shuffle${ptnName}`] = structuredClone(g_keyObj[`shuffle${ptnName}_0`]);
3686
+ }
3687
+ }
3675
3688
 
3676
3689
  // キーグループ (keyGroupX_Y)
3677
3690
  newKeyMultiParam(newKey, `keyGroup`, toSplitArrayStr);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "30.2.2",
3
+ "version": "30.2.3",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {