@rian8337/osu-difficulty-calculator 4.0.0-beta.97 → 4.0.0-beta.99
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 +4 -2
- package/package.json +3 -3
- package/typings/index.d.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -90,7 +90,7 @@ class DifficultyCalculator {
|
|
|
90
90
|
}
|
|
91
91
|
attributes[i] = {
|
|
92
92
|
time: obj.endTime,
|
|
93
|
-
attributes: this.createDifficultyAttributes(beatmap,
|
|
93
|
+
attributes: this.createDifficultyAttributes(beatmap, progressiveBeatmap, skills, difficultyObjects.slice(0, currentIndex)),
|
|
94
94
|
sliderCount: progressiveBeatmap.hitObjects.sliders,
|
|
95
95
|
sliderTickCount: progressiveBeatmap.hitObjects.sliderTicks,
|
|
96
96
|
sliderRepeatCount: progressiveBeatmap.hitObjects.sliderRepeatPoints
|
|
@@ -3501,7 +3501,9 @@ class DroidScoreUtils {
|
|
|
3501
3501
|
* Calculates the maximum possible spinner bonus for a given beatmap.
|
|
3502
3502
|
*
|
|
3503
3503
|
* @param beatmap The `Beatmap` to calculate the maximum spinner bonus for.
|
|
3504
|
-
* @param playableBeatmap The `
|
|
3504
|
+
* @param playableBeatmap The `PlayableBeatmap` to calculate the maximum spinner bonus for.
|
|
3505
|
+
* Only base `PlayableBeatmap` members are used, so a progressive (as-of-a-point-in-time)
|
|
3506
|
+
* beatmap can be passed here too - see `DifficultyCalculator.calculateTimed`.
|
|
3505
3507
|
* @returns The maximum spinner bonus.
|
|
3506
3508
|
*/
|
|
3507
3509
|
static calculateMaximumSpinnerBonus(beatmap, playableBeatmap) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rian8337/osu-difficulty-calculator",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.99",
|
|
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",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"url": "https://github.com/Rian8337/osu-droid-module/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@rian8337/osu-base": "4.0.0-beta.
|
|
36
|
+
"@rian8337/osu-base": "4.0.0-beta.98"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "8db713bd3e23b065f26d65f4d312e3d55c384a1c"
|
|
42
42
|
}
|
package/typings/index.d.ts
CHANGED
|
@@ -550,7 +550,7 @@ declare abstract class DifficultyCalculator<TBeatmap extends PlayableBeatmap, TH
|
|
|
550
550
|
* @param objects The `DifficultyHitObject`s which were processed.
|
|
551
551
|
* @returns The `DifficultyAttributes` object.
|
|
552
552
|
*/
|
|
553
|
-
protected abstract createDifficultyAttributes(beatmap: Beatmap, playableBeatmap:
|
|
553
|
+
protected abstract createDifficultyAttributes(beatmap: Beatmap, playableBeatmap: PlayableBeatmap, skills: Skill[], objects: THitObject[]): TAttributes;
|
|
554
554
|
/**
|
|
555
555
|
* Constructs a `PlayableBeatmap` from a `Beatmap` with specific `Mod`s.
|
|
556
556
|
*
|
|
@@ -845,7 +845,7 @@ declare class ExtendedDroidDifficultyAttributes extends DroidDifficultyAttribute
|
|
|
845
845
|
declare class DroidDifficultyCalculator extends DifficultyCalculator<DroidPlayableBeatmap, DroidDifficultyHitObject, ExtendedDroidDifficultyAttributes> {
|
|
846
846
|
constructor();
|
|
847
847
|
retainDifficultyAdjustmentMods(mods: Mod[]): Mod[];
|
|
848
|
-
protected createDifficultyAttributes(beatmap: Beatmap, playableBeatmap:
|
|
848
|
+
protected createDifficultyAttributes(beatmap: Beatmap, playableBeatmap: PlayableBeatmap, skills: Skill[], objects: DroidDifficultyHitObject[]): ExtendedDroidDifficultyAttributes;
|
|
849
849
|
protected createPlayableBeatmap(beatmap: Beatmap, mods?: ModMap): DroidPlayableBeatmap;
|
|
850
850
|
protected createDifficultyHitObjects(beatmap: DroidPlayableBeatmap): DroidDifficultyHitObject[];
|
|
851
851
|
protected createSkills(beatmap: DroidPlayableBeatmap): Skill[];
|
|
@@ -1446,7 +1446,7 @@ declare class OsuDifficultyAttributes extends DifficultyAttributes implements IO
|
|
|
1446
1446
|
declare class OsuDifficultyCalculator extends DifficultyCalculator<OsuPlayableBeatmap, OsuDifficultyHitObject, OsuDifficultyAttributes> {
|
|
1447
1447
|
constructor();
|
|
1448
1448
|
retainDifficultyAdjustmentMods(mods: Mod[]): Mod[];
|
|
1449
|
-
protected createDifficultyAttributes(beatmap: Beatmap, playableBeatmap:
|
|
1449
|
+
protected createDifficultyAttributes(beatmap: Beatmap, playableBeatmap: PlayableBeatmap, skills: Skill[]): OsuDifficultyAttributes;
|
|
1450
1450
|
protected createPlayableBeatmap(beatmap: Beatmap, mods?: ModMap): OsuPlayableBeatmap;
|
|
1451
1451
|
protected createDifficultyHitObjects(beatmap: OsuPlayableBeatmap): OsuDifficultyHitObject[];
|
|
1452
1452
|
protected createSkills(beatmap: OsuPlayableBeatmap): Skill[];
|