@rian8337/osu-rebalance-difficulty-calculator 4.0.0-beta.19 → 4.0.0-beta.20

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
@@ -892,8 +892,7 @@ class DroidTap extends DroidSkill {
892
892
  this._objectStrains.reduce((total, next) => total + 1 / (1 + Math.exp(-((next / maxStrain) * 25 - 20))), 0));
893
893
  }
894
894
  strainValueAt(current) {
895
- const decay = this.strainDecay(current.strainTime);
896
- this.currentTapStrain *= decay;
895
+ this.currentTapStrain *= this.strainDecay(current.strainTime);
897
896
  this.currentTapStrain +=
898
897
  DroidTapEvaluator.evaluateDifficultyOf(current, this.greatWindow, this.considerCheesability, this.strainTimeCap) * this.skillMultiplier;
899
898
  this.currentRhythmMultiplier = current.rhythmMultiplier;
@@ -1400,7 +1399,7 @@ class DroidDifficultyHitObject extends DifficultyHitObject {
1400
1399
  }
1401
1400
  /**
1402
1401
  * Note: You **must** call `computeProperties` at some point due to how TypeScript handles
1403
- * overridden properties (see [this](https://github.com/microsoft/TypeScript/issues/1617) GitHub issue.).
1402
+ * overridden properties (see [this](https://github.com/microsoft/TypeScript/issues/1617) GitHub issue).
1404
1403
  *
1405
1404
  * @param object The underlying hitobject.
1406
1405
  * @param lastObject The hitobject before this hitobject.
@@ -1453,7 +1452,7 @@ class DroidDifficultyHitObject extends DifficultyHitObject {
1453
1452
  this.radiusBuffThreshold = 70;
1454
1453
  this.mode = osuBase.Modes.droid;
1455
1454
  this.maximumSliderRadius = this.normalizedRadius * 2;
1456
- this.timePreempt = this.object.timePreempt;
1455
+ this.timePreempt = object.timePreempt;
1457
1456
  if (!isForceAR) {
1458
1457
  this.timePreempt /= clockRate;
1459
1458
  }
@@ -3223,7 +3222,7 @@ class OsuDifficultyHitObject extends DifficultyHitObject {
3223
3222
  }
3224
3223
  /**
3225
3224
  * Note: You **must** call `computeProperties` at some point due to how TypeScript handles
3226
- * overridden properties (see [this](https://github.com/microsoft/TypeScript/issues/1617) GitHub issue.).
3225
+ * overridden properties (see [this](https://github.com/microsoft/TypeScript/issues/1617) GitHub issue).
3227
3226
  *
3228
3227
  * @param object The underlying hitobject.
3229
3228
  * @param lastObject The hitobject before this hitobject.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-rebalance-difficulty-calculator",
3
- "version": "4.0.0-beta.19",
3
+ "version": "4.0.0-beta.20",
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": "45f7c976ba683027dc3a4d29de8bf289aadf7707"
41
+ "gitHead": "8e6d7449a4a949f0158f10b9130378e7368bd8aa"
42
42
  }
@@ -591,7 +591,7 @@ declare class DroidDifficultyHitObject extends DifficultyHitObject {
591
591
  protected get scalingFactor(): number;
592
592
  /**
593
593
  * Note: You **must** call `computeProperties` at some point due to how TypeScript handles
594
- * overridden properties (see [this](https://github.com/microsoft/TypeScript/issues/1617) GitHub issue.).
594
+ * overridden properties (see [this](https://github.com/microsoft/TypeScript/issues/1617) GitHub issue).
595
595
  *
596
596
  * @param object The underlying hitobject.
597
597
  * @param lastObject The hitobject before this hitobject.
@@ -620,10 +620,10 @@ declare class DroidDifficultyHitObject extends DifficultyHitObject {
620
620
  * Represents the skill required to correctly aim at every object in the map with a uniform CircleSize and normalized distances.
621
621
  */
622
622
  declare class DroidAim extends DroidSkill {
623
- protected readonly strainDecayBase: number;
624
- protected readonly reducedSectionCount: number;
625
- protected readonly reducedSectionBaseline: number;
626
- protected readonly starsPerDouble: number;
623
+ protected readonly strainDecayBase = 0.15;
624
+ protected readonly reducedSectionCount = 10;
625
+ protected readonly reducedSectionBaseline = 0.75;
626
+ protected readonly starsPerDouble = 1.05;
627
627
  private readonly skillMultiplier;
628
628
  private readonly withSliders;
629
629
  private currentAimStrain;
@@ -641,9 +641,9 @@ declare class DroidAim extends DroidSkill {
641
641
  * An evaluator for calculating osu!droid Aim skill.
642
642
  */
643
643
  declare abstract class DroidAimEvaluator extends AimEvaluator {
644
- protected static readonly wideAngleMultiplier: number;
645
- protected static readonly sliderMultiplier: number;
646
- protected static readonly velocityChangeMultiplier: number;
644
+ protected static readonly wideAngleMultiplier = 1.65;
645
+ protected static readonly sliderMultiplier = 1.5;
646
+ protected static readonly velocityChangeMultiplier = 0.85;
647
647
  private static readonly singleSpacingThreshold;
648
648
  private static readonly minSpeedBonus;
649
649
  /**
@@ -891,10 +891,10 @@ declare class DroidDifficultyCalculator extends DifficultyCalculator<DroidDiffic
891
891
  * Represents the skill required to memorize and hit every object in a beatmap with the Flashlight mod enabled.
892
892
  */
893
893
  declare class DroidFlashlight extends DroidSkill {
894
- protected readonly strainDecayBase: number;
895
- protected readonly reducedSectionCount: number;
896
- protected readonly reducedSectionBaseline: number;
897
- protected readonly starsPerDouble: number;
894
+ protected readonly strainDecayBase = 0.15;
895
+ protected readonly reducedSectionCount = 0;
896
+ protected readonly reducedSectionBaseline = 1;
897
+ protected readonly starsPerDouble = 1.06;
898
898
  private readonly skillMultiplier;
899
899
  private readonly isHidden;
900
900
  private readonly withSliders;
@@ -1124,7 +1124,7 @@ declare class DroidPerformanceCalculator extends PerformanceCalculator<DroidDiff
1124
1124
  */
1125
1125
  get visualSliderCheesePenalty(): number;
1126
1126
  protected finalMultiplier: number;
1127
- protected readonly mode: Modes;
1127
+ protected readonly mode = Modes.droid;
1128
1128
  private _aimSliderCheesePenalty;
1129
1129
  private _flashlightSliderCheesePenalty;
1130
1130
  private _visualSliderCheesePenalty;
@@ -1236,10 +1236,10 @@ declare class DroidPerformanceCalculator extends PerformanceCalculator<DroidDiff
1236
1236
  * Represents the skill required to properly follow a beatmap's rhythm.
1237
1237
  */
1238
1238
  declare class DroidRhythm extends DroidSkill {
1239
- protected readonly reducedSectionCount: number;
1240
- protected readonly reducedSectionBaseline: number;
1241
- protected readonly strainDecayBase: number;
1242
- protected readonly starsPerDouble: number;
1239
+ protected readonly reducedSectionCount = 5;
1240
+ protected readonly reducedSectionBaseline = 0.75;
1241
+ protected readonly strainDecayBase = 0.3;
1242
+ protected readonly starsPerDouble = 1.75;
1243
1243
  private currentRhythmStrain;
1244
1244
  private currentRhythmMultiplier;
1245
1245
  private readonly hitWindow;
@@ -1278,10 +1278,10 @@ declare abstract class DroidRhythmEvaluator extends RhythmEvaluator {
1278
1278
  * Represents the skill required to press keys or tap with regards to keeping up with the speed at which objects need to be hit.
1279
1279
  */
1280
1280
  declare class DroidTap extends DroidSkill {
1281
- protected readonly reducedSectionCount: number;
1282
- protected readonly reducedSectionBaseline: number;
1283
- protected readonly strainDecayBase: number;
1284
- protected readonly starsPerDouble: number;
1281
+ protected readonly reducedSectionCount = 10;
1282
+ protected readonly reducedSectionBaseline = 0.75;
1283
+ protected readonly strainDecayBase = 0.3;
1284
+ protected readonly starsPerDouble = 1.1;
1285
1285
  private currentTapStrain;
1286
1286
  private currentRhythmMultiplier;
1287
1287
  private readonly skillMultiplier;
@@ -1344,10 +1344,10 @@ declare abstract class DroidTapEvaluator extends SpeedEvaluator {
1344
1344
  * Represents the skill required to read every object in the map.
1345
1345
  */
1346
1346
  declare class DroidVisual extends DroidSkill {
1347
- protected readonly starsPerDouble: number;
1348
- protected readonly reducedSectionCount: number;
1349
- protected readonly reducedSectionBaseline: number;
1350
- protected readonly strainDecayBase: number;
1347
+ protected readonly starsPerDouble = 1.025;
1348
+ protected readonly reducedSectionCount = 10;
1349
+ protected readonly reducedSectionBaseline = 0.75;
1350
+ protected readonly strainDecayBase = 0.1;
1351
1351
  private readonly isHidden;
1352
1352
  private readonly withSliders;
1353
1353
  private currentVisualStrain;
@@ -1421,7 +1421,7 @@ declare class OsuDifficultyHitObject extends DifficultyHitObject {
1421
1421
  protected get scalingFactor(): number;
1422
1422
  /**
1423
1423
  * Note: You **must** call `computeProperties` at some point due to how TypeScript handles
1424
- * overridden properties (see [this](https://github.com/microsoft/TypeScript/issues/1617) GitHub issue.).
1424
+ * overridden properties (see [this](https://github.com/microsoft/TypeScript/issues/1617) GitHub issue).
1425
1425
  *
1426
1426
  * @param object The underlying hitobject.
1427
1427
  * @param lastObject The hitobject before this hitobject.