@rian8337/osu-difficulty-calculator 1.2.8 → 1.2.9

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.
@@ -51,11 +51,8 @@ class DroidPerformanceCalculator extends PerformanceCalculator_1.PerformanceCalc
51
51
  */
52
52
  calculateAverageRhythmMultiplier() {
53
53
  // The first object doesn't have any rhythm multiplier, so we begin with the second object
54
- const rhythmMultipliers = this.stars.objects
55
- .map((v) => v.rhythmMultiplier)
56
- .slice(1);
57
- this.aggregatedRhythmMultiplier = Math.max(1, rhythmMultipliers.reduce((total, value) => total + value, 0) /
58
- Math.max(500, rhythmMultipliers.length));
54
+ const rhythmObjects = this.stars.objects.slice(1);
55
+ this.aggregatedRhythmMultiplier = Math.max(1, rhythmObjects.reduce((total, value) => total + value.rhythmMultiplier, 0) / Math.max(500, rhythmObjects.length));
59
56
  }
60
57
  /**
61
58
  * Calculates the aim performance value of the beatmap.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-difficulty-calculator",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
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",
@@ -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.2.8"
33
+ "@rian8337/osu-base": "^1.2.9"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "3e633e510be04aca9c46b9361524251442049621"
38
+ "gitHead": "4bb4b0c00cf07d5624e1af644a01685697b2832c"
39
39
  }