@rian8337/osu-difficulty-calculator 4.0.0-beta.93 → 4.0.0-beta.94

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
@@ -1268,8 +1268,8 @@ class DroidFlashlight extends DroidSkill {
1268
1268
  this.totalObjects = totalObjects;
1269
1269
  this.reducedSectionCount = 0;
1270
1270
  this.reducedSectionBaseline = 1;
1271
- this.starsPerDouble = 1.06;
1272
- this.skillMultiplier = 0.024;
1271
+ this.starsPerDouble = 1;
1272
+ this.skillMultiplier = 0.058;
1273
1273
  this.currentFlashlightStrain = 0;
1274
1274
  }
1275
1275
  strainValueAt(current) {
@@ -3640,13 +3640,9 @@ class DroidDifficultyCalculator extends DifficultyCalculator {
3640
3640
  attributes.rhythmDifficulty = this.calculateDifficultyRating((_a = rhythm === null || rhythm === void 0 ? void 0 : rhythm.difficultyValue()) !== null && _a !== void 0 ? _a : 0);
3641
3641
  }
3642
3642
  populateFlashlightAttributes(attributes, skills) {
3643
+ var _a;
3643
3644
  const flashlight = skills.find((s) => s instanceof DroidFlashlight);
3644
- if (!flashlight) {
3645
- attributes.flashlightDifficulty = 0;
3646
- return;
3647
- }
3648
- attributes.flashlightDifficulty =
3649
- Math.sqrt(flashlight.difficultyValue()) * 0.18;
3645
+ attributes.flashlightDifficulty = this.calculateDifficultyRating((_a = flashlight === null || flashlight === void 0 ? void 0 : flashlight.difficultyValue()) !== null && _a !== void 0 ? _a : 0);
3650
3646
  }
3651
3647
  populateReadingAttributes(attributes, skills) {
3652
3648
  const reading = skills.find((s) => s instanceof DroidReading);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-difficulty-calculator",
3
- "version": "4.0.0-beta.93",
3
+ "version": "4.0.0-beta.94",
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": "9eee7ed61799bd3d1a9510e0491e7433932ba190"
41
+ "gitHead": "ab494480e1793b60e89b1e8b56c73b7a6995ff1f"
42
42
  }
@@ -1696,7 +1696,7 @@ declare class DroidFlashlight extends DroidSkill {
1696
1696
  private readonly totalObjects;
1697
1697
  protected readonly reducedSectionCount = 0;
1698
1698
  protected readonly reducedSectionBaseline = 1;
1699
- protected readonly starsPerDouble = 1.06;
1699
+ protected readonly starsPerDouble = 1;
1700
1700
  private readonly skillMultiplier;
1701
1701
  private currentFlashlightStrain;
1702
1702
  static difficultyToPerformance(difficulty: number): number;