danoniplus 31.7.1 → 31.7.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.
- package/js/danoni_main.js +5 -5
- 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/
|
|
7
|
+
* Revised : 2023/06/02
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 31.7.
|
|
12
|
-
const g_revisedDate = `2023/
|
|
11
|
+
const g_version = `Ver 31.7.3`;
|
|
12
|
+
const g_revisedDate = `2023/06/02`;
|
|
13
13
|
const g_alphaVersion = ``;
|
|
14
14
|
|
|
15
15
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
@@ -2465,7 +2465,7 @@ const calcLevel = _scoreObj => {
|
|
|
2465
2465
|
const push3Cnt = push3List.length;
|
|
2466
2466
|
const calcArrowCnt = allCnt - push3Cnt - 3;
|
|
2467
2467
|
const toDecimal2 = num => Math.round(num * 100) / 100;
|
|
2468
|
-
const calcDifLevel = num =>
|
|
2468
|
+
const calcDifLevel = num => calcArrowCnt > 0 ? toDecimal2(num / Math.sqrt(calcArrowCnt) * 4) : 0;
|
|
2469
2469
|
|
|
2470
2470
|
const baseDifLevel = calcDifLevel(levelcount);
|
|
2471
2471
|
const difLevel = toDecimal2(baseDifLevel * (allCnt - 3) / calcArrowCnt);
|
|
@@ -3125,7 +3125,7 @@ const headerConvert = _dosObj => {
|
|
|
3125
3125
|
obj.playingX = setIntVal(_dosObj.playingX);
|
|
3126
3126
|
|
|
3127
3127
|
// プレイ中クレジットを表示しないエリアのサイズ(X方向)
|
|
3128
|
-
obj.customViewWidth = setVal(_dosObj.customViewWidth, 0, C_TYP_FLOAT);
|
|
3128
|
+
obj.customViewWidth = setVal(_dosObj.customViewWidth ?? _dosObj.customCreditWidth, 0, C_TYP_FLOAT);
|
|
3129
3129
|
|
|
3130
3130
|
// ジャストフレームの設定 (ローカル: 0フレーム, リモートサーバ上: 1フレーム以内)
|
|
3131
3131
|
obj.justFrames = (g_isLocal) ? 0 : 1;
|