danoniplus 38.1.0 → 38.1.2

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 : 2024/12/02
7
+ * Revised : 2024/12/07
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 38.1.0`;
12
- const g_revisedDate = `2024/12/02`;
11
+ const g_version = `Ver 38.1.2`;
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 + g_sHeight / 2);
8812
8813
  const diff = 50 / (maxj - minj);
8813
8814
  const factor = 0.5 + _spd / 40;
8814
8815
 
8815
- for (let j = minj; j < maxj; 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;
@@ -8909,6 +8910,7 @@ const pushArrows = (_dataObj, _speedOnFrame, _motionOnFrame, _firstArrivalFrame)
8909
8910
  return;
8910
8911
  }
8911
8912
 
8913
+ const calcInitBoostY = _frm => sumData(g_workObj.motionOnFrames.filter((val, j) => j <= g_workObj.motionFrame[_frm]));
8912
8914
  const camelHeader = toCapitalize(_header);
8913
8915
  const setcnt = (_frzFlg ? 2 : 1);
8914
8916
  if (_frzFlg && _data.length % 2 !== 0) {
@@ -8930,7 +8932,7 @@ const pushArrows = (_dataObj, _speedOnFrame, _motionOnFrame, _firstArrivalFrame)
8930
8932
  g_workObj.initY[frmPrev] = tmpObj.startY;
8931
8933
  g_workObj.arrivalFrame[frmPrev] = tmpObj.arrivalFrm;
8932
8934
  g_workObj.motionFrame[frmPrev] = tmpObj.motionFrm;
8933
- g_workObj.initBoostY[frmPrev] = sumData(g_workObj.motionOnFrames.filter((val, j) => j < g_workObj.motionFrame[frmPrev]));
8935
+ g_workObj.initBoostY[frmPrev] = calcInitBoostY(frmPrev);
8934
8936
 
8935
8937
  if (_frzFlg) {
8936
8938
  g_workObj[`mk${camelHeader}Length`][_j] = [];
@@ -8959,7 +8961,7 @@ const pushArrows = (_dataObj, _speedOnFrame, _motionOnFrame, _firstArrivalFrame)
8959
8961
  g_workObj.initY[tmpFrame] = g_workObj.initY[frmPrev];
8960
8962
  g_workObj.arrivalFrame[tmpFrame] = g_workObj.arrivalFrame[frmPrev];
8961
8963
  g_workObj.motionFrame[tmpFrame] = g_workObj.motionFrame[frmPrev];
8962
- g_workObj.initBoostY[tmpFrame] = sumData(g_workObj.motionOnFrames.filter((val, j) => j < g_workObj.motionFrame[frmPrev]));
8964
+ g_workObj.initBoostY[tmpFrame] = calcInitBoostY(tmpFrame);
8963
8965
 
8964
8966
  } else {
8965
8967
 
@@ -8976,7 +8978,7 @@ const pushArrows = (_dataObj, _speedOnFrame, _motionOnFrame, _firstArrivalFrame)
8976
8978
  g_workObj.initY[frmPrev] = tmpObj.startY;
8977
8979
  g_workObj.arrivalFrame[frmPrev] = tmpObj.arrivalFrm;
8978
8980
  g_workObj.motionFrame[frmPrev] = tmpObj.motionFrm;
8979
- g_workObj.initBoostY[frmPrev] = sumData(g_workObj.motionOnFrames.filter((val, j) => j < g_workObj.motionFrame[frmPrev]));
8981
+ g_workObj.initBoostY[frmPrev] = calcInitBoostY(frmPrev);
8980
8982
  }
8981
8983
 
8982
8984
  // 出現タイミングを保存
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "38.1.0",
3
+ "version": "38.1.2",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {