@rian8337/osu-rebalance-difficulty-calculator 1.4.8-alpha.0 → 1.4.9-alpha.0

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.
@@ -112,7 +112,7 @@ class DroidStarRating extends StarRating_1.StarRating {
112
112
  if (basePerformanceValue > 1e-5) {
113
113
  this.total =
114
114
  Math.cbrt(1.12) *
115
- 0.027 *
115
+ 0.026 *
116
116
  (Math.cbrt((100000 / Math.pow(2, 1 / 1.1)) * basePerformanceValue) +
117
117
  4);
118
118
  }
@@ -74,11 +74,10 @@ class DifficultyHitObjectCreator {
74
74
  object.overlappingFactor +=
75
75
  // Penalize objects that are too close to the object in both distance
76
76
  // and delta time to prevent stream maps from being overweighted.
77
- Math.max(0, 2 *
78
- (1 -
79
- object.object.stackedPosition.getDistance(hitObject.stackedEndPosition) /
80
- (4 * object.object.radius))) *
81
- (50 /
77
+ Math.max(0, 1 -
78
+ object.object.stackedPosition.getDistance(hitObject.stackedEndPosition) /
79
+ (3 * object.object.radius)) *
80
+ (7.5 /
82
81
  (1 +
83
82
  Math.exp(0.15 *
84
83
  (Math.max(deltaTime, this.minDeltaTime) -
@@ -28,16 +28,16 @@ class DroidVisual extends DroidSkill_1.DroidSkill {
28
28
  // Add density caps for sanity.
29
29
  let strain = Math.min(20, Math.pow(current.noteDensity, 2)) /
30
30
  10 /
31
- (1 + current.overlappingFactor * 2);
31
+ (1 + current.overlappingFactor);
32
32
  if (this.isHidden) {
33
33
  strain +=
34
- Math.min(15, Math.pow(current.noteDensity, 2)) /
34
+ Math.min(25, Math.pow(current.noteDensity, 1.25)) /
35
35
  10 /
36
- (1 + current.overlappingFactor * 1.5);
36
+ (1 + current.overlappingFactor * 1.25);
37
37
  }
38
38
  // Give bonus for AR higher than 10.33.
39
39
  if (this.preempt < 400) {
40
- strain += 0.03 * (400 - this.preempt);
40
+ strain += Math.pow(400 - this.preempt, 1.3) / 125;
41
41
  }
42
42
  if (current.object instanceof osu_base_1.Slider) {
43
43
  const currentVelocity = current.travelDistance / current.travelTime;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-rebalance-difficulty-calculator",
3
- "version": "1.4.8-alpha.0",
3
+ "version": "1.4.9-alpha.0",
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",
@@ -30,10 +30,10 @@
30
30
  "url": "https://github.com/Rian8337/osu-droid-module/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@rian8337/osu-base": "^1.4.2"
33
+ "@rian8337/osu-base": "^1.4.8"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "55f3e7afaffa568db2263ecfae9193058eac89c9"
38
+ "gitHead": "c2ed550e3d850de8f1aca9d139509687932fcfac"
39
39
  }