danoniplus 38.1.0 → 38.1.1
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 -4
- 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 : 2024/12/
|
|
7
|
+
* Revised : 2024/12/07
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 38.1.
|
|
12
|
-
const g_revisedDate = `2024/12/
|
|
11
|
+
const g_version = `Ver 38.1.1`;
|
|
12
|
+
const g_revisedDate = `2024/12/07`;
|
|
13
13
|
|
|
14
14
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
15
15
|
let g_localVersion = ``;
|
|
@@ -8809,10 +8809,11 @@ const getBrakeTrace = _frms => {
|
|
|
8809
8809
|
const getFountainTrace = (_frms, _spd) => {
|
|
8810
8810
|
const minj = C_MOTION_STD_POS + 1;
|
|
8811
8811
|
const maxj = C_MOTION_STD_POS + Math.ceil(400 / _spd) + 1;
|
|
8812
|
+
const maxMotionFrm = Math.max(maxj, C_MOTION_STD_POS + 200);
|
|
8812
8813
|
const diff = 50 / (maxj - minj);
|
|
8813
8814
|
const factor = 0.5 + _spd / 40;
|
|
8814
8815
|
|
|
8815
|
-
for (let j = minj; j <
|
|
8816
|
+
for (let j = minj; j < maxMotionFrm; j++) {
|
|
8816
8817
|
_frms[j] = Math.floor((10 - (j - C_MOTION_STD_POS - 1) * diff) * factor);
|
|
8817
8818
|
}
|
|
8818
8819
|
return _frms;
|