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

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
@@ -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.91",
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": "21fc1a8f1ddf89952521bf670a84dcfdd0495ed7"
42
42
  }
@@ -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;
@@ -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
  /**