@rian8337/osu-rebalance-difficulty-calculator 4.0.0-beta.90 → 4.0.0-beta.92

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/dist/index.js CHANGED
@@ -1896,7 +1896,7 @@ class DroidPerformanceCalculator extends PerformanceCalculator {
1896
1896
  * The reading performance value.
1897
1897
  */
1898
1898
  this.reading = 0;
1899
- this._aimSliderCheesePenalty = 1;
1899
+ this._sliderCheesePenalty = 1;
1900
1900
  this._tapPenalty = 1;
1901
1901
  this._effectiveMissCount = 0;
1902
1902
  this._deviation = 0;
@@ -1928,8 +1928,8 @@ class DroidPerformanceCalculator extends PerformanceCalculator {
1928
1928
  *
1929
1929
  * Can be properly obtained by analyzing the replay associated with the score.
1930
1930
  */
1931
- get aimSliderCheesePenalty() {
1932
- return this._aimSliderCheesePenalty;
1931
+ get sliderCheesePenalty() {
1932
+ return this._sliderCheesePenalty;
1933
1933
  }
1934
1934
  /**
1935
1935
  * The total score achieved in the score.
@@ -1989,7 +1989,7 @@ class DroidPerformanceCalculator extends PerformanceCalculator {
1989
1989
  handleOptions(options) {
1990
1990
  var _a, _b;
1991
1991
  this._tapPenalty = osuBase.MathUtils.clamp((_a = options === null || options === void 0 ? void 0 : options.tapPenalty) !== null && _a !== void 0 ? _a : 1, 0, 1);
1992
- this._aimSliderCheesePenalty = osuBase.MathUtils.clamp((_b = options === null || options === void 0 ? void 0 : options.aimSliderCheesePenalty) !== null && _b !== void 0 ? _b : 1, 0, 1);
1992
+ this._sliderCheesePenalty = osuBase.MathUtils.clamp((_b = options === null || options === void 0 ? void 0 : options.sliderCheesePenalty) !== null && _b !== void 0 ? _b : 1, 0, 1);
1993
1993
  this._totalScore =
1994
1994
  (options === null || options === void 0 ? void 0 : options.totalScore) !== undefined
1995
1995
  ? osuBase.MathUtils.clamp(options.totalScore, 0, this.difficultyAttributes.maximumScore)
@@ -2031,7 +2031,7 @@ class DroidPerformanceCalculator extends PerformanceCalculator {
2031
2031
  // Scale the aim value with estimated full combo deviation.
2032
2032
  aimValue *= this.calculateDeviationBasedLengthScaling();
2033
2033
  // Scale the aim value with slider cheese penalty.
2034
- aimValue *= this._aimSliderCheesePenalty;
2034
+ aimValue *= this._sliderCheesePenalty;
2035
2035
  // Scale the aim value with deviation.
2036
2036
  aimValue *=
2037
2037
  1.025 *
@@ -2654,7 +2654,7 @@ class DifficultyHitObject {
2654
2654
  const nextDeltaTime = Math.max(1, nextObj.deltaTime);
2655
2655
  const deltaDifference = Math.abs(nextDeltaTime - currentDeltaTime);
2656
2656
  const speedRatio = currentDeltaTime / Math.max(currentDeltaTime, deltaDifference);
2657
- const windowRatio = Math.pow(Math.min(1, currentDeltaTime / this.hitWindowFor(osuBase.HitResult.great)), 5);
2657
+ const windowRatio = Math.pow(Math.min(1, currentDeltaTime / this.hitWindowFor(osuBase.HitResult.Great)), 5);
2658
2658
  const distanceFactor = Math.pow(osuBase.Interpolation.reverseLerp(this.lazyJumpDistance, this.normalizedDiameter, this.normalizedRadius), 2);
2659
2659
  return 1 - Math.pow(speedRatio, distanceFactor * (1 - windowRatio));
2660
2660
  }
@@ -2765,7 +2765,7 @@ class DifficultyHitObject {
2765
2765
  }
2766
2766
  let trackingEndTime = this.object.endTime;
2767
2767
  let { nestedHitObjects: nestedObjects } = this.object;
2768
- if (this.mode === osuBase.Modes.osu) {
2768
+ if (this.mode === osuBase.Modes.Osu) {
2769
2769
  trackingEndTime = Math.max(this.object.endTime - osuBase.Slider.legacyLastTickOffset, this.object.startTime + this.object.duration / 2);
2770
2770
  let lastRealTick = null;
2771
2771
  for (const object of nestedObjects) {
@@ -2874,7 +2874,7 @@ class DroidDifficultyHitObject extends DifficultyHitObject {
2874
2874
  */
2875
2875
  this.rhythmDifficulty = 0;
2876
2876
  this.normalizedRadius = 50;
2877
- this.mode = osuBase.Modes.droid;
2877
+ this.mode = osuBase.Modes.Droid;
2878
2878
  }
2879
2879
  get maximumSliderRadius() {
2880
2880
  return this.normalizedRadius * 2;
@@ -3014,7 +3014,7 @@ class DroidRhythmEvaluator {
3014
3014
  if (current.object instanceof osuBase.Spinner) {
3015
3015
  return 1;
3016
3016
  }
3017
- const deltaDifferenceEpsilon = current.hitWindowFor(osuBase.HitResult.great) * 0.3;
3017
+ const deltaDifferenceEpsilon = current.hitWindowFor(osuBase.HitResult.Great) * 0.3;
3018
3018
  let rhythmComplexitySum = 0;
3019
3019
  let island = new Island(deltaDifferenceEpsilon);
3020
3020
  let previousIsland = new Island(deltaDifferenceEpsilon);
@@ -3340,7 +3340,7 @@ class DroidScoreUtils {
3340
3340
  if (hitObjects.spinners === 0) {
3341
3341
  return 0;
3342
3342
  }
3343
- const scoreMultiplier = osuBase.ModUtil.calculateScoreMultiplier(beatmap.mods.values(), osuBase.Modes.droid);
3343
+ const scoreMultiplier = osuBase.ModUtil.calculateScoreMultiplier(beatmap.mods.values(), osuBase.Modes.Droid);
3344
3344
  let bonus = 0;
3345
3345
  // In osu!droid, there is no time-based limit to spinner RPM, since the limit is
3346
3346
  // π/2 rad/*frame* and not rad/second.
@@ -4259,7 +4259,7 @@ class OsuRhythmEvaluator {
4259
4259
  if (current.object instanceof osuBase.Spinner) {
4260
4260
  return 0;
4261
4261
  }
4262
- const deltaDifferenceEpsilon = current.hitWindowFor(osuBase.HitResult.great) * 0.3;
4262
+ const deltaDifferenceEpsilon = current.hitWindowFor(osuBase.HitResult.Great) * 0.3;
4263
4263
  let rhythmComplexitySum = 0;
4264
4264
  let island = new Island(deltaDifferenceEpsilon);
4265
4265
  let previousIsland = new Island(deltaDifferenceEpsilon);
@@ -4434,7 +4434,7 @@ class OsuSpeedEvaluator {
4434
4434
  const doubletapness = 1 - current.getDoubletapness(current.next(0));
4435
4435
  // Cap deltatime to the OD 300 hitwindow.
4436
4436
  // 0.93 is derived from making sure 260 BPM 1/4 OD8 streams aren't nerfed harshly, whilst 0.92 limits the effect of the cap.
4437
- strainTime /= osuBase.MathUtils.clamp(strainTime / current.hitWindowFor(osuBase.HitResult.great) / 0.93, 0.92, 1);
4437
+ strainTime /= osuBase.MathUtils.clamp(strainTime / current.hitWindowFor(osuBase.HitResult.Great) / 0.93, 0.92, 1);
4438
4438
  // speedBonus will be 0.0 for BPM < 200
4439
4439
  let speedBonus = 0;
4440
4440
  // Add additional scaling bonus for streams/bursts higher than 200bpm
@@ -5309,7 +5309,7 @@ class OsuDifficultyHitObject extends DifficultyHitObject {
5309
5309
  */
5310
5310
  this.speedStrain = 0;
5311
5311
  this.normalizedRadius = 50;
5312
- this.mode = osuBase.Modes.osu;
5312
+ this.mode = osuBase.Modes.Osu;
5313
5313
  }
5314
5314
  get smallCircleBonus() {
5315
5315
  return Math.max(1, 1 + (30 - this.object.radius) / 70);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-rebalance-difficulty-calculator",
3
- "version": "4.0.0-beta.90",
3
+ "version": "4.0.0-beta.92",
4
4
  "description": "A module for calculating osu!standard beatmap difficulty and performance value with respect to the latest osu!lazer difficulty and performance algorithm.",
5
5
  "keywords": [
6
6
  "osu",
@@ -33,10 +33,10 @@
33
33
  "url": "https://github.com/Rian8337/osu-droid-module/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@rian8337/osu-base": "4.0.0-beta.90"
36
+ "@rian8337/osu-base": "4.0.0-beta.91"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "3fe8f54f39183d5a42041d0fc48d8bd58e71fe41"
41
+ "gitHead": "102e7baf7e9179caf6b0e81cafb53d6e3a561184"
42
42
  }
@@ -543,7 +543,7 @@ interface PerformanceCalculationOptions {
543
543
  /**
544
544
  * The aim slider cheese penalty to apply for penalized scores. Only used when using `DroidPerformanceCalculator`.
545
545
  */
546
- aimSliderCheesePenalty?: number;
546
+ sliderCheesePenalty?: number;
547
547
  /**
548
548
  * The total score achieved in the score.
549
549
  */
@@ -656,7 +656,7 @@ declare class DroidDifficultyHitObject extends DifficultyHitObject {
656
656
  */
657
657
  rhythmDifficulty: number;
658
658
  readonly normalizedRadius = 50;
659
- protected readonly mode = Modes.droid;
659
+ protected readonly mode = Modes.Droid;
660
660
  protected get maximumSliderRadius(): number;
661
661
  get smallCircleBonus(): number;
662
662
  opacityAt(time: number, mods?: ModMap): number;
@@ -852,7 +852,7 @@ declare class DroidPerformanceCalculator extends PerformanceCalculator<IDroidDif
852
852
  *
853
853
  * Can be properly obtained by analyzing the replay associated with the score.
854
854
  */
855
- get aimSliderCheesePenalty(): number;
855
+ get sliderCheesePenalty(): number;
856
856
  /**
857
857
  * The total score achieved in the score.
858
858
  */
@@ -863,7 +863,7 @@ declare class DroidPerformanceCalculator extends PerformanceCalculator<IDroidDif
863
863
  get effectiveMissCount(): number;
864
864
  static readonly finalMultiplier = 1.24;
865
865
  static readonly normExponent = 1.1;
866
- private _aimSliderCheesePenalty;
866
+ private _sliderCheesePenalty;
867
867
  private _tapPenalty;
868
868
  private _effectiveMissCount;
869
869
  private _deviation;
@@ -1155,7 +1155,7 @@ declare class OsuDifficultyHitObject extends DifficultyHitObject {
1155
1155
  speedStrain: number;
1156
1156
  get smallCircleBonus(): number;
1157
1157
  readonly normalizedRadius = 50;
1158
- protected readonly mode = Modes.osu;
1158
+ protected readonly mode = Modes.Osu;
1159
1159
  }
1160
1160
 
1161
1161
  /**