Skip to content

Commit

Permalink
[ver31.7.5] キー変化でadjustmentやplaybackRateが反映されない問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
cwtickle committed Aug 19, 2023
1 parent f3b231e commit 43d5271
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions js/danoni_main.js
Expand Up @@ -4,12 +4,12 @@
*
* Source by tickle
* Created : 2018/10/08
* Revised : 2023/08/14
* Revised : 2023/08/19
*
* https://github.com/cwtickle/danoniplus
*/
const g_version = `Ver 31.7.4`;
const g_revisedDate = `2023/08/14`;
const g_version = `Ver 31.7.5`;
const g_revisedDate = `2023/08/19`;
const g_alphaVersion = ``;

// カスタム用バージョン (danoni_custom.js 等で指定可)
Expand Down Expand Up @@ -7591,13 +7591,15 @@ const scoreConvert = (_dosObj, _scoreId, _preblankFrame, _dummyNo = ``,
}

// キー変化定義
obj.keychFrames = [0];
obj.keychTarget = [`0`];
obj.keychFrames = [];
obj.keychTarget = [];
if (hasVal(getRefData(`keych`, `${scoreIdHeader}_data`))) {
const keychdata = splitLF2(getRefData(`keych`, `${scoreIdHeader}_data`), `,`);
obj.keychFrames.push(...keychdata.filter((val, j) => j % 2 === 0));
obj.keychFrames.push(...(keychdata.filter((val, j) => j % 2 === 0)).map(val => val === `0` ? 0 : calcFrame(val)));
obj.keychTarget.push(...keychdata.filter((val, j) => j % 2 === 1));
}
obj.keychFrames.unshift(0);
obj.keychTarget.unshift(`0`);

return obj;
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "danoniplus",
"version": "31.7.4",
"version": "31.7.5",
"description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 43d5271

Please sign in to comment.