@rian8337/osu-difficulty-calculator 4.0.0-beta.91 → 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
@@ -1901,7 +1901,7 @@ class DroidPerformanceCalculator extends PerformanceCalculator {
1901
1901
  * The reading performance value.
1902
1902
  */
1903
1903
  this.reading = 0;
1904
- this._aimSliderCheesePenalty = 1;
1904
+ this._sliderCheesePenalty = 1;
1905
1905
  this._tapPenalty = 1;
1906
1906
  this._effectiveMissCount = 0;
1907
1907
  this._deviation = 0;
@@ -1933,8 +1933,8 @@ class DroidPerformanceCalculator extends PerformanceCalculator {
1933
1933
  *
1934
1934
  * Can be properly obtained by analyzing the replay associated with the score.
1935
1935
  */
1936
- get aimSliderCheesePenalty() {
1937
- return this._aimSliderCheesePenalty;
1936
+ get sliderCheesePenalty() {
1937
+ return this._sliderCheesePenalty;
1938
1938
  }
1939
1939
  /**
1940
1940
  * The total score achieved in the score.
@@ -1994,7 +1994,7 @@ class DroidPerformanceCalculator extends PerformanceCalculator {
1994
1994
  handleOptions(options) {
1995
1995
  var _a, _b;
1996
1996
  this._tapPenalty = osuBase.MathUtils.clamp((_a = options === null || options === void 0 ? void 0 : options.tapPenalty) !== null && _a !== void 0 ? _a : 1, 0, 1);
1997
- this._aimSliderCheesePenalty = osuBase.MathUtils.clamp((_b = options === null || options === void 0 ? void 0 : options.aimSliderCheesePenalty) !== null && _b !== void 0 ? _b : 1, 0, 1);
1997
+ this._sliderCheesePenalty = osuBase.MathUtils.clamp((_b = options === null || options === void 0 ? void 0 : options.sliderCheesePenalty) !== null && _b !== void 0 ? _b : 1, 0, 1);
1998
1998
  this._totalScore =
1999
1999
  (options === null || options === void 0 ? void 0 : options.totalScore) !== undefined
2000
2000
  ? osuBase.MathUtils.clamp(options.totalScore, 0, this.difficultyAttributes.maximumScore)
@@ -2036,7 +2036,7 @@ class DroidPerformanceCalculator extends PerformanceCalculator {
2036
2036
  // Scale the aim value with estimated full combo deviation.
2037
2037
  aimValue *= this.calculateDeviationBasedLengthScaling();
2038
2038
  // Scale the aim value with slider cheese penalty.
2039
- aimValue *= this._aimSliderCheesePenalty;
2039
+ aimValue *= this._sliderCheesePenalty;
2040
2040
  // Scale the aim value with deviation.
2041
2041
  aimValue *=
2042
2042
  1.025 *
@@ -3348,15 +3348,12 @@ class ExtendedDroidDifficultyAttributes extends DroidDifficultyAttributes {
3348
3348
  this.mode = "live";
3349
3349
  this.possibleThreeFingeredSections = [];
3350
3350
  this.difficultSliders = [];
3351
- this.flashlightSliderFactor = 1;
3352
3351
  if (!cacheableAttributes) {
3353
3352
  return;
3354
3353
  }
3355
3354
  this.possibleThreeFingeredSections =
3356
3355
  cacheableAttributes.possibleThreeFingeredSections;
3357
3356
  this.difficultSliders = cacheableAttributes.difficultSliders;
3358
- this.flashlightSliderFactor =
3359
- cacheableAttributes.flashlightSliderFactor;
3360
3357
  }
3361
3358
  }
3362
3359
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-difficulty-calculator",
3
- "version": "4.0.0-beta.91",
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 current difficulty and performance algorithm.",
5
5
  "keywords": [
6
6
  "osu",
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "21fc1a8f1ddf89952521bf670a84dcfdd0495ed7"
41
+ "gitHead": "102e7baf7e9179caf6b0e81cafb53d6e3a561184"
42
42
  }
@@ -520,7 +520,7 @@ interface PerformanceCalculationOptions {
520
520
  /**
521
521
  * The aim slider cheese penalty to apply for penalized scores. Only used when using `DroidPerformanceCalculator`.
522
522
  */
523
- aimSliderCheesePenalty?: number;
523
+ sliderCheesePenalty?: number;
524
524
  /**
525
525
  * The total score achieved in the score.
526
526
  */
@@ -775,14 +775,6 @@ interface IExtendedDroidDifficultyAttributes extends IDroidDifficultyAttributes
775
775
  * Sliders that are considered difficult.
776
776
  */
777
777
  difficultSliders: DifficultSlider[];
778
- /**
779
- * Describes how much of flashlight difficulty is contributed to by hitcircles or sliders.
780
- *
781
- * A value closer to 1 indicates most of flashlight difficulty is contributed by hitcircles.
782
- *
783
- * A value closer to 0 indicates most of flashlight difficulty is contributed by sliders.
784
- */
785
- flashlightSliderFactor: number;
786
778
  }
787
779
 
788
780
  /**
@@ -793,7 +785,6 @@ declare class ExtendedDroidDifficultyAttributes extends DroidDifficultyAttribute
793
785
  mode: "live";
794
786
  possibleThreeFingeredSections: HighStrainSection[];
795
787
  difficultSliders: DifficultSlider[];
796
- flashlightSliderFactor: number;
797
788
  constructor(cacheableAttributes?: CacheableDifficultyAttributes<IExtendedDroidDifficultyAttributes>);
798
789
  }
799
790
 
@@ -861,7 +852,7 @@ declare class DroidPerformanceCalculator extends PerformanceCalculator<IDroidDif
861
852
  *
862
853
  * Can be properly obtained by analyzing the replay associated with the score.
863
854
  */
864
- get aimSliderCheesePenalty(): number;
855
+ get sliderCheesePenalty(): number;
865
856
  /**
866
857
  * The total score achieved in the score.
867
858
  */
@@ -872,7 +863,7 @@ declare class DroidPerformanceCalculator extends PerformanceCalculator<IDroidDif
872
863
  get effectiveMissCount(): number;
873
864
  static readonly finalMultiplier = 1.24;
874
865
  static readonly normExponent = 1.1;
875
- private _aimSliderCheesePenalty;
866
+ private _sliderCheesePenalty;
876
867
  private _tapPenalty;
877
868
  private _effectiveMissCount;
878
869
  private _deviation;