danoniplus 31.7.2 → 31.7.4
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/08/14
|
|
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.4`;
|
|
12
|
+
const g_revisedDate = `2023/08/14`;
|
|
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);
|
|
@@ -9245,7 +9245,7 @@ const mainInit = _ => {
|
|
|
9245
9245
|
|
|
9246
9246
|
frzOFF: (_j, _k, _cnt) => {
|
|
9247
9247
|
|
|
9248
|
-
if (g_workObj.judgFrzCnt[_j] === _k - 1
|
|
9248
|
+
if (g_workObj.judgFrzCnt[_j] === _k - 1) {
|
|
9249
9249
|
const prevFrzName = `frz${_j}_${g_workObj.judgFrzCnt[_j]}`;
|
|
9250
9250
|
const prevFrz = g_attrObj[prevFrzName];
|
|
9251
9251
|
|