@rian8337/osu-difficulty-calculator 3.0.0-beta.2 → 3.0.0-beta.21
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 +5 -3
- package/dist/index.js +3016 -2847
- package/dist/index.js.map +1 -1
- package/package.json +37 -37
- package/typings/index.d.ts +1308 -1183
package/README.md
CHANGED
|
@@ -118,13 +118,15 @@ const rating = new MapStars(beatmapInfo.map);
|
|
|
118
118
|
|
|
119
119
|
// osu!droid performance
|
|
120
120
|
const droidPerformance = new DroidPerformanceCalculator(
|
|
121
|
-
rating.droid
|
|
121
|
+
rating.droid.attributes
|
|
122
122
|
).calculate();
|
|
123
123
|
|
|
124
124
|
console.log(droidPerformance);
|
|
125
125
|
|
|
126
126
|
// osu!standard performance
|
|
127
|
-
const osuPerformance = new OsuPerformanceCalculator(
|
|
127
|
+
const osuPerformance = new OsuPerformanceCalculator(
|
|
128
|
+
rating.osu.attributes
|
|
129
|
+
).calculate();
|
|
128
130
|
|
|
129
131
|
console.log(osuPerformance);
|
|
130
132
|
```
|
|
@@ -179,7 +181,7 @@ const stats = new MapStats({
|
|
|
179
181
|
speedMultiplier: 1.25,
|
|
180
182
|
});
|
|
181
183
|
|
|
182
|
-
const performance = new OsuPerformanceCalculator(rating).calculate({
|
|
184
|
+
const performance = new OsuPerformanceCalculator(rating.attributes).calculate({
|
|
183
185
|
combo: 1250,
|
|
184
186
|
accPercent: accuracy,
|
|
185
187
|
// The tap penalty will only be used by `DroidPerformanceCalculator` and
|