@rian8337/osu-difficulty-calculator 4.0.0-beta.102 → 4.0.0-beta.104

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/README.md CHANGED
@@ -44,7 +44,7 @@ if (!beatmapInfo.title) {
44
44
 
45
45
  // Calculate osu!droid difficulty
46
46
  const droidRating = new DroidDifficultyCalculator(
47
- beatmapInfo.beatmap
47
+ beatmapInfo.beatmap,
48
48
  ).calculate();
49
49
 
50
50
  console.log(droidRating);
@@ -67,8 +67,8 @@ console.log(rating.osu);
67
67
 
68
68
  Parameters can be applied to alter the result of the calculation:
69
69
 
70
- - Mods: Modifications that will be considered when calculating the difficulty of a beatmap. Defaults to none.
71
- - Custom statistics: Used to apply a custom speed multiplier and force AR. Defaults to none.
70
+ - Mods: Modifications that will be considered when calculating the difficulty of a beatmap. Defaults to none.
71
+ - Custom statistics: Used to apply a custom speed multiplier and force AR. Defaults to none.
72
72
 
73
73
  ```js
74
74
  import { MapInfo, MapStats, ModUtil } from "@rian8337/osu-base";
@@ -120,14 +120,14 @@ const rating = new MapStars(beatmapInfo.beatmap);
120
120
 
121
121
  // osu!droid performance
122
122
  const droidPerformance = new DroidPerformanceCalculator(
123
- rating.droid.attributes
123
+ rating.droid.attributes,
124
124
  ).calculate();
125
125
 
126
126
  console.log(droidPerformance);
127
127
 
128
128
  // osu!standard performance
129
129
  const osuPerformance = new OsuPerformanceCalculator(
130
- rating.osu.attributes
130
+ rating.osu.attributes,
131
131
  ).calculate();
132
132
 
133
133
  console.log(osuPerformance);
@@ -137,11 +137,11 @@ console.log(osuPerformance);
137
137
 
138
138
  Parameters can be passed to alter the result of the calculation:
139
139
 
140
- - Combo: The maximum combo achieved. Defaults to the beatmap's maximum combo.
141
- - Accuracy: The accuracy achieved. Defaults to 100%.
142
- - Misses: The amount of misses achieved.
143
- - Tap penalty: Penalty given from three-finger detection. Only applied for osu!droid gamemode. Defaults to 1.
144
- - Custom statistics: Used to apply a custom speed multiplier and force AR. Defaults to none.
140
+ - Combo: The maximum combo achieved. Defaults to the beatmap's maximum combo.
141
+ - Accuracy: The accuracy achieved. Defaults to 100%.
142
+ - Misses: The amount of misses achieved.
143
+ - Tap penalty: Penalty given from three-finger detection. Only applied for osu!droid gamemode. Defaults to 1.
144
+ - Custom statistics: Used to apply a custom speed multiplier and force AR. Defaults to none.
145
145
 
146
146
  ```js
147
147
  import { Accuracy, MapInfo, MapStats } from "@rian8337/osu-base";