danoniplus 31.7.2 → 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 CHANGED
@@ -4,12 +4,12 @@
4
4
  *
5
5
  * Source by tickle
6
6
  * Created : 2018/10/08
7
- * Revised : 2023/05/31
7
+ * Revised : 2023/06/02
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 31.7.2`;
12
- const g_revisedDate = `2023/05/31`;
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 => Math.max(toDecimal2(num / Math.sqrt(calcArrowCnt) * 4), 0);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "31.7.2",
3
+ "version": "31.7.3",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {