@rian8337/osu-rebalance-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 +5 -5
- package/package.json +2 -2
- package/typings/index.d.ts +3 -3
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.
|
|
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
|
|
1932
|
-
return this.
|
|
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.
|
|
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.
|
|
2034
|
+
aimValue *= this._sliderCheesePenalty;
|
|
2035
2035
|
// Scale the aim value with deviation.
|
|
2036
2036
|
aimValue *=
|
|
2037
2037
|
1.025 *
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rian8337/osu-rebalance-difficulty-calculator",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
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",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "102e7baf7e9179caf6b0e81cafb53d6e3a561184"
|
|
42
42
|
}
|
package/typings/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
546
|
+
sliderCheesePenalty?: number;
|
|
547
547
|
/**
|
|
548
548
|
* The total score achieved in the score.
|
|
549
549
|
*/
|
|
@@ -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
|
|
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
|
|
866
|
+
private _sliderCheesePenalty;
|
|
867
867
|
private _tapPenalty;
|
|
868
868
|
private _effectiveMissCount;
|
|
869
869
|
private _deviation;
|