@rian8337/osu-difficulty-calculator 3.0.0-beta.22 → 3.0.0-beta.23

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.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +3 -3
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(
@@ -154,7 +154,7 @@ if (!beatmapInfo.title) {
154
154
  return console.log("Beatmap not found");
155
155
  }
156
156
 
157
- const rating = new OsuDifficultyCalculator(beatmapInfo.map).calculate();
157
+ const rating = new OsuDifficultyCalculator(beatmapInfo.beatmap).calculate();
158
158
 
159
159
  const accuracy = new Accuracy({
160
160
  // Specify your misses here
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-difficulty-calculator",
3
- "version": "3.0.0-beta.22",
3
+ "version": "3.0.0-beta.23",
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": "^3.0.0-beta.19"
33
+ "@rian8337/osu-base": "^3.0.0-beta.23"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "fbd9273489ada8a7f7ab2abdf705879300271eec"
38
+ "gitHead": "0066f7d27ae59cb5bda607d747f084f140552413"
39
39
  }