@rian8337/osu-rebalance-difficulty-calculator 1.4.2 → 1.4.3
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.
|
@@ -72,19 +72,17 @@ class DifficultyHitObjectCreator {
|
|
|
72
72
|
object.noteDensity += 1 - deltaTime / params.preempt;
|
|
73
73
|
if (!(hitObject instanceof osu_base_1.Spinner)) {
|
|
74
74
|
object.overlappingFactor +=
|
|
75
|
-
0.8 *
|
|
75
|
+
(0.8 *
|
|
76
76
|
// Penalize objects that are too close to the object in both distance
|
|
77
77
|
// and delta time to prevent stream maps from being overweighted.
|
|
78
78
|
Math.max(0, 1 -
|
|
79
79
|
object.object.stackedPosition.getDistance(hitObject.stackedEndPosition) /
|
|
80
80
|
(1.5 * object.object.radius)) *
|
|
81
|
-
|
|
81
|
+
50) /
|
|
82
82
|
(1 +
|
|
83
|
-
|
|
84
|
-
(
|
|
85
|
-
|
|
86
|
-
(Math.max(deltaTime, this.minDeltaTime) -
|
|
87
|
-
75))));
|
|
83
|
+
Math.exp(0.15 *
|
|
84
|
+
(Math.max(deltaTime, this.minDeltaTime) -
|
|
85
|
+
75)));
|
|
88
86
|
}
|
|
89
87
|
}
|
|
90
88
|
if (object.object instanceof osu_base_1.Spinner ||
|
|
@@ -35,13 +35,13 @@ class DroidVisual extends DroidSkill_1.DroidSkill {
|
|
|
35
35
|
// Give bonus for AR higher than 10.33 or lower than 8.
|
|
36
36
|
if (this.preempt < 400) {
|
|
37
37
|
strain +=
|
|
38
|
-
(
|
|
39
|
-
(1 + current.overlappingFactor);
|
|
38
|
+
(0.0225 * (400 - this.preempt)) /
|
|
39
|
+
(1 + current.overlappingFactor * 1.5);
|
|
40
40
|
}
|
|
41
41
|
else if (this.preempt > 750) {
|
|
42
42
|
strain +=
|
|
43
43
|
((this.isHidden ? 0.007 : 0.006) * (this.preempt - 750)) /
|
|
44
|
-
(1 + current.overlappingFactor);
|
|
44
|
+
(1 + current.overlappingFactor * 2);
|
|
45
45
|
}
|
|
46
46
|
return strain;
|
|
47
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rian8337/osu-rebalance-difficulty-calculator",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
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",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "8338a2a1a34d7e83e77e98d1d54b0741c79c51f9"
|
|
39
39
|
}
|