From 43d527161cf5aee6651fdcf5fa67221e643cfb51 Mon Sep 17 00:00:00 2001 From: tickle <44026291+cwtickle@users.noreply.github.com> Date: Sat, 19 Aug 2023 18:40:16 +0900 Subject: [PATCH] =?UTF-8?q?[ver31.7.5]=20=E3=82=AD=E3=83=BC=E5=A4=89?= =?UTF-8?q?=E5=8C=96=E3=81=A7adjustment=E3=82=84playbackRate=E3=81=8C?= =?UTF-8?q?=E5=8F=8D=E6=98=A0=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/danoni_main.js | 14 ++++++++------ package.json | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/js/danoni_main.js b/js/danoni_main.js index 913e702c..20315ffb 100644 --- a/js/danoni_main.js +++ b/js/danoni_main.js @@ -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 等で指定可) @@ -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; }; diff --git a/package.json b/package.json index 96efc870..b219dbe0 100644 --- a/package.json +++ b/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": {