@rian8337/osu-difficulty-calculator 2.2.0 → 2.3.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.
package/README.md CHANGED
@@ -43,17 +43,17 @@ if (!beatmapInfo.title) {
43
43
  }
44
44
 
45
45
  // Calculate osu!droid difficulty
46
- const droidRating = new DroidDifficultyCalculator(beatmapInfo.map).calculate();
46
+ const droidRating = new DroidDifficultyCalculator(beatmapInfo.beatmap).calculate();
47
47
 
48
48
  console.log(droidRating);
49
49
 
50
50
  // Calculate osu!standard difficulty
51
- const osuRating = new OsuDifficultyCalculator(beatmapInfo.map).calculate();
51
+ const osuRating = new OsuDifficultyCalculator(beatmapInfo.beatmap).calculate();
52
52
 
53
53
  console.log(osuRating);
54
54
 
55
55
  // Calculate both osu!droid and osu!standard difficulty
56
- const rating = new MapStars(beatmapInfo.map);
56
+ const rating = new MapStars(beatmapInfo.beatmap);
57
57
 
58
58
  // osu!droid difficulty
59
59
  console.log(rating.droid);
@@ -87,7 +87,7 @@ const stats = new MapStats({
87
87
  });
88
88
 
89
89
  // Also available in `DroidDifficultyCalculator` and `OsuDifficultyCalculator` as a parameter of `calculate`
90
- const rating = new MapStars(beatmapInfo.map, {
90
+ const rating = new MapStars(beatmapInfo.beatmap, {
91
91
  mods: mods,
92
92
  stats: stats,
93
93
  });
@@ -114,7 +114,7 @@ if (!beatmapInfo.title) {
114
114
  return console.log("Beatmap not found");
115
115
  }
116
116
 
117
- const rating = new MapStars(beatmapInfo.map);
117
+ const rating = new MapStars(beatmapInfo.beatmap);
118
118
 
119
119
  // osu!droid performance
120
120
  const droidPerformance = new DroidPerformanceCalculator(
@@ -152,7 +152,7 @@ if (!beatmapInfo.title) {
152
152
  return console.log("Beatmap not found");
153
153
  }
154
154
 
155
- const rating = new OsuDifficultyCalculator(beatmapInfo.map).calculate();
155
+ const rating = new OsuDifficultyCalculator(beatmapInfo.beatmap).calculate();
156
156
 
157
157
  const accuracy = new Accuracy({
158
158
  // Specify your misses here