danoniplus 41.4.0 → 41.4.2

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/js/danoni_main.js CHANGED
@@ -4,12 +4,12 @@
4
4
  *
5
5
  * Source by tickle
6
6
  * Created : 2018/10/08
7
- * Revised : 2025/05/17
7
+ * Revised : 2025/05/23
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 41.4.0`;
12
- const g_revisedDate = `2025/05/17`;
11
+ const g_version = `Ver 41.4.2`;
12
+ const g_revisedDate = `2025/05/23`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -1102,7 +1102,7 @@ const loadMultipleFiles2 = async (_fileData, _loadType) => {
1102
1102
  await Promise.all(_fileData.map(async filePart => {
1103
1103
 
1104
1104
  // ファイルが属するドメインがリモートの場合は、キャッシュが使えるようにする
1105
- const urlCacheName = listMatching(filePart[1], g_referenceDomains, { prefix: `^`, suffix: `$` })
1105
+ const urlCacheName = listMatching(filePart[1], g_referenceDomains)
1106
1106
  ? g_versionForUrl : g_randTime;
1107
1107
  const filePath = `${filePart[1]}${filePart[0]}?${urlCacheName}`;
1108
1108
  if (filePart[0].endsWith(`.css`)) {
@@ -6169,7 +6169,7 @@ const optionInit = () => {
6169
6169
  * @returns {string}
6170
6170
  */
6171
6171
  const getMusicInfoView = () => {
6172
- const idx = g_headerObj.musicNos[g_stateObj.scoreId];
6172
+ const idx = g_headerObj.musicNos[g_stateObj.scoreId] || 0;
6173
6173
  let text = `♪` + (g_headerObj.musicSelectUse ? `${unEscapeHtml(g_headerObj.musicTitles[idx])} / ` : ``) +
6174
6174
  `BPM: ${g_headerObj.bpms[idx]}`;
6175
6175
  if (!g_headerObj.musicSelectUse && g_headerObj.bpms[idx] === `----`) {
@@ -11115,7 +11115,7 @@ const getArrowSettings = () => {
11115
11115
  g_stateObj.layerNum = Math.max(g_stateObj.layerNum, Math.ceil((Math.max(...g_workObj.dividePos) + 1) / 2) * 2);
11116
11116
 
11117
11117
  // g_workObjの不要なプロパティを削除
11118
- if (g_stateObj.dummyId === ``) {
11118
+ if (g_stateObj.dummyId === `` && g_autoPlaysBase.includes(g_stateObj.autoPlay)) {
11119
11119
  Object.keys(g_workObj).filter(key => key.startsWith(`dummy`) || key.startsWith(`mkDummy`))
11120
11120
  .forEach(key => delete g_workObj[key]);
11121
11121
  }
@@ -11411,7 +11411,8 @@ const mainInit = () => {
11411
11411
  createMultipleSprite(`maskSprite`, g_scoreObj.maskMaxDepth, { x: g_workObj.backX });
11412
11412
 
11413
11413
  // カラー・モーションを適用するオブジェクトの種類
11414
- const objList = (g_stateObj.dummyId === `` ? [``] : [`dummy`, ``]);
11414
+ const objList = (g_stateObj.dummyId === `` && g_autoPlaysBase.includes(g_stateObj.autoPlay)
11415
+ ? [``] : [`dummy`, ``]);
11415
11416
 
11416
11417
  // 背景・マスクモーション、スキン変更(0フレーム指定)
11417
11418
  if (g_scoreObj.frameNum === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "41.4.0",
3
+ "version": "41.4.2",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "./js/danoni_main.js",
6
6
  "scripts": {