danoniplus 32.7.4 → 32.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 +22 -21
  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/09/02
7
+ * Revised : 2023/10/21
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 32.7.4`;
12
- const g_revisedDate = `2023/09/02`;
11
+ const g_version = `Ver 32.7.6`;
12
+ const g_revisedDate = `2023/10/21`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -5406,29 +5406,30 @@ const setGauge = (_scrollNum, _gaugeInitFlg = false) => {
5406
5406
  };
5407
5407
 
5408
5408
  // ゲージ初期化
5409
- if (_gaugeInitFlg) {
5410
- // カスタムゲージの設定取得
5411
- const defaultCustomGauge = g_gaugeOptionObj.custom0 || g_gaugeOptionObj.customDefault;
5412
- if (hasVal(defaultCustomGauge)) {
5413
- g_gaugeOptionObj.custom = (g_gaugeOptionObj[`custom${g_stateObj.scoreId}`] || defaultCustomGauge).concat();
5414
- g_gaugeOptionObj.varCustom = (g_gaugeOptionObj[`varCustom${g_stateObj.scoreId}`] || g_gaugeOptionObj.varCustom0 || g_gaugeOptionObj.varCustomDefault).concat();
5415
- }
5416
-
5417
- // ゲージタイプの設定
5418
- changeLifeMode(g_headerObj);
5419
- g_gaugeType = (g_gaugeOptionObj.custom.length > 0 ? C_LFE_CUSTOM : g_stateObj.lifeMode);
5420
5409
 
5421
- // ゲージ配列を入れ替え
5422
- g_settings.gauges = structuredClone(g_gaugeOptionObj[g_gaugeType.toLowerCase()]);
5423
- g_settings.gaugeNum = getCurrentNo(g_settings.gauges, g_stateObj.gauge);
5424
- g_stateObj.gauge = g_settings.gauges[g_settings.gaugeNum];
5410
+ // カスタムゲージの設定取得
5411
+ const defaultCustomGauge = g_gaugeOptionObj.custom0 || g_gaugeOptionObj.customDefault;
5412
+ if (hasVal(defaultCustomGauge)) {
5413
+ g_gaugeOptionObj.custom = (g_gaugeOptionObj[`custom${g_stateObj.scoreId}`] || defaultCustomGauge).concat();
5414
+ g_gaugeOptionObj.varCustom = (g_gaugeOptionObj[`varCustom${g_stateObj.scoreId}`] || g_gaugeOptionObj.varCustom0 || g_gaugeOptionObj.varCustomDefault).concat();
5425
5415
  }
5416
+
5417
+ // ゲージタイプの設定
5418
+ changeLifeMode(g_headerObj);
5419
+ g_gaugeType = (g_gaugeOptionObj.custom.length > 0 ? C_LFE_CUSTOM : g_stateObj.lifeMode);
5420
+
5421
+ // ゲージ配列を入れ替え
5422
+ g_settings.gauges = structuredClone(g_gaugeOptionObj[g_gaugeType.toLowerCase()]);
5423
+ g_settings.gaugeNum = getCurrentNo(g_settings.gauges, g_stateObj.gauge);
5424
+ g_stateObj.gauge = g_settings.gauges[g_settings.gaugeNum];
5425
+
5426
5426
  setSetting(_scrollNum, `gauge`);
5427
5427
  g_stateObj.lifeVariable = g_gaugeOptionObj[`var${g_gaugeType}`][g_settings.gaugeNum];
5428
5428
 
5429
5429
  // デフォルトゲージの設定を適用(g_gaugeOptionObjから取得)
5430
- if (g_gaugeOptionObj.custom.length === 0 ||
5431
- g_gaugeOptionObj.defaultList.includes(g_gaugeOptionObj[`defaultGauge${g_stateObj.scoreId}`])) {
5430
+ if (g_settings.gaugeNum !== 0 &&
5431
+ (g_gaugeOptionObj.custom.length === 0 ||
5432
+ g_gaugeOptionObj.defaultList.includes(g_gaugeOptionObj[`defaultGauge${g_stateObj.scoreId}`]))) {
5432
5433
 
5433
5434
  const gType = (g_gaugeType === C_LFE_CUSTOM ?
5434
5435
  toCapitalize(g_gaugeOptionObj[`defaultGauge${g_stateObj.scoreId}`]) : g_gaugeType);
@@ -8431,7 +8432,7 @@ const getArrowSettings = _ => {
8431
8432
  g_keyObj[`scrollDir${keyCtrlPtn}`][g_stateObj.scroll] : [...Array(keyNum)].fill(1));
8432
8433
 
8433
8434
  g_stateObj.autoAll = (g_stateObj.autoPlay === C_FLG_ALL ? C_FLG_ON : C_FLG_OFF);
8434
- g_workObj.hitPosition = (g_stateObj.autoAll ? 0 : g_stateObj.hitPosition);
8435
+ g_workObj.hitPosition = (g_stateObj.autoAll === C_FLG_ON ? 0 : g_stateObj.hitPosition);
8435
8436
  changeSetColor();
8436
8437
 
8437
8438
  for (let j = 0; j < keyNum; j++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "32.7.4",
3
+ "version": "32.7.6",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {