@rian8337/osu-base 4.0.0-beta.95 → 4.0.0-beta.97
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 +2767 -1648
- package/package.json +2 -2
- package/typings/index.d.ts +637 -275
package/typings/index.d.ts
CHANGED
|
@@ -89,19 +89,6 @@ interface IModApplicableToDroid {
|
|
|
89
89
|
* Whether this `Mod` results in a meaningful effect to gameplay when applied in osu!droid.
|
|
90
90
|
*/
|
|
91
91
|
get isDroidRelevant(): boolean;
|
|
92
|
-
/**
|
|
93
|
-
* The score multiplier of this `Mod` in osu!droid.
|
|
94
|
-
*/
|
|
95
|
-
get droidScoreMultiplier(): number;
|
|
96
|
-
/**
|
|
97
|
-
* The score multiplier used when reverse-engineering raw scores from stored total score with
|
|
98
|
-
* multiplier during database migration for osu!droid. Defaults to {@link droidScoreMultiplier}.
|
|
99
|
-
*
|
|
100
|
-
* **If {@link droidScoreMultiplier} is changed in the future, this must be changed in the affected `Mod`
|
|
101
|
-
* subclass to return the old formula, so scores that need to be migrated on-fly are divided by the correct
|
|
102
|
-
* historical multiplier**.
|
|
103
|
-
*/
|
|
104
|
-
get migrationDroidScoreMultiplier(): number;
|
|
105
92
|
}
|
|
106
93
|
|
|
107
94
|
/**
|
|
@@ -1911,10 +1898,6 @@ interface IModApplicableToOsu {
|
|
|
1911
1898
|
* Whether this `Mod` results in a meaningful effect to gameplay when applied in osu!standard.
|
|
1912
1899
|
*/
|
|
1913
1900
|
get isOsuRelevant(): boolean;
|
|
1914
|
-
/**
|
|
1915
|
-
* The score multiplier of this `Mod` in osu!standard.
|
|
1916
|
-
*/
|
|
1917
|
-
get osuScoreMultiplier(): number;
|
|
1918
1901
|
}
|
|
1919
1902
|
|
|
1920
1903
|
/**
|
|
@@ -1956,21 +1939,6 @@ interface IModFacilitatesAdjustment {
|
|
|
1956
1939
|
readonly facilitateAdjustment: true;
|
|
1957
1940
|
}
|
|
1958
1941
|
|
|
1959
|
-
/**
|
|
1960
|
-
* An interface for `Mod`s that require the original instance of a `BeatmapDifficulty` to perform
|
|
1961
|
-
* conversion and processing.
|
|
1962
|
-
*/
|
|
1963
|
-
interface IModRequiresBeatmapDifficulty {
|
|
1964
|
-
/**
|
|
1965
|
-
* Applies this `IModRequiresBeatmapDifficulty` from a `BeatmapDifficulty`.
|
|
1966
|
-
*
|
|
1967
|
-
* This is called before conversion and processing.
|
|
1968
|
-
*
|
|
1969
|
-
* @param difficulty The `BeatmapDifficulty` to apply from.
|
|
1970
|
-
*/
|
|
1971
|
-
applyFromBeatmapDifficulty(difficulty: BeatmapDifficulty): void;
|
|
1972
|
-
}
|
|
1973
|
-
|
|
1974
1942
|
/**
|
|
1975
1943
|
* Represents a mod that has been serialized.
|
|
1976
1944
|
*/
|
|
@@ -2062,6 +2030,13 @@ declare class ModSetting<T = unknown> {
|
|
|
2062
2030
|
* @returns A string representation of this `ModSetting`'s value.
|
|
2063
2031
|
*/
|
|
2064
2032
|
toDisplayString(): string;
|
|
2033
|
+
/**
|
|
2034
|
+
* Formats a value of this `ModSetting` to a string using the display formatter.
|
|
2035
|
+
*
|
|
2036
|
+
* @param value The value to format.
|
|
2037
|
+
* @returns The formatted string representation of the value.
|
|
2038
|
+
*/
|
|
2039
|
+
formatValue(value: T): string;
|
|
2065
2040
|
/**
|
|
2066
2041
|
* Binds an action that will be called when the value of this `ModSetting` changes.
|
|
2067
2042
|
*
|
|
@@ -2095,17 +2070,6 @@ declare abstract class Mod {
|
|
|
2095
2070
|
* Should be `false` for cases where the user is not meant to apply the `Mod` by themselves.
|
|
2096
2071
|
*/
|
|
2097
2072
|
readonly userPlayable: boolean;
|
|
2098
|
-
/**
|
|
2099
|
-
* The {@link Mod}s this {@link Mod} cannot be enabled with.
|
|
2100
|
-
*
|
|
2101
|
-
* This is merely a static list of {@link Mod} constructors that this {@link Mod} is incompatible with,
|
|
2102
|
-
* regardless of the actual instance of the {@link Mod}.
|
|
2103
|
-
*
|
|
2104
|
-
* Some {@link Mod}s may have additional compatibility requirements that are captured in
|
|
2105
|
-
* {@link isCompatibleWith}. When checking for {@link Mod} compatibility, always use
|
|
2106
|
-
* {@link isCompatibleWith}.
|
|
2107
|
-
*/
|
|
2108
|
-
readonly incompatibleMods: Set<typeof Mod>;
|
|
2109
2073
|
private settingsBacking;
|
|
2110
2074
|
/**
|
|
2111
2075
|
* `ModSetting`s that are specific to this `Mod`.
|
|
@@ -2118,13 +2082,20 @@ declare abstract class Mod {
|
|
|
2118
2082
|
/**
|
|
2119
2083
|
* Determines whether this {@link Mod} is compatible with another {@link Mod}.
|
|
2120
2084
|
*
|
|
2121
|
-
* This extends {@link incompatibleMods} by allowing for dynamic checks against
|
|
2122
|
-
* the actual instance of the {@link Mod} (i.e., its specific settings).
|
|
2123
|
-
*
|
|
2124
2085
|
* @param other The {@link Mod} to check compatibility with.
|
|
2125
2086
|
* @return `true` if this {@link Mod} is compatible with {@link other}, `false` otherwise.
|
|
2126
2087
|
*/
|
|
2127
2088
|
isCompatibleWith(other: Mod): boolean;
|
|
2089
|
+
/**
|
|
2090
|
+
* Determines whether {@link other} is an instance of any of the given {@link Mod} types.
|
|
2091
|
+
*
|
|
2092
|
+
* This is a convenience method for {@link isCompatibleWith} overrides that need to exclude a
|
|
2093
|
+
* fixed set of {@link Mod} types.
|
|
2094
|
+
*
|
|
2095
|
+
* @param other The {@link Mod} to check.
|
|
2096
|
+
* @param types The {@link Mod} types to check {@link other} against.
|
|
2097
|
+
*/
|
|
2098
|
+
protected isInstanceOfAny(other: Mod, ...types: readonly (typeof Mod)[]): boolean;
|
|
2128
2099
|
/**
|
|
2129
2100
|
* Serializes this `Mod` to a `SerializedMod`.
|
|
2130
2101
|
*/
|
|
@@ -2180,10 +2151,6 @@ declare abstract class Mod {
|
|
|
2180
2151
|
* Whether this `Mod` facilitates adjustment to a `HitObject` or `BeatmapDifficulty`.
|
|
2181
2152
|
*/
|
|
2182
2153
|
facilitatesAdjustment(): this is this & IModFacilitatesAdjustment;
|
|
2183
|
-
/**
|
|
2184
|
-
* Whether this `Mod` requires the original `BeatmapDifficulty` for conversion and processing.
|
|
2185
|
-
*/
|
|
2186
|
-
requiresBeatmapDifficulty(): this is this & IModRequiresBeatmapDifficulty;
|
|
2187
2154
|
/**
|
|
2188
2155
|
* Compares this `Mod` to another `Mod` for equality.
|
|
2189
2156
|
*
|
|
@@ -2270,6 +2237,7 @@ declare class ModMap extends Map<typeof Mod, Mod> {
|
|
|
2270
2237
|
* Represents a beatmap that is in a playable state for a specific game mode.
|
|
2271
2238
|
*/
|
|
2272
2239
|
declare abstract class PlayableBeatmap implements IBeatmap {
|
|
2240
|
+
private readonly baseBeatmap;
|
|
2273
2241
|
readonly formatVersion: number;
|
|
2274
2242
|
readonly general: BeatmapGeneral;
|
|
2275
2243
|
readonly editor: BeatmapEditor;
|
|
@@ -2278,14 +2246,14 @@ declare abstract class PlayableBeatmap implements IBeatmap {
|
|
|
2278
2246
|
readonly events: BeatmapEvents;
|
|
2279
2247
|
readonly controlPoints: BeatmapControlPoints;
|
|
2280
2248
|
readonly colors: BeatmapColor;
|
|
2281
|
-
|
|
2282
|
-
|
|
2249
|
+
hitObjects: BeatmapHitObjects;
|
|
2250
|
+
get maxCombo(): number;
|
|
2283
2251
|
/**
|
|
2284
2252
|
* The `Mod`s that were applied to this `PlayableBeatmap`.
|
|
2285
2253
|
*/
|
|
2286
2254
|
readonly mods: ModMap;
|
|
2287
2255
|
/**
|
|
2288
|
-
* The speed multiplier that was applied to this
|
|
2256
|
+
* The speed multiplier that was applied to this `PlayableBeatmap`.
|
|
2289
2257
|
*/
|
|
2290
2258
|
readonly speedMultiplier: number;
|
|
2291
2259
|
private readonly _hitWindow;
|
|
@@ -4436,6 +4404,62 @@ declare class DecimalModSetting extends NumberModSetting {
|
|
|
4436
4404
|
protected processValue(value: number): number;
|
|
4437
4405
|
}
|
|
4438
4406
|
|
|
4407
|
+
/**
|
|
4408
|
+
* Represents a `Mod` specific setting that is constrained to one of a fixed set of enum-like values.
|
|
4409
|
+
*
|
|
4410
|
+
* Values are serialized by their index within {@link entries} to match the format used by osu!droid's
|
|
4411
|
+
* `EnumModSetting`.
|
|
4412
|
+
*/
|
|
4413
|
+
declare class EnumModSetting<T> extends ModSetting<T> {
|
|
4414
|
+
protected readonly displayFormatter: (value: T) => string;
|
|
4415
|
+
/**
|
|
4416
|
+
* The possible values of this `EnumModSetting`, in the order used for serialization.
|
|
4417
|
+
*/
|
|
4418
|
+
readonly entries: readonly T[];
|
|
4419
|
+
constructor(name: string, key: string | null, description: string, defaultValue: T, entries: readonly T[], displayFormatter?: (value: T) => string);
|
|
4420
|
+
load(settings: Record<string, unknown>): void;
|
|
4421
|
+
save(settings: Record<string, unknown>): void;
|
|
4422
|
+
}
|
|
4423
|
+
|
|
4424
|
+
/**
|
|
4425
|
+
* The mode of accuracy that triggers a failure in {@link ModAccuracyChallenge}.
|
|
4426
|
+
*/
|
|
4427
|
+
declare enum AccuracyMode {
|
|
4428
|
+
MaximumAchievable = 0,
|
|
4429
|
+
Standard = 1
|
|
4430
|
+
}
|
|
4431
|
+
/**
|
|
4432
|
+
* Represents the Accuracy Challenge mod.
|
|
4433
|
+
*/
|
|
4434
|
+
declare class ModAccuracyChallenge extends Mod implements IModApplicableToOsu {
|
|
4435
|
+
readonly acronym = "AC";
|
|
4436
|
+
readonly name = "Accuracy Challenge";
|
|
4437
|
+
readonly osuRanked = true;
|
|
4438
|
+
readonly isOsuRelevant = true;
|
|
4439
|
+
readonly osuScoreMultiplier = 1;
|
|
4440
|
+
/**
|
|
4441
|
+
* Trigger a failure if accuracy goes below this value.
|
|
4442
|
+
*/
|
|
4443
|
+
readonly minimumAccuracy: DecimalModSetting;
|
|
4444
|
+
/**
|
|
4445
|
+
* The mode of accuracy that will trigger failure.
|
|
4446
|
+
*/
|
|
4447
|
+
readonly accuracyJudgeMode: EnumModSetting<AccuracyMode>;
|
|
4448
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4449
|
+
}
|
|
4450
|
+
|
|
4451
|
+
/**
|
|
4452
|
+
* Represents the Alternate mod.
|
|
4453
|
+
*/
|
|
4454
|
+
declare class ModAlternate extends Mod implements IModApplicableToOsu {
|
|
4455
|
+
readonly acronym = "AL";
|
|
4456
|
+
readonly name = "Alternate";
|
|
4457
|
+
readonly osuRanked = true;
|
|
4458
|
+
readonly isOsuRelevant = true;
|
|
4459
|
+
readonly osuScoreMultiplier = 1;
|
|
4460
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4461
|
+
}
|
|
4462
|
+
|
|
4439
4463
|
/**
|
|
4440
4464
|
* Represents the Approach Different mod.
|
|
4441
4465
|
*/
|
|
@@ -4443,12 +4467,9 @@ declare class ModApproachDifferent extends Mod implements IModApplicableToDroid,
|
|
|
4443
4467
|
readonly name = "Approach Different";
|
|
4444
4468
|
readonly acronym = "AD";
|
|
4445
4469
|
readonly droidRanked = false;
|
|
4446
|
-
readonly droidScoreMultiplier = 1;
|
|
4447
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
4448
4470
|
readonly isDroidRelevant = true;
|
|
4449
4471
|
readonly osuRanked = false;
|
|
4450
4472
|
readonly isOsuRelevant = true;
|
|
4451
|
-
readonly osuScoreMultiplier = 1;
|
|
4452
4473
|
/**
|
|
4453
4474
|
* The initial size of the approach circle, relative to hit circles.
|
|
4454
4475
|
*/
|
|
@@ -4456,12 +4477,12 @@ declare class ModApproachDifferent extends Mod implements IModApplicableToDroid,
|
|
|
4456
4477
|
/**
|
|
4457
4478
|
* The animation style of the approach circles.
|
|
4458
4479
|
*/
|
|
4459
|
-
readonly style:
|
|
4480
|
+
readonly style: EnumModSetting<AnimationStyle>;
|
|
4460
4481
|
/**
|
|
4461
4482
|
* The {@link Easing} to apply to the approach circle animation.
|
|
4462
4483
|
*/
|
|
4463
4484
|
get easing(): Easing;
|
|
4464
|
-
|
|
4485
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4465
4486
|
}
|
|
4466
4487
|
declare enum AnimationStyle {
|
|
4467
4488
|
Linear = 0,
|
|
@@ -4484,13 +4505,10 @@ declare class ModAuto extends Mod implements IModApplicableToDroid, IModApplicab
|
|
|
4484
4505
|
readonly name = "Autoplay";
|
|
4485
4506
|
readonly droidRanked = false;
|
|
4486
4507
|
readonly isDroidRelevant = true;
|
|
4487
|
-
readonly droidScoreMultiplier = 1;
|
|
4488
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
4489
4508
|
readonly osuRanked = false;
|
|
4490
4509
|
readonly isOsuRelevant = true;
|
|
4491
|
-
readonly osuScoreMultiplier = 1;
|
|
4492
4510
|
readonly bitwise: number;
|
|
4493
|
-
|
|
4511
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4494
4512
|
}
|
|
4495
4513
|
|
|
4496
4514
|
/**
|
|
@@ -4501,13 +4519,37 @@ declare class ModAutopilot extends Mod implements IModApplicableToDroid, IModApp
|
|
|
4501
4519
|
readonly name = "Autopilot";
|
|
4502
4520
|
readonly droidRanked = false;
|
|
4503
4521
|
readonly isDroidRelevant = true;
|
|
4504
|
-
readonly droidScoreMultiplier = 0.001;
|
|
4505
|
-
readonly migrationDroidScoreMultiplier = 0.001;
|
|
4506
4522
|
readonly osuRanked = false;
|
|
4507
4523
|
readonly isOsuRelevant = true;
|
|
4508
|
-
readonly osuScoreMultiplier = 0;
|
|
4509
4524
|
readonly bitwise: number;
|
|
4510
|
-
|
|
4525
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4526
|
+
}
|
|
4527
|
+
|
|
4528
|
+
/**
|
|
4529
|
+
* The direction of rotation of {@link ModBarrelRoll}.
|
|
4530
|
+
*/
|
|
4531
|
+
declare enum RotationDirection {
|
|
4532
|
+
Clockwise = 0,
|
|
4533
|
+
Counterclockwise = 1
|
|
4534
|
+
}
|
|
4535
|
+
/**
|
|
4536
|
+
* Represents the Barrel Roll mod.
|
|
4537
|
+
*/
|
|
4538
|
+
declare class ModBarrelRoll extends Mod implements IModApplicableToOsu {
|
|
4539
|
+
readonly acronym = "BR";
|
|
4540
|
+
readonly name = "Barrel Roll";
|
|
4541
|
+
readonly osuRanked = false;
|
|
4542
|
+
readonly isOsuRelevant = true;
|
|
4543
|
+
readonly osuScoreMultiplier = 1;
|
|
4544
|
+
/**
|
|
4545
|
+
* Rotations per minute.
|
|
4546
|
+
*/
|
|
4547
|
+
readonly spinSpeed: DecimalModSetting;
|
|
4548
|
+
/**
|
|
4549
|
+
* The direction of rotation.
|
|
4550
|
+
*/
|
|
4551
|
+
readonly direction: EnumModSetting<RotationDirection>;
|
|
4552
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4511
4553
|
}
|
|
4512
4554
|
|
|
4513
4555
|
/**
|
|
@@ -4519,25 +4561,113 @@ declare class ModBlinds extends Mod implements IModApplicableToOsu {
|
|
|
4519
4561
|
readonly osuRanked = true;
|
|
4520
4562
|
readonly isOsuRelevant = true;
|
|
4521
4563
|
readonly osuScoreMultiplier = 1.12;
|
|
4522
|
-
|
|
4564
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4523
4565
|
}
|
|
4524
4566
|
|
|
4525
4567
|
/**
|
|
4526
|
-
* Represents a `Mod` that
|
|
4568
|
+
* Represents a `Mod` specific setting that is constrained to a range of integer values.
|
|
4527
4569
|
*/
|
|
4528
|
-
declare
|
|
4570
|
+
declare class IntegerModSetting extends NumberModSetting {
|
|
4571
|
+
constructor(name: string, key: string | null, description: string, defaultValue: number, min?: number, max?: number);
|
|
4572
|
+
}
|
|
4573
|
+
|
|
4574
|
+
/**
|
|
4575
|
+
* Represents the Bloom mod.
|
|
4576
|
+
*/
|
|
4577
|
+
declare class ModBloom extends Mod implements IModApplicableToOsu {
|
|
4578
|
+
readonly acronym = "BM";
|
|
4579
|
+
readonly name = "Bloom";
|
|
4580
|
+
readonly osuRanked = false;
|
|
4581
|
+
readonly isOsuRelevant = true;
|
|
4582
|
+
readonly osuScoreMultiplier = 1;
|
|
4529
4583
|
/**
|
|
4530
|
-
* The
|
|
4584
|
+
* The combo count at which the cursor reaches its maximum size.
|
|
4531
4585
|
*/
|
|
4532
|
-
|
|
4586
|
+
readonly maxSizeComboCount: IntegerModSetting;
|
|
4533
4587
|
/**
|
|
4534
|
-
* The
|
|
4588
|
+
* The multiplier applied to cursor size when combo reaches maximum.
|
|
4535
4589
|
*/
|
|
4536
|
-
|
|
4590
|
+
readonly maxCursorSize: DecimalModSetting;
|
|
4591
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4592
|
+
}
|
|
4593
|
+
|
|
4594
|
+
/**
|
|
4595
|
+
* Represents the Bubbles mod.
|
|
4596
|
+
*/
|
|
4597
|
+
declare class ModBubbles extends Mod implements IModApplicableToOsu {
|
|
4598
|
+
readonly acronym = "BU";
|
|
4599
|
+
readonly name = "Bubbles";
|
|
4600
|
+
readonly osuRanked = false;
|
|
4601
|
+
readonly isOsuRelevant = true;
|
|
4602
|
+
readonly osuScoreMultiplier = 1;
|
|
4603
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4604
|
+
}
|
|
4605
|
+
|
|
4606
|
+
/**
|
|
4607
|
+
* Represents the Cinema mod.
|
|
4608
|
+
*/
|
|
4609
|
+
declare class ModCinema extends Mod implements IModApplicableToOsu {
|
|
4610
|
+
readonly acronym = "CN";
|
|
4611
|
+
readonly name = "Cinema";
|
|
4612
|
+
readonly osuRanked = false;
|
|
4613
|
+
readonly isOsuRelevant = true;
|
|
4614
|
+
readonly osuScoreMultiplier = 1;
|
|
4615
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4616
|
+
}
|
|
4617
|
+
|
|
4618
|
+
/**
|
|
4619
|
+
* Represents a `Mod` specific setting that is constrained to a boolean value.
|
|
4620
|
+
*/
|
|
4621
|
+
declare class BooleanModSetting extends ModSetting<boolean> {
|
|
4622
|
+
readonly displayFormatter: (value: boolean) => string;
|
|
4623
|
+
load(settings: Record<string, unknown>): void;
|
|
4624
|
+
}
|
|
4625
|
+
|
|
4626
|
+
/**
|
|
4627
|
+
* Represents the Classic mod.
|
|
4628
|
+
*
|
|
4629
|
+
* Classic mods are not to be ranked yet due to compatibility and multiplier concerns. Right now
|
|
4630
|
+
* they are considered, for leaderboard purposes, to be equal to scores set on osu!stable, but
|
|
4631
|
+
* this is not the case (e.g. hit windows differ, sliders always give combo for the slider end
|
|
4632
|
+
* even on miss).
|
|
4633
|
+
*/
|
|
4634
|
+
declare class ModClassic extends Mod implements IModApplicableToOsu {
|
|
4635
|
+
readonly acronym = "CL";
|
|
4636
|
+
readonly name = "Classic";
|
|
4637
|
+
readonly osuRanked = false;
|
|
4638
|
+
readonly isOsuRelevant = true;
|
|
4639
|
+
readonly osuScoreMultiplier = 1;
|
|
4537
4640
|
/**
|
|
4538
|
-
*
|
|
4641
|
+
* Scores sliders proportionally to the number of ticks hit.
|
|
4539
4642
|
*/
|
|
4540
|
-
|
|
4643
|
+
readonly noSliderHeadAccuracy: BooleanModSetting;
|
|
4644
|
+
/**
|
|
4645
|
+
* Applies note lock to the full hit window.
|
|
4646
|
+
*/
|
|
4647
|
+
readonly classicNoteLock: BooleanModSetting;
|
|
4648
|
+
/**
|
|
4649
|
+
* Always plays a slider's tail sample regardless of whether it was hit or not.
|
|
4650
|
+
*/
|
|
4651
|
+
readonly alwaysPlayTailSample: BooleanModSetting;
|
|
4652
|
+
/**
|
|
4653
|
+
* Make hit circles fade out into a miss, rather than after it.
|
|
4654
|
+
*/
|
|
4655
|
+
readonly fadeHitCircleEarly: BooleanModSetting;
|
|
4656
|
+
/**
|
|
4657
|
+
* More closely resembles the original HP drain mechanics.
|
|
4658
|
+
*/
|
|
4659
|
+
readonly classicHealth: BooleanModSetting;
|
|
4660
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4661
|
+
}
|
|
4662
|
+
|
|
4663
|
+
/**
|
|
4664
|
+
* Represents a `Mod` that adjusts the playback rate of a track.
|
|
4665
|
+
*/
|
|
4666
|
+
declare abstract class ModRateAdjust extends Mod implements IModApplicableToTrackRate {
|
|
4667
|
+
/**
|
|
4668
|
+
* The multiplier for the track's playback rate after applying this `Mod`.
|
|
4669
|
+
*/
|
|
4670
|
+
abstract rate: number;
|
|
4541
4671
|
/**
|
|
4542
4672
|
* Generic getter to determine if this `ModRateAdjust` is relevant.
|
|
4543
4673
|
*/
|
|
@@ -4561,14 +4691,25 @@ declare class ModCustomSpeed extends ModRateAdjust implements IModApplicableToDr
|
|
|
4561
4691
|
readonly droidRanked = true;
|
|
4562
4692
|
readonly osuRanked = false;
|
|
4563
4693
|
get isDroidRelevant(): boolean;
|
|
4564
|
-
get droidScoreMultiplier(): number;
|
|
4565
|
-
get migrationDroidScoreMultiplier(): number;
|
|
4566
4694
|
get isOsuRelevant(): boolean;
|
|
4567
4695
|
get osuScoreMultiplier(): number;
|
|
4568
4696
|
constructor(trackRateMultiplier?: number);
|
|
4569
4697
|
toString(): string;
|
|
4570
4698
|
}
|
|
4571
4699
|
|
|
4700
|
+
/**
|
|
4701
|
+
* Represents the Daycore mod.
|
|
4702
|
+
*/
|
|
4703
|
+
declare class ModDaycore extends ModRateAdjust implements IModApplicableToOsu {
|
|
4704
|
+
readonly acronym = "DC";
|
|
4705
|
+
readonly name = "Daycore";
|
|
4706
|
+
readonly osuRanked = true;
|
|
4707
|
+
readonly osuScoreMultiplier = 1;
|
|
4708
|
+
readonly rate = 0.75;
|
|
4709
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4710
|
+
get isOsuRelevant(): boolean;
|
|
4711
|
+
}
|
|
4712
|
+
|
|
4572
4713
|
/**
|
|
4573
4714
|
* Represents a `Mod` that adjusts the size of `HitObject`s during their fade in animation.
|
|
4574
4715
|
*/
|
|
@@ -4581,25 +4722,40 @@ declare abstract class ModObjectScaleTween extends Mod {
|
|
|
4581
4722
|
* The final size multiplier applied to all [HitObject]s.
|
|
4582
4723
|
*/
|
|
4583
4724
|
endScale: number;
|
|
4584
|
-
|
|
4725
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4585
4726
|
}
|
|
4586
4727
|
|
|
4587
4728
|
/**
|
|
4588
4729
|
* Represents the Deflate mod.
|
|
4589
4730
|
*/
|
|
4590
|
-
declare class ModDeflate extends ModObjectScaleTween implements
|
|
4731
|
+
declare class ModDeflate extends ModObjectScaleTween implements IModApplicableToOsu {
|
|
4591
4732
|
readonly name = "Deflate";
|
|
4592
4733
|
readonly acronym = "DF";
|
|
4593
|
-
readonly droidRanked = false;
|
|
4594
|
-
readonly isDroidRelevant = true;
|
|
4595
|
-
readonly droidScoreMultiplier = 1;
|
|
4596
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
4597
4734
|
readonly osuRanked = false;
|
|
4598
4735
|
readonly isOsuRelevant = true;
|
|
4599
|
-
readonly osuScoreMultiplier = 1;
|
|
4600
4736
|
readonly startScale: DecimalModSetting;
|
|
4601
4737
|
}
|
|
4602
4738
|
|
|
4739
|
+
/**
|
|
4740
|
+
* Represents the Depth mod.
|
|
4741
|
+
*/
|
|
4742
|
+
declare class ModDepth extends Mod implements IModApplicableToOsu {
|
|
4743
|
+
readonly acronym = "DP";
|
|
4744
|
+
readonly name = "Depth";
|
|
4745
|
+
readonly osuRanked = false;
|
|
4746
|
+
readonly isOsuRelevant = true;
|
|
4747
|
+
readonly osuScoreMultiplier = 1;
|
|
4748
|
+
/**
|
|
4749
|
+
* How far away objects appear.
|
|
4750
|
+
*/
|
|
4751
|
+
readonly maxDepth: DecimalModSetting;
|
|
4752
|
+
/**
|
|
4753
|
+
* Whether approach circles should be visible.
|
|
4754
|
+
*/
|
|
4755
|
+
readonly showApproachCircles: BooleanModSetting;
|
|
4756
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4757
|
+
}
|
|
4758
|
+
|
|
4603
4759
|
/**
|
|
4604
4760
|
* Represents a `Mod` specific setting that is constrained to a number of values.
|
|
4605
4761
|
*
|
|
@@ -4622,24 +4778,21 @@ declare class NullableDecimalModSetting extends RangeConstrainedModSetting<numbe
|
|
|
4622
4778
|
}
|
|
4623
4779
|
|
|
4624
4780
|
/**
|
|
4625
|
-
* A `NullableDecimalModSetting` variant for `ModDifficultyAdjust
|
|
4626
|
-
* difficulty value alongside the user's adjusted value in the serialized format:
|
|
4627
|
-
*
|
|
4628
|
-
* `{ "adjusted": 7.0, "original": 4.0 }`
|
|
4781
|
+
* A `NullableDecimalModSetting` variant for `ModDifficultyAdjust`.
|
|
4629
4782
|
*
|
|
4630
|
-
*
|
|
4631
|
-
* alone, without a beatmap lookup. When `null`, `applyFromBeatmapDifficulty` must be called first.
|
|
4783
|
+
* The serialized format is a plain scalar (e.g. `"cs": 7.0`), matching the game client.
|
|
4632
4784
|
*
|
|
4633
|
-
*
|
|
4785
|
+
* The legacy `{ "adjusted": 7.0, "original": 4.0 }` object format is still accepted in `load` for
|
|
4786
|
+
* backward compatibility with old saved data. When present, `original` is used to set `defaultValue`
|
|
4787
|
+
* directly rather than being tracked separately.
|
|
4634
4788
|
*/
|
|
4635
4789
|
declare class DifficultyAdjustModSetting extends NullableDecimalModSetting {
|
|
4790
|
+
constructor(name: string, key: string, description: string, min?: number, max?: number, step?: number, precision?: number | null);
|
|
4636
4791
|
/**
|
|
4637
|
-
*
|
|
4638
|
-
*
|
|
4639
|
-
* Non-null means the score multiplier is self-contained; `null` means a beatmap lookup is needed.
|
|
4792
|
+
* "Default" means no override is active (`value` is `null`), regardless of what `defaultValue`
|
|
4793
|
+
* currently holds (which may be set to the beatmap's difficulty for UI hint display).
|
|
4640
4794
|
*/
|
|
4641
|
-
|
|
4642
|
-
constructor(name: string, key: string, description: string, min?: number, max?: number, step?: number, precision?: number | null);
|
|
4795
|
+
get isDefault(): boolean;
|
|
4643
4796
|
load(settings: Record<string, unknown>): void;
|
|
4644
4797
|
save(settings: Record<string, unknown>): void;
|
|
4645
4798
|
}
|
|
@@ -4647,13 +4800,12 @@ declare class DifficultyAdjustModSetting extends NullableDecimalModSetting {
|
|
|
4647
4800
|
/**
|
|
4648
4801
|
* Represents the Difficulty Adjust mod.
|
|
4649
4802
|
*/
|
|
4650
|
-
declare class ModDifficultyAdjust extends Mod implements IModApplicableToDroid, IModApplicableToOsu, IModApplicableToDifficultyWithMods, IModApplicableToHitObjectWithMods
|
|
4803
|
+
declare class ModDifficultyAdjust extends Mod implements IModApplicableToDroid, IModApplicableToOsu, IModApplicableToDifficultyWithMods, IModApplicableToHitObjectWithMods {
|
|
4651
4804
|
readonly acronym = "DA";
|
|
4652
4805
|
readonly name = "Difficulty Adjust";
|
|
4653
4806
|
readonly droidRanked = false;
|
|
4654
4807
|
readonly osuRanked = false;
|
|
4655
4808
|
readonly isOsuRelevant = true;
|
|
4656
|
-
readonly osuScoreMultiplier = 1;
|
|
4657
4809
|
/**
|
|
4658
4810
|
* The circle size to enforce.
|
|
4659
4811
|
*/
|
|
@@ -4678,8 +4830,12 @@ declare class ModDifficultyAdjust extends Mod implements IModApplicableToDroid,
|
|
|
4678
4830
|
hp?: number;
|
|
4679
4831
|
});
|
|
4680
4832
|
get isDroidRelevant(): boolean;
|
|
4681
|
-
|
|
4682
|
-
|
|
4833
|
+
/**
|
|
4834
|
+
* Sets this `ModDifficultyAdjust`'s default difficulty values. This does not change the current values of the
|
|
4835
|
+
* settings, but rather the default values that are used when the settings are reset.
|
|
4836
|
+
*
|
|
4837
|
+
* @param difficulty The `BeatmapDifficulty` to use as the default values.
|
|
4838
|
+
*/
|
|
4683
4839
|
applyFromBeatmapDifficulty(difficulty: BeatmapDifficulty): void;
|
|
4684
4840
|
applyToDifficultyWithMods(_: Modes, difficulty: BeatmapDifficulty, mods: ModMap): void;
|
|
4685
4841
|
applyToHitObjectWithMods(_: Modes, hitObject: HitObject, mods: ModMap): void;
|
|
@@ -4697,13 +4853,10 @@ declare class ModDoubleTime extends ModRateAdjust implements IModApplicableToDro
|
|
|
4697
4853
|
readonly name = "DoubleTime";
|
|
4698
4854
|
readonly droidRanked = true;
|
|
4699
4855
|
readonly osuRanked = true;
|
|
4700
|
-
readonly osuScoreMultiplier = 1.12;
|
|
4701
4856
|
readonly bitwise: number;
|
|
4702
4857
|
readonly rate = 1.5;
|
|
4703
|
-
|
|
4858
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4704
4859
|
get isDroidRelevant(): boolean;
|
|
4705
|
-
get droidScoreMultiplier(): number;
|
|
4706
|
-
get migrationDroidScoreMultiplier(): number;
|
|
4707
4860
|
get isOsuRelevant(): boolean;
|
|
4708
4861
|
}
|
|
4709
4862
|
|
|
@@ -4715,25 +4868,17 @@ declare class ModEasy extends Mod implements IModApplicableToDroid, IModApplicab
|
|
|
4715
4868
|
readonly name = "Easy";
|
|
4716
4869
|
readonly droidRanked = true;
|
|
4717
4870
|
readonly isDroidRelevant = true;
|
|
4718
|
-
readonly droidScoreMultiplier = 0.5;
|
|
4719
|
-
readonly migrationDroidScoreMultiplier = 0.5;
|
|
4720
4871
|
readonly osuRanked = true;
|
|
4721
4872
|
readonly isOsuRelevant = true;
|
|
4722
|
-
readonly osuScoreMultiplier = 0.5;
|
|
4723
4873
|
readonly bitwise: number;
|
|
4724
|
-
|
|
4874
|
+
/**
|
|
4875
|
+
* The amount of extra lives to give the player.
|
|
4876
|
+
*/
|
|
4877
|
+
readonly retries: IntegerModSetting;
|
|
4725
4878
|
applyToDifficulty(mode: Modes, difficulty: BeatmapDifficulty, adjustmentMods: ModMap): void;
|
|
4726
4879
|
isCompatibleWith(other: Mod): boolean;
|
|
4727
4880
|
}
|
|
4728
4881
|
|
|
4729
|
-
/**
|
|
4730
|
-
* Represents a `Mod` specific setting that is constrained to a boolean value.
|
|
4731
|
-
*/
|
|
4732
|
-
declare class BooleanModSetting extends ModSetting<boolean> {
|
|
4733
|
-
readonly displayFormatter: (value: boolean) => string;
|
|
4734
|
-
load(settings: Record<string, unknown>): void;
|
|
4735
|
-
}
|
|
4736
|
-
|
|
4737
4882
|
/**
|
|
4738
4883
|
* Represents the Flashlight mod.
|
|
4739
4884
|
*/
|
|
@@ -4746,11 +4891,8 @@ declare class ModFlashlight extends Mod implements IModApplicableToDroid, IModAp
|
|
|
4746
4891
|
readonly name = "Flashlight";
|
|
4747
4892
|
get droidRanked(): boolean;
|
|
4748
4893
|
readonly isDroidRelevant = true;
|
|
4749
|
-
get droidScoreMultiplier(): number;
|
|
4750
|
-
get migrationDroidScoreMultiplier(): number;
|
|
4751
4894
|
get osuRanked(): boolean;
|
|
4752
4895
|
readonly isOsuRelevant = true;
|
|
4753
|
-
get osuScoreMultiplier(): number;
|
|
4754
4896
|
readonly bitwise: number;
|
|
4755
4897
|
/**
|
|
4756
4898
|
* The amount of seconds until the Flashlight follow area reaches the cursor.
|
|
@@ -4764,7 +4906,7 @@ declare class ModFlashlight extends Mod implements IModApplicableToDroid, IModAp
|
|
|
4764
4906
|
* Whether to decrease the Flashlight size as combo increases.
|
|
4765
4907
|
*/
|
|
4766
4908
|
readonly comboBasedSize: BooleanModSetting;
|
|
4767
|
-
|
|
4909
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4768
4910
|
toString(): string;
|
|
4769
4911
|
}
|
|
4770
4912
|
|
|
@@ -4776,12 +4918,9 @@ declare class ModFreezeFrame extends Mod implements IModApplicableToDroid, IModA
|
|
|
4776
4918
|
readonly acronym = "FR";
|
|
4777
4919
|
readonly droidRanked = false;
|
|
4778
4920
|
readonly isDroidRelevant = true;
|
|
4779
|
-
readonly droidScoreMultiplier = 1;
|
|
4780
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
4781
4921
|
readonly osuRanked = false;
|
|
4782
4922
|
readonly isOsuRelevant = true;
|
|
4783
|
-
|
|
4784
|
-
constructor();
|
|
4923
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4785
4924
|
private lastNewComboTime;
|
|
4786
4925
|
applyToBeatmap(beatmap: IBeatmap): void;
|
|
4787
4926
|
private applyFadeInAdjustment;
|
|
@@ -4790,16 +4929,11 @@ declare class ModFreezeFrame extends Mod implements IModApplicableToDroid, IModA
|
|
|
4790
4929
|
/**
|
|
4791
4930
|
* Represents the Grow mod.
|
|
4792
4931
|
*/
|
|
4793
|
-
declare class ModGrow extends ModObjectScaleTween implements
|
|
4932
|
+
declare class ModGrow extends ModObjectScaleTween implements IModApplicableToOsu {
|
|
4794
4933
|
readonly name = "Grow";
|
|
4795
4934
|
readonly acronym = "GR";
|
|
4796
|
-
readonly droidRanked = false;
|
|
4797
|
-
readonly isDroidRelevant = true;
|
|
4798
|
-
readonly droidScoreMultiplier = 1;
|
|
4799
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
4800
4935
|
readonly osuRanked = false;
|
|
4801
4936
|
readonly isOsuRelevant = true;
|
|
4802
|
-
readonly osuScoreMultiplier = 1;
|
|
4803
4937
|
readonly startScale: DecimalModSetting;
|
|
4804
4938
|
}
|
|
4805
4939
|
|
|
@@ -4811,13 +4945,10 @@ declare class ModHalfTime extends ModRateAdjust implements IModApplicableToDroid
|
|
|
4811
4945
|
readonly name = "HalfTime";
|
|
4812
4946
|
readonly droidRanked = true;
|
|
4813
4947
|
readonly osuRanked = true;
|
|
4814
|
-
readonly osuScoreMultiplier = 0.3;
|
|
4815
4948
|
readonly bitwise: number;
|
|
4816
4949
|
readonly rate = 0.75;
|
|
4817
|
-
|
|
4950
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4818
4951
|
get isDroidRelevant(): boolean;
|
|
4819
|
-
get droidScoreMultiplier(): number;
|
|
4820
|
-
get migrationDroidScoreMultiplier(): number;
|
|
4821
4952
|
get isOsuRelevant(): boolean;
|
|
4822
4953
|
}
|
|
4823
4954
|
|
|
@@ -4829,13 +4960,9 @@ declare class ModHardRock extends Mod implements IModApplicableToDroid, IModAppl
|
|
|
4829
4960
|
readonly name = "HardRock";
|
|
4830
4961
|
readonly droidRanked = true;
|
|
4831
4962
|
readonly isDroidRelevant = true;
|
|
4832
|
-
readonly droidScoreMultiplier = 1.06;
|
|
4833
|
-
readonly migrationDroidScoreMultiplier = 1.06;
|
|
4834
4963
|
readonly osuRanked = true;
|
|
4835
4964
|
readonly isOsuRelevant = true;
|
|
4836
|
-
readonly osuScoreMultiplier = 1.06;
|
|
4837
4965
|
readonly bitwise: number;
|
|
4838
|
-
constructor();
|
|
4839
4966
|
applyToDifficulty(mode: Modes, difficulty: BeatmapDifficulty, adjustmentMods: ModMap): void;
|
|
4840
4967
|
applyToHitObject(_: Modes, hitObject: HitObject): void;
|
|
4841
4968
|
isCompatibleWith(other: Mod): boolean;
|
|
@@ -4861,10 +4988,7 @@ declare class ModHidden extends Mod implements IModApplicableToDroid, IModApplic
|
|
|
4861
4988
|
* The main object body will not fade when enabled.
|
|
4862
4989
|
*/
|
|
4863
4990
|
readonly onlyFadeApproachCircles: BooleanModSetting;
|
|
4864
|
-
|
|
4865
|
-
get droidScoreMultiplier(): number;
|
|
4866
|
-
get migrationDroidScoreMultiplier(): number;
|
|
4867
|
-
get osuScoreMultiplier(): number;
|
|
4991
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4868
4992
|
applyToBeatmap(beatmap: IBeatmap): void;
|
|
4869
4993
|
toString(): string;
|
|
4870
4994
|
}
|
|
@@ -4884,10 +5008,6 @@ declare class ModMagnetised extends Mod implements IModApplicableToOsu {
|
|
|
4884
5008
|
readonly attractionStrength: DecimalModSetting;
|
|
4885
5009
|
}
|
|
4886
5010
|
|
|
4887
|
-
declare class AxesModSetting extends ModSetting<Exclude<Axes, Axes.None>> {
|
|
4888
|
-
load(settings: Record<string, unknown>): void;
|
|
4889
|
-
save(settings: Record<string, unknown>): void;
|
|
4890
|
-
}
|
|
4891
5011
|
/**
|
|
4892
5012
|
* Represents the Mirror mod.
|
|
4893
5013
|
*/
|
|
@@ -4896,27 +5016,17 @@ declare class ModMirror extends Mod implements IModApplicableToDroid, IModApplic
|
|
|
4896
5016
|
readonly acronym = "MR";
|
|
4897
5017
|
readonly droidRanked = false;
|
|
4898
5018
|
readonly isDroidRelevant = true;
|
|
4899
|
-
readonly droidScoreMultiplier = 1;
|
|
4900
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
4901
5019
|
readonly osuRanked = false;
|
|
4902
5020
|
readonly isOsuRelevant = true;
|
|
4903
|
-
readonly osuScoreMultiplier = 1;
|
|
4904
5021
|
/**
|
|
4905
5022
|
* The axes to reflect the `HitObject`s along.
|
|
4906
5023
|
*/
|
|
4907
|
-
readonly flippedAxes:
|
|
4908
|
-
|
|
5024
|
+
readonly flippedAxes: EnumModSetting<Axes.X | Axes.Y | Axes.Both>;
|
|
5025
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4909
5026
|
applyToHitObject(_: Modes, hitObject: HitObject): void;
|
|
4910
5027
|
toString(): string;
|
|
4911
5028
|
}
|
|
4912
5029
|
|
|
4913
|
-
/**
|
|
4914
|
-
* Represents a `Mod` specific setting that is constrained to a range of integer values.
|
|
4915
|
-
*/
|
|
4916
|
-
declare class IntegerModSetting extends NumberModSetting {
|
|
4917
|
-
constructor(name: string, key: string | null, description: string, defaultValue: number, min?: number, max?: number);
|
|
4918
|
-
}
|
|
4919
|
-
|
|
4920
5030
|
/**
|
|
4921
5031
|
* Represents the Muted mod.
|
|
4922
5032
|
*/
|
|
@@ -4925,11 +5035,8 @@ declare class ModMuted extends Mod implements IModApplicableToDroid, IModApplica
|
|
|
4925
5035
|
readonly acronym = "MU";
|
|
4926
5036
|
readonly droidRanked = false;
|
|
4927
5037
|
readonly isDroidRelevant = true;
|
|
4928
|
-
readonly droidScoreMultiplier = 1;
|
|
4929
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
4930
5038
|
readonly osuRanked = true;
|
|
4931
5039
|
readonly isOsuRelevant = true;
|
|
4932
|
-
readonly osuScoreMultiplier = 1;
|
|
4933
5040
|
/**
|
|
4934
5041
|
* Increase volume as combo builds.
|
|
4935
5042
|
*/
|
|
@@ -4964,13 +5071,10 @@ declare class ModNightCore extends ModRateAdjust implements IModApplicableToDroi
|
|
|
4964
5071
|
readonly name = "NightCore";
|
|
4965
5072
|
readonly droidRanked = true;
|
|
4966
5073
|
readonly osuRanked = true;
|
|
4967
|
-
readonly osuScoreMultiplier = 1.12;
|
|
4968
5074
|
readonly bitwise: number;
|
|
4969
5075
|
readonly rate: number;
|
|
4970
|
-
|
|
5076
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4971
5077
|
get isDroidRelevant(): boolean;
|
|
4972
|
-
get droidScoreMultiplier(): number;
|
|
4973
|
-
get migrationDroidScoreMultiplier(): number;
|
|
4974
5078
|
get isOsuRelevant(): boolean;
|
|
4975
5079
|
}
|
|
4976
5080
|
|
|
@@ -4982,13 +5086,26 @@ declare class ModNoFail extends Mod implements IModApplicableToDroid, IModApplic
|
|
|
4982
5086
|
readonly name = "NoFail";
|
|
4983
5087
|
readonly droidRanked = true;
|
|
4984
5088
|
readonly isDroidRelevant = true;
|
|
4985
|
-
readonly droidScoreMultiplier = 0.5;
|
|
4986
|
-
readonly migrationDroidScoreMultiplier = 0.5;
|
|
4987
5089
|
readonly osuRanked = true;
|
|
4988
5090
|
readonly isOsuRelevant = true;
|
|
4989
|
-
readonly osuScoreMultiplier = 0.5;
|
|
4990
5091
|
readonly bitwise: number;
|
|
4991
|
-
|
|
5092
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5093
|
+
}
|
|
5094
|
+
|
|
5095
|
+
/**
|
|
5096
|
+
* Represents the No Scope mod.
|
|
5097
|
+
*/
|
|
5098
|
+
declare class ModNoScope extends Mod implements IModApplicableToOsu {
|
|
5099
|
+
readonly acronym = "NS";
|
|
5100
|
+
readonly name = "No Scope";
|
|
5101
|
+
readonly osuRanked = true;
|
|
5102
|
+
readonly isOsuRelevant = true;
|
|
5103
|
+
readonly osuScoreMultiplier = 1;
|
|
5104
|
+
/**
|
|
5105
|
+
* The combo count at which the cursor becomes completely hidden.
|
|
5106
|
+
*/
|
|
5107
|
+
readonly hiddenComboCount: IntegerModSetting;
|
|
5108
|
+
isCompatibleWith(other: Mod): boolean;
|
|
4992
5109
|
}
|
|
4993
5110
|
|
|
4994
5111
|
/**
|
|
@@ -5017,8 +5134,6 @@ declare class ModNoFail extends Mod implements IModApplicableToDroid, IModApplic
|
|
|
5017
5134
|
*/
|
|
5018
5135
|
declare class ModOldNightCore extends ModNightCore {
|
|
5019
5136
|
readonly rate: number;
|
|
5020
|
-
get droidScoreMultiplier(): number;
|
|
5021
|
-
get migrationDroidScoreMultiplier(): number;
|
|
5022
5137
|
}
|
|
5023
5138
|
|
|
5024
5139
|
/**
|
|
@@ -5029,13 +5144,10 @@ declare class ModPerfect extends Mod implements IModApplicableToDroid, IModAppli
|
|
|
5029
5144
|
readonly name = "Perfect";
|
|
5030
5145
|
readonly droidRanked = true;
|
|
5031
5146
|
readonly isDroidRelevant = true;
|
|
5032
|
-
readonly droidScoreMultiplier = 1;
|
|
5033
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
5034
5147
|
readonly osuRanked = true;
|
|
5035
5148
|
readonly isOsuRelevant = true;
|
|
5036
|
-
readonly osuScoreMultiplier = 1;
|
|
5037
5149
|
readonly bitwise: number;
|
|
5038
|
-
|
|
5150
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5039
5151
|
}
|
|
5040
5152
|
|
|
5041
5153
|
/**
|
|
@@ -5046,8 +5158,6 @@ declare class ModPrecise extends Mod implements IModApplicableToDroid, IModAppli
|
|
|
5046
5158
|
readonly name = "Precise";
|
|
5047
5159
|
readonly droidRanked = true;
|
|
5048
5160
|
readonly isDroidRelevant = true;
|
|
5049
|
-
readonly droidScoreMultiplier = 1.06;
|
|
5050
|
-
readonly migrationDroidScoreMultiplier = 1.06;
|
|
5051
5161
|
applyToHitObject(mode: Modes, hitObject: HitObject): void;
|
|
5052
5162
|
}
|
|
5053
5163
|
|
|
@@ -5073,11 +5183,8 @@ declare class ModRandom extends Mod implements IModApplicableToDroid, IModApplic
|
|
|
5073
5183
|
readonly acronym = "RD";
|
|
5074
5184
|
readonly droidRanked = false;
|
|
5075
5185
|
readonly isDroidRelevant = true;
|
|
5076
|
-
readonly droidScoreMultiplier = 1;
|
|
5077
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
5078
5186
|
readonly osuRanked = false;
|
|
5079
5187
|
readonly isOsuRelevant = true;
|
|
5080
|
-
readonly osuScoreMultiplier = 1;
|
|
5081
5188
|
/**
|
|
5082
5189
|
* The seed to use.
|
|
5083
5190
|
*/
|
|
@@ -5103,30 +5210,6 @@ declare class ModRandom extends Mod implements IModApplicableToDroid, IModApplic
|
|
|
5103
5210
|
toString(): string;
|
|
5104
5211
|
}
|
|
5105
5212
|
|
|
5106
|
-
/**
|
|
5107
|
-
* Helper class for `Mod`s related to track rate adjustments.
|
|
5108
|
-
*/
|
|
5109
|
-
declare class ModRateAdjustHelper {
|
|
5110
|
-
/**
|
|
5111
|
-
* The multiplier for the track's playback rate.
|
|
5112
|
-
*/
|
|
5113
|
-
readonly trackRateMultiplier: number;
|
|
5114
|
-
/**
|
|
5115
|
-
* The osu!droid score multiplier of this `Mod`.
|
|
5116
|
-
*/
|
|
5117
|
-
get droidScoreMultiplier(): number;
|
|
5118
|
-
/**
|
|
5119
|
-
* The score multiplier used when reverse-engineering raw scores from stored total score with
|
|
5120
|
-
* multiplier during database migration for osu!droid. Defaults to {@link droidScoreMultiplier}.
|
|
5121
|
-
*
|
|
5122
|
-
* **If {@link droidScoreMultiplier} is changed in the future, this must be changed in the affected `Mod`
|
|
5123
|
-
* subclass to return the old formula, so scores that need to be migrated on-fly are divided by the correct
|
|
5124
|
-
* historical multiplier**.
|
|
5125
|
-
*/
|
|
5126
|
-
get migrationDroidScoreMultiplier(): number;
|
|
5127
|
-
constructor(trackRateMultiplier: number);
|
|
5128
|
-
}
|
|
5129
|
-
|
|
5130
5213
|
/**
|
|
5131
5214
|
* Represents the ReallyEasy mod.
|
|
5132
5215
|
*/
|
|
@@ -5135,8 +5218,6 @@ declare class ModReallyEasy extends Mod implements IModApplicableToDroid, IModAp
|
|
|
5135
5218
|
readonly name = "Really Easy";
|
|
5136
5219
|
readonly droidRanked = false;
|
|
5137
5220
|
readonly isDroidRelevant = true;
|
|
5138
|
-
readonly droidScoreMultiplier = 0.4;
|
|
5139
|
-
readonly migrationDroidScoreMultiplier = 0.4;
|
|
5140
5221
|
applyToDifficultyWithMods(mode: Modes, difficulty: BeatmapDifficulty, mods: ModMap): void;
|
|
5141
5222
|
isCompatibleWith(other: Mod): boolean;
|
|
5142
5223
|
}
|
|
@@ -5149,13 +5230,26 @@ declare class ModRelax extends Mod implements IModApplicableToDroid, IModApplica
|
|
|
5149
5230
|
readonly name = "Relax";
|
|
5150
5231
|
readonly droidRanked = false;
|
|
5151
5232
|
readonly isDroidRelevant = true;
|
|
5152
|
-
readonly droidScoreMultiplier = 0.001;
|
|
5153
|
-
readonly migrationDroidScoreMultiplier = 0.001;
|
|
5154
5233
|
readonly osuRanked = false;
|
|
5155
5234
|
readonly isOsuRelevant = true;
|
|
5156
|
-
readonly osuScoreMultiplier = 0;
|
|
5157
5235
|
readonly bitwise: number;
|
|
5158
|
-
|
|
5236
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5237
|
+
}
|
|
5238
|
+
|
|
5239
|
+
/**
|
|
5240
|
+
* Represents the Repel mod.
|
|
5241
|
+
*/
|
|
5242
|
+
declare class ModRepel extends Mod implements IModApplicableToOsu {
|
|
5243
|
+
readonly acronym = "RP";
|
|
5244
|
+
readonly name = "Repel";
|
|
5245
|
+
readonly osuRanked = false;
|
|
5246
|
+
readonly isOsuRelevant = true;
|
|
5247
|
+
readonly osuScoreMultiplier = 1;
|
|
5248
|
+
/**
|
|
5249
|
+
* How strong the repulsion is.
|
|
5250
|
+
*/
|
|
5251
|
+
readonly repulsionStrength: DecimalModSetting;
|
|
5252
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5159
5253
|
}
|
|
5160
5254
|
|
|
5161
5255
|
/**
|
|
@@ -5173,8 +5267,6 @@ declare class ModReplayV6 extends Mod implements IModApplicableToDroid, IModAppl
|
|
|
5173
5267
|
readonly userPlayable = false;
|
|
5174
5268
|
readonly droidRanked = false;
|
|
5175
5269
|
readonly isDroidRelevant = true;
|
|
5176
|
-
readonly droidScoreMultiplier = 1;
|
|
5177
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
5178
5270
|
readonly facilitateAdjustment = true;
|
|
5179
5271
|
applyToBeatmap(beatmap: IBeatmap): void;
|
|
5180
5272
|
private revertObjectScale;
|
|
@@ -5188,14 +5280,23 @@ declare class ModScoreV2 extends Mod implements IModApplicableToDroid, IModAppli
|
|
|
5188
5280
|
readonly name = "ScoreV2";
|
|
5189
5281
|
readonly droidRanked = false;
|
|
5190
5282
|
readonly isDroidRelevant = true;
|
|
5191
|
-
readonly droidScoreMultiplier = 1;
|
|
5192
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
5193
5283
|
readonly osuRanked = false;
|
|
5194
5284
|
readonly isOsuRelevant = true;
|
|
5195
|
-
readonly osuScoreMultiplier = 1;
|
|
5196
5285
|
readonly bitwise: number;
|
|
5197
5286
|
}
|
|
5198
5287
|
|
|
5288
|
+
/**
|
|
5289
|
+
* Represents the Single Tap mod.
|
|
5290
|
+
*/
|
|
5291
|
+
declare class ModSingleTap extends Mod implements IModApplicableToOsu {
|
|
5292
|
+
readonly acronym = "SG";
|
|
5293
|
+
readonly name = "Single Tap";
|
|
5294
|
+
readonly osuRanked = true;
|
|
5295
|
+
readonly isOsuRelevant = true;
|
|
5296
|
+
readonly osuScoreMultiplier = 1;
|
|
5297
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5298
|
+
}
|
|
5299
|
+
|
|
5199
5300
|
/**
|
|
5200
5301
|
* Represents the SmallCircle mod.
|
|
5201
5302
|
*
|
|
@@ -5206,13 +5307,23 @@ declare class ModSmallCircle extends Mod implements IModApplicableToDroid, IModA
|
|
|
5206
5307
|
readonly name = "SmallCircle";
|
|
5207
5308
|
readonly droidRanked = false;
|
|
5208
5309
|
readonly isDroidRelevant = true;
|
|
5209
|
-
readonly droidScoreMultiplier = 1;
|
|
5210
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
5211
5310
|
migrateDroidMod(difficulty: BeatmapDifficulty): Mod & IModApplicableToDroid;
|
|
5212
5311
|
applyToDifficulty(mode: Modes, difficulty: BeatmapDifficulty, adjustmentMods: ModMap): void;
|
|
5213
5312
|
isCompatibleWith(other: Mod): boolean;
|
|
5214
5313
|
}
|
|
5215
5314
|
|
|
5315
|
+
/**
|
|
5316
|
+
* Represents the Spin In mod.
|
|
5317
|
+
*/
|
|
5318
|
+
declare class ModSpinIn extends Mod implements IModApplicableToOsu {
|
|
5319
|
+
readonly acronym = "SI";
|
|
5320
|
+
readonly name = "Spin In";
|
|
5321
|
+
readonly osuRanked = false;
|
|
5322
|
+
readonly isOsuRelevant = true;
|
|
5323
|
+
readonly osuScoreMultiplier = 1;
|
|
5324
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5325
|
+
}
|
|
5326
|
+
|
|
5216
5327
|
/**
|
|
5217
5328
|
* Represents the SpunOut mod.
|
|
5218
5329
|
*/
|
|
@@ -5225,6 +5336,18 @@ declare class ModSpunOut extends Mod implements IModApplicableToOsuStable {
|
|
|
5225
5336
|
readonly osuScoreMultiplier = 0.9;
|
|
5226
5337
|
}
|
|
5227
5338
|
|
|
5339
|
+
/**
|
|
5340
|
+
* Represents the Strict Tracking mod.
|
|
5341
|
+
*/
|
|
5342
|
+
declare class ModStrictTracking extends Mod implements IModApplicableToOsu {
|
|
5343
|
+
readonly acronym = "ST";
|
|
5344
|
+
readonly name = "Strict Tracking";
|
|
5345
|
+
readonly osuRanked = true;
|
|
5346
|
+
readonly isOsuRelevant = true;
|
|
5347
|
+
readonly osuScoreMultiplier = 1;
|
|
5348
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5349
|
+
}
|
|
5350
|
+
|
|
5228
5351
|
/**
|
|
5229
5352
|
* Represents the SuddenDeath mod.
|
|
5230
5353
|
*/
|
|
@@ -5233,13 +5356,14 @@ declare class ModSuddenDeath extends Mod implements IModApplicableToDroid, IModA
|
|
|
5233
5356
|
readonly name = "Sudden Death";
|
|
5234
5357
|
readonly droidRanked = true;
|
|
5235
5358
|
readonly isDroidRelevant = true;
|
|
5236
|
-
readonly droidScoreMultiplier = 1;
|
|
5237
|
-
readonly migrationDroidScoreMultiplier = 1;
|
|
5238
5359
|
readonly osuRanked = true;
|
|
5239
5360
|
readonly isOsuRelevant = true;
|
|
5240
|
-
readonly osuScoreMultiplier = 1;
|
|
5241
5361
|
readonly bitwise: number;
|
|
5242
|
-
|
|
5362
|
+
/**
|
|
5363
|
+
* Whether a miss on a slider's tail should also trigger a fail.
|
|
5364
|
+
*/
|
|
5365
|
+
readonly failOnSliderTail: BooleanModSetting;
|
|
5366
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5243
5367
|
}
|
|
5244
5368
|
|
|
5245
5369
|
/**
|
|
@@ -5250,11 +5374,64 @@ declare class ModSynesthesia extends Mod implements IModApplicableToDroid, IModA
|
|
|
5250
5374
|
readonly acronym = "SY";
|
|
5251
5375
|
readonly droidRanked = false;
|
|
5252
5376
|
readonly isDroidRelevant = true;
|
|
5253
|
-
readonly droidScoreMultiplier = 0.8;
|
|
5254
|
-
readonly migrationDroidScoreMultiplier = 0.8;
|
|
5255
5377
|
readonly osuRanked = false;
|
|
5256
5378
|
readonly isOsuRelevant = true;
|
|
5257
|
-
|
|
5379
|
+
}
|
|
5380
|
+
|
|
5381
|
+
/**
|
|
5382
|
+
* Represents the Target Practice mod.
|
|
5383
|
+
*/
|
|
5384
|
+
declare class ModTargetPractice extends Mod implements IModApplicableToOsu, IModApplicableToBeatmap, IModApplicableToDifficulty {
|
|
5385
|
+
readonly acronym = "TP";
|
|
5386
|
+
readonly name = "Target Practice";
|
|
5387
|
+
readonly osuRanked = false;
|
|
5388
|
+
readonly isOsuRelevant = true;
|
|
5389
|
+
readonly osuScoreMultiplier = 1;
|
|
5390
|
+
/**
|
|
5391
|
+
* Jump distance for circles in the last combo.
|
|
5392
|
+
*/
|
|
5393
|
+
private static readonly maxBaseDistance;
|
|
5394
|
+
/**
|
|
5395
|
+
* The maximum allowed jump distance after multipliers are applied.
|
|
5396
|
+
*/
|
|
5397
|
+
private static readonly distanceCap;
|
|
5398
|
+
/**
|
|
5399
|
+
* The extent of rotation towards playfield centre when a circle is near the edge.
|
|
5400
|
+
*/
|
|
5401
|
+
private static readonly edgeRotationMultiplier;
|
|
5402
|
+
/**
|
|
5403
|
+
* Number of recent circles to check for overlap.
|
|
5404
|
+
*/
|
|
5405
|
+
private static readonly overlapCheckCount;
|
|
5406
|
+
/**
|
|
5407
|
+
* Acceptable difference for timing comparisons.
|
|
5408
|
+
*/
|
|
5409
|
+
private static readonly timingPrecision;
|
|
5410
|
+
/**
|
|
5411
|
+
* Use a custom seed instead of a random one.
|
|
5412
|
+
*/
|
|
5413
|
+
readonly seed: NullableIntegerModSetting;
|
|
5414
|
+
/**
|
|
5415
|
+
* Whether a metronome beat should play in the background.
|
|
5416
|
+
*/
|
|
5417
|
+
readonly metronome: BooleanModSetting;
|
|
5418
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5419
|
+
applyToDifficulty(_: Modes, difficulty: BeatmapDifficulty): void;
|
|
5420
|
+
applyToBeatmap(beatmap: IBeatmap): void;
|
|
5421
|
+
private generateBeats;
|
|
5422
|
+
private getBeatsForTimingPoint;
|
|
5423
|
+
private isInsideBreakPeriod;
|
|
5424
|
+
private determineNewComboBoundaries;
|
|
5425
|
+
private getClosestPrecedingComboIndex;
|
|
5426
|
+
private addHitSamples;
|
|
5427
|
+
private getClosestObject;
|
|
5428
|
+
private randomizeCirclePos;
|
|
5429
|
+
private checkForOverlap;
|
|
5430
|
+
private clampToPlayfield;
|
|
5431
|
+
private mapRange;
|
|
5432
|
+
private almostBigger;
|
|
5433
|
+
private definitelyBigger;
|
|
5434
|
+
private almostEquals;
|
|
5258
5435
|
}
|
|
5259
5436
|
|
|
5260
5437
|
/**
|
|
@@ -5283,7 +5460,7 @@ declare abstract class ModTimeRamp extends Mod implements IModApplicableToBeatma
|
|
|
5283
5460
|
protected get migrationDroidScoreMultiplier(): number;
|
|
5284
5461
|
private initialRateTime;
|
|
5285
5462
|
private finalRateTime;
|
|
5286
|
-
|
|
5463
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5287
5464
|
applyToBeatmap(beatmap: IBeatmap): void;
|
|
5288
5465
|
applyToRate(time: number, rate: number): number;
|
|
5289
5466
|
private calculateScoreMultiplierAt;
|
|
@@ -5310,12 +5487,37 @@ declare class ModTraceable extends Mod implements IModApplicableToDroid, IModApp
|
|
|
5310
5487
|
readonly name = "Traceable";
|
|
5311
5488
|
readonly droidRanked = false;
|
|
5312
5489
|
readonly isDroidRelevant = true;
|
|
5313
|
-
readonly droidScoreMultiplier = 1.06;
|
|
5314
|
-
readonly migrationDroidScoreMultiplier = 1.06;
|
|
5315
5490
|
readonly osuRanked = true;
|
|
5316
5491
|
readonly isOsuRelevant = true;
|
|
5492
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5493
|
+
}
|
|
5494
|
+
|
|
5495
|
+
/**
|
|
5496
|
+
* Represents the Transform mod.
|
|
5497
|
+
*/
|
|
5498
|
+
declare class ModTransform extends Mod implements IModApplicableToOsu {
|
|
5499
|
+
readonly acronym = "TR";
|
|
5500
|
+
readonly name = "Transform";
|
|
5501
|
+
readonly osuRanked = false;
|
|
5502
|
+
readonly isOsuRelevant = true;
|
|
5317
5503
|
readonly osuScoreMultiplier = 1;
|
|
5318
|
-
|
|
5504
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5505
|
+
}
|
|
5506
|
+
|
|
5507
|
+
/**
|
|
5508
|
+
* Represents the Wiggle mod.
|
|
5509
|
+
*/
|
|
5510
|
+
declare class ModWiggle extends Mod implements IModApplicableToOsu {
|
|
5511
|
+
readonly acronym = "WG";
|
|
5512
|
+
readonly name = "Wiggle";
|
|
5513
|
+
readonly osuRanked = false;
|
|
5514
|
+
readonly isOsuRelevant = true;
|
|
5515
|
+
readonly osuScoreMultiplier = 1;
|
|
5516
|
+
/**
|
|
5517
|
+
* Multiplier applied to the wiggling strength.
|
|
5518
|
+
*/
|
|
5519
|
+
readonly strength: DecimalModSetting;
|
|
5520
|
+
isCompatibleWith(other: Mod): boolean;
|
|
5319
5521
|
}
|
|
5320
5522
|
|
|
5321
5523
|
/**
|
|
@@ -5328,9 +5530,6 @@ declare class ModWindDown extends ModTimeRamp implements IModApplicableToDroid,
|
|
|
5328
5530
|
readonly isDroidRelevant = true;
|
|
5329
5531
|
readonly osuRanked = false;
|
|
5330
5532
|
readonly isOsuRelevant = true;
|
|
5331
|
-
readonly osuScoreMultiplier = 1;
|
|
5332
|
-
get droidScoreMultiplier(): number;
|
|
5333
|
-
get migrationDroidScoreMultiplier(): number;
|
|
5334
5533
|
readonly initialRate: DecimalModSetting;
|
|
5335
5534
|
readonly finalRate: DecimalModSetting;
|
|
5336
5535
|
constructor();
|
|
@@ -5346,9 +5545,6 @@ declare class ModWindUp extends ModTimeRamp implements IModApplicableToDroid, IM
|
|
|
5346
5545
|
readonly isDroidRelevant = true;
|
|
5347
5546
|
readonly osuRanked = false;
|
|
5348
5547
|
readonly isOsuRelevant = true;
|
|
5349
|
-
readonly osuScoreMultiplier = 1;
|
|
5350
|
-
get droidScoreMultiplier(): number;
|
|
5351
|
-
get migrationDroidScoreMultiplier(): number;
|
|
5352
5548
|
readonly initialRate: DecimalModSetting;
|
|
5353
5549
|
readonly finalRate: DecimalModSetting;
|
|
5354
5550
|
constructor();
|
|
@@ -5815,23 +6011,143 @@ declare class OsuAPIRequestBuilder extends APIRequestBuilder<OsuAPIEndpoint> {
|
|
|
5815
6011
|
protected readonly APIkeyParam: string;
|
|
5816
6012
|
}
|
|
5817
6013
|
|
|
6014
|
+
type ModClass<T extends Mod = Mod> = abstract new (...args: any[]) => T;
|
|
6015
|
+
/**
|
|
6016
|
+
* Calculates the multiplier to be applied to score with a given combination of {@link Mod}s.
|
|
6017
|
+
*/
|
|
6018
|
+
declare class ScoreMultiplierCalculator {
|
|
6019
|
+
/**
|
|
6020
|
+
* The {@link BeatmapDifficulty} for the beatmap that the multipliers are calculated for. This must be the
|
|
6021
|
+
* {@link BeatmapDifficulty} for the beatmap **before** any {@link Mod} application.
|
|
6022
|
+
*/
|
|
6023
|
+
protected readonly difficulty: BeatmapDifficulty | null;
|
|
6024
|
+
private readonly singleMultipliers;
|
|
6025
|
+
private readonly combinationMultipliers;
|
|
6026
|
+
private readonly groupMultipliers;
|
|
6027
|
+
constructor(
|
|
6028
|
+
/**
|
|
6029
|
+
* The {@link BeatmapDifficulty} for the beatmap that the multipliers are calculated for. This must be the
|
|
6030
|
+
* {@link BeatmapDifficulty} for the beatmap **before** any {@link Mod} application.
|
|
6031
|
+
*/
|
|
6032
|
+
difficulty: BeatmapDifficulty | null);
|
|
6033
|
+
/**
|
|
6034
|
+
* Defines a score multiplier for the given {@link Mod}.
|
|
6035
|
+
*
|
|
6036
|
+
* @param modClass The class of the {@link Mod} to define a multiplier for.
|
|
6037
|
+
* @param multiplier The multiplier to apply when the {@link Mod} is present, or a function that returns the
|
|
6038
|
+
* multiplier based on the {@link Mod} instance.
|
|
6039
|
+
*/
|
|
6040
|
+
protected single<TMod extends Mod>(modClass: ModClass<TMod>, multiplier: number | ((mod: TMod) => number)): void;
|
|
6041
|
+
/**
|
|
6042
|
+
* Defines a score multiplier specific to when two {@link Mod}s are present. In that case, the combination
|
|
6043
|
+
* multiplier will be used instead of the individual single multipliers, if any.
|
|
6044
|
+
*
|
|
6045
|
+
* @param modClass1 The class of the first {@link Mod} to define a combination multiplier for.
|
|
6046
|
+
* @param modClass2 The class of the second {@link Mod} to define a combination multiplier for.
|
|
6047
|
+
* @param multiplier The multiplier to apply when both {@link Mod}s are present, or a function that returns the
|
|
6048
|
+
* multiplier based on the two {@link Mod} instances.
|
|
6049
|
+
*/
|
|
6050
|
+
protected combination<T1 extends Mod, T2 extends Mod>(modClass1: ModClass<T1>, modClass2: ModClass<T2>, multiplier: (mod1: T1, mod2: T2) => number): void;
|
|
6051
|
+
/**
|
|
6052
|
+
* Defines a score multiplier for all {@link Mod}s that are instances of {@link TMod}, applied as a group. The multiplier
|
|
6053
|
+
* function receives the full list of matched {@link Mod}s, allowing their combined state to influence the result.
|
|
6054
|
+
* Group multipliers take precedence over single multipliers for the same {@link Mod}s.
|
|
6055
|
+
*
|
|
6056
|
+
* @param modClass The class of the {@link Mod} to define a group multiplier for.
|
|
6057
|
+
* @param multiplier The multiplier to apply when one or more {@link Mod}s of the specified class are present, or a function
|
|
6058
|
+
* that returns the multiplier based on the list of matched {@link Mod} instances.
|
|
6059
|
+
*/
|
|
6060
|
+
protected group<TMod extends Mod>(modClass: ModClass<TMod>, multiplier: (mods: TMod[]) => number): void;
|
|
6061
|
+
/**
|
|
6062
|
+
* Calculates the multiplier to be applied to score with the given {@link Mod}s.
|
|
6063
|
+
*
|
|
6064
|
+
* @param mods The list of {@link Mod}s to calculate the score multiplier for.
|
|
6065
|
+
* @returns The calculated score multiplier.
|
|
6066
|
+
*/
|
|
6067
|
+
calculateFor(mods: Iterable<Mod>): number;
|
|
6068
|
+
/**
|
|
6069
|
+
* Multiplies two numbers together. This method is provided to allow subclasses to override the multiplication behavior if needed.
|
|
6070
|
+
*
|
|
6071
|
+
* @param a The first number to multiply.
|
|
6072
|
+
* @param b The second number to multiply.
|
|
6073
|
+
* @returns The product of the two numbers.
|
|
6074
|
+
*/
|
|
6075
|
+
protected multiply(a: number, b: number): number;
|
|
6076
|
+
}
|
|
6077
|
+
|
|
6078
|
+
/**
|
|
6079
|
+
* osu!droid legacy score multiplier calculator. This is used to calculate score during version 4 to 5 database migration
|
|
6080
|
+
* by separating the total score with mod multipliers from the multiplier itself. This allows future mod score multiplier
|
|
6081
|
+
* changes to be applied without database migrations.
|
|
6082
|
+
*/
|
|
6083
|
+
declare class DroidLegacyScoreMultiplierCalculator extends ScoreMultiplierCalculator {
|
|
6084
|
+
constructor(difficulty: BeatmapDifficulty | null);
|
|
6085
|
+
private difficultyAdjustMultiplier;
|
|
6086
|
+
private rateAdjustMultiplier;
|
|
6087
|
+
private rateMultiplier;
|
|
6088
|
+
private timeRampMultiplier;
|
|
6089
|
+
protected multiply(a: number, b: number): number;
|
|
6090
|
+
}
|
|
6091
|
+
|
|
6092
|
+
/**
|
|
6093
|
+
* Current osu!droid score multiplier calculator. This is used to calculate score after version 5 database migration.
|
|
6094
|
+
*/
|
|
6095
|
+
declare class DroidScoreMultiplierCalculator extends ScoreMultiplierCalculator {
|
|
6096
|
+
private appliedDifficulty;
|
|
6097
|
+
constructor(difficulty: BeatmapDifficulty | null);
|
|
6098
|
+
calculateFor(mods: Iterable<Mod>): number;
|
|
6099
|
+
private difficultyAdjustMultiplier;
|
|
6100
|
+
private preciseMultiplier;
|
|
6101
|
+
private hiddenMultiplier;
|
|
6102
|
+
private flashlightMultiplier;
|
|
6103
|
+
private rateAdjustMultiplier;
|
|
6104
|
+
private rateMultiplier;
|
|
6105
|
+
private timeRampMultiplier;
|
|
6106
|
+
}
|
|
6107
|
+
|
|
6108
|
+
/**
|
|
6109
|
+
* A score multiplier calculator for osu!stable.
|
|
6110
|
+
*/
|
|
6111
|
+
declare class OsuLegacyScoreMultiplierCalculator extends ScoreMultiplierCalculator {
|
|
6112
|
+
constructor();
|
|
6113
|
+
}
|
|
6114
|
+
|
|
6115
|
+
/**
|
|
6116
|
+
* A score multiplier calculator for osu!standard.
|
|
6117
|
+
*
|
|
6118
|
+
* Used before osu!lazer version 2026.621.0.
|
|
6119
|
+
*/
|
|
6120
|
+
declare class OsuScoreMultiplierCalculatorV1 extends ScoreMultiplierCalculator {
|
|
6121
|
+
constructor();
|
|
6122
|
+
private rateAdjustMultiplier;
|
|
6123
|
+
}
|
|
6124
|
+
|
|
6125
|
+
/**
|
|
6126
|
+
* A score multiplier calculator for osu!standard.
|
|
6127
|
+
*
|
|
6128
|
+
* Used for osu!lazer version 2026.621.0 and onwards.
|
|
6129
|
+
*/
|
|
6130
|
+
declare class OsuScoreMultiplierCalculatorV2 extends ScoreMultiplierCalculator {
|
|
6131
|
+
constructor(difficulty: BeatmapDifficulty);
|
|
6132
|
+
private easyMultiplier;
|
|
6133
|
+
private halfTimeMultiplier;
|
|
6134
|
+
private doubleTimeMultiplier;
|
|
6135
|
+
private hiddenMultiplier;
|
|
6136
|
+
private flashlightMultiplier;
|
|
6137
|
+
private difficultyAdjustMultiplier;
|
|
6138
|
+
private timeRampMultiplier;
|
|
6139
|
+
private deflateMultiplier;
|
|
6140
|
+
}
|
|
6141
|
+
|
|
5818
6142
|
/**
|
|
5819
6143
|
* Possible ranks that a score can have.
|
|
5820
6144
|
*/
|
|
5821
6145
|
type ScoreRank = "XH" | "SH" | "X" | "S" | "A" | "B" | "C" | "D";
|
|
5822
6146
|
|
|
5823
6147
|
/**
|
|
5824
|
-
*
|
|
6148
|
+
* Hit counts used to construct an {@link Accuracy}.
|
|
5825
6149
|
*/
|
|
5826
|
-
interface
|
|
5827
|
-
/**
|
|
5828
|
-
* The amount of objects in the beatmap.
|
|
5829
|
-
*/
|
|
5830
|
-
nobjects?: number;
|
|
5831
|
-
/**
|
|
5832
|
-
* The accuracy achieved.
|
|
5833
|
-
*/
|
|
5834
|
-
percent?: number;
|
|
6150
|
+
interface AccuracyHitCounts {
|
|
5835
6151
|
/**
|
|
5836
6152
|
* The amount of 300s achieved.
|
|
5837
6153
|
*/
|
|
@@ -5852,27 +6168,92 @@ interface AccuracyInformation {
|
|
|
5852
6168
|
/**
|
|
5853
6169
|
* An accuracy calculator that calculates accuracy based on given parameters.
|
|
5854
6170
|
*/
|
|
5855
|
-
declare class Accuracy
|
|
6171
|
+
declare class Accuracy {
|
|
6172
|
+
/**
|
|
6173
|
+
* The value {@link n300} holds when it was not specified and has not
|
|
6174
|
+
* been derived via {@link Accuracy.fromHitCounts} or {@link Accuracy.fromPercent}.
|
|
6175
|
+
*/
|
|
6176
|
+
private static readonly unresolvedN300;
|
|
6177
|
+
/**
|
|
6178
|
+
* The amount of 300s.
|
|
6179
|
+
*
|
|
6180
|
+
* If this is {@link Accuracy.unresolvedN300}, it means that `n300` was not
|
|
6181
|
+
* specified and has not been derived from `nobjects` or `percent` during
|
|
6182
|
+
* construction.
|
|
6183
|
+
*/
|
|
5856
6184
|
n300: number;
|
|
6185
|
+
/**
|
|
6186
|
+
* The amount of 100s.
|
|
6187
|
+
*/
|
|
5857
6188
|
n100: number;
|
|
6189
|
+
/**
|
|
6190
|
+
* The amount of 50s.
|
|
6191
|
+
*/
|
|
5858
6192
|
n50: number;
|
|
6193
|
+
/**
|
|
6194
|
+
* The amount of misses.
|
|
6195
|
+
*/
|
|
5859
6196
|
nmiss: number;
|
|
5860
6197
|
/**
|
|
5861
|
-
*
|
|
6198
|
+
* Whether {@link n300} holds an actual hit count.
|
|
6199
|
+
*
|
|
6200
|
+
* `false` if it was left unspecified and this instance was not constructed via
|
|
6201
|
+
* {@link Accuracy.fromHitCounts} or {@link Accuracy.fromPercent} to derive it.
|
|
6202
|
+
*/
|
|
6203
|
+
get isN300Resolved(): boolean;
|
|
6204
|
+
/**
|
|
6205
|
+
* Constructs an {@link Accuracy} from exact hit counts.
|
|
5862
6206
|
*
|
|
5863
|
-
*
|
|
5864
|
-
*
|
|
5865
|
-
* acc percent.
|
|
6207
|
+
* Unlike {@link Accuracy.fromHitCounts}, this does not derive or clamp anything
|
|
6208
|
+
* against the amount of objects in a beatmap - the given counts are taken as-is.
|
|
5866
6209
|
*
|
|
5867
|
-
* @param values
|
|
6210
|
+
* @param values The hit counts to construct this instance with.
|
|
5868
6211
|
*/
|
|
5869
|
-
constructor(values
|
|
6212
|
+
constructor(values?: AccuracyHitCounts);
|
|
5870
6213
|
/**
|
|
5871
|
-
*
|
|
6214
|
+
* Constructs an {@link Accuracy} from hit counts, deriving `n300` from `nobjects`
|
|
6215
|
+
* if it was not specified.
|
|
6216
|
+
*
|
|
6217
|
+
* `n300`, `n100`, `n50`, and `nmiss` are clamped so that they do not add up to
|
|
6218
|
+
* more than `nobjects`.
|
|
5872
6219
|
*
|
|
5873
|
-
* @param
|
|
6220
|
+
* @param values The hit counts to construct this instance with.
|
|
6221
|
+
* @param nobjects The amount of objects in the beatmap.
|
|
5874
6222
|
*/
|
|
5875
|
-
|
|
6223
|
+
static fromHitCounts(values: AccuracyHitCounts, nobjects: number): Accuracy;
|
|
6224
|
+
/**
|
|
6225
|
+
* Constructs an {@link Accuracy} by reverse-solving `n300`, `n100`, and `n50`
|
|
6226
|
+
* so that the resulting accuracy is the closest to the given accuracy percentage.
|
|
6227
|
+
*
|
|
6228
|
+
* @param percent The accuracy percentage to reverse-solve for.
|
|
6229
|
+
* @param nobjects The amount of objects in the beatmap.
|
|
6230
|
+
* @param nmiss The amount of misses achieved. Defaults to 0.
|
|
6231
|
+
*/
|
|
6232
|
+
static fromPercent(percent: number, nobjects: number, nmiss?: number): Accuracy;
|
|
6233
|
+
/**
|
|
6234
|
+
* Derives `n300` (if unspecified) from `nobjects`, then clamps `n300`,
|
|
6235
|
+
* `n100`, `n50`, and `nmiss` so that they do not add up to more than
|
|
6236
|
+
* `nobjects`.
|
|
6237
|
+
*
|
|
6238
|
+
* @param nobjects The amount of objects in the beatmap.
|
|
6239
|
+
*/
|
|
6240
|
+
private resolveFromHitCounts;
|
|
6241
|
+
/**
|
|
6242
|
+
* Reverse-solves `n100` and `n50` (and therefore `n300`) so that the
|
|
6243
|
+
* resulting accuracy is the closest to the given accuracy percentage.
|
|
6244
|
+
*
|
|
6245
|
+
* @param percent The accuracy percentage to reverse-solve for.
|
|
6246
|
+
* @param nobjects The amount of objects in the beatmap.
|
|
6247
|
+
*/
|
|
6248
|
+
private resolveFromPercent;
|
|
6249
|
+
/**
|
|
6250
|
+
* The accuracy value (0.0 - 1.0).
|
|
6251
|
+
*
|
|
6252
|
+
* `n300` must be resolved for this to be computable - either specify it directly
|
|
6253
|
+
* in the constructor, or construct this instance via {@link Accuracy.fromHitCounts}
|
|
6254
|
+
* or {@link Accuracy.fromPercent}. Otherwise, accessing this throws.
|
|
6255
|
+
*/
|
|
6256
|
+
get value(): number;
|
|
5876
6257
|
/**
|
|
5877
6258
|
* Determines whether this accuracy instance is equal to another instance.
|
|
5878
6259
|
*
|
|
@@ -6228,25 +6609,6 @@ declare abstract class ModUtil {
|
|
|
6228
6609
|
* @returns The list of mods.
|
|
6229
6610
|
*/
|
|
6230
6611
|
static pcModbitsToMods(modbits: number): ModMap;
|
|
6231
|
-
/**
|
|
6232
|
-
* Calculates the score multiplier of the given mods and game mode.
|
|
6233
|
-
*
|
|
6234
|
-
* @param mods The mods to calculate the score multiplier for.
|
|
6235
|
-
* @param mode The game mode to calculate the score multiplier for.
|
|
6236
|
-
* @param difficulty The `BeatmapDifficulty` to apply to the mods. Needed for some mods to have an effect on
|
|
6237
|
-
* score multiplier (i.e., `ModDifficultyAdjust`).
|
|
6238
|
-
* @returns The score multiplier.
|
|
6239
|
-
*/
|
|
6240
|
-
static calculateScoreMultiplier(mods: Iterable<Mod>, mode: Modes, difficulty?: BeatmapDifficulty): number;
|
|
6241
|
-
/**
|
|
6242
|
-
* Calculates the score multiplier for the selected `Mod`s using `Mod.migrationDroidScoreMultiplier` instead of
|
|
6243
|
-
* `Mod.droidScoreMultiplier`. Use this when reverse-engineering raw scores from stored effective scores during migration.
|
|
6244
|
-
*
|
|
6245
|
-
* @param mods The selected `Mod`s.
|
|
6246
|
-
* @return The migration score multiplier.
|
|
6247
|
-
*/
|
|
6248
|
-
static calculateMigrationScoreMultiplier(mods: Iterable<Mod>): number;
|
|
6249
|
-
private static calculateScoreMultiplierInternal;
|
|
6250
6612
|
/**
|
|
6251
6613
|
* Serializes a list of `Mod`s.
|
|
6252
6614
|
*
|
|
@@ -6530,5 +6892,5 @@ declare abstract class Utils {
|
|
|
6530
6892
|
static sleep(duration: number): Promise<void>;
|
|
6531
6893
|
}
|
|
6532
6894
|
|
|
6533
|
-
export { Accuracy, Anchor, AnimationLoopType, AnimationStyle, Axes, BankHitSampleInfo, Beatmap, BeatmapBackground, BeatmapColor, BeatmapControlPoints, BeatmapConverter, BeatmapCountdown, BeatmapDecoder, BeatmapDifficulty, BeatmapEditor, BeatmapEncoder, BeatmapEvents, BeatmapGeneral, BeatmapGenre, BeatmapHitObjects, BeatmapLanguage, BeatmapMetadata, BeatmapOverlayPosition, BeatmapProcessor, BeatmapVideo, Bin, BlendingEquation, BlendingParameters, BlendingType, BooleanModSetting, BreakPoint, Brent, Chandrupatla, Circle, CircleSizeCalculator, Command, CommandLoop, CommandTimeline, CommandTimelineGroup, CommandTrigger, ControlPointManager, DecimalModSetting, DifficultyAdjustModSetting, DifficultyControlPoint, DifficultyControlPointManager, DroidAPIRequestBuilder, DroidHitWindow, DroidLegacyModConverter, DroidPlayableBeatmap, Easing, EditorGridSize, EffectControlPoint, EffectControlPointManager, EmptyHitWindow, ErrorFunction, FileHitSampleInfo, GameMode, HitObject, HitObjectGenerationUtils, HitResult, HitSampleInfo, HitSoundType, HitWindow, IntegerModSetting, Interpolation, IterativePoissonBinomial, MapInfo, MathUtils, Mod, ModApproachDifferent, ModAuto, ModAutopilot, ModBlinds, ModCustomSpeed, ModDeflate, ModDifficultyAdjust, ModDoubleTime, ModEasy, ModFlashlight, ModFreezeFrame, ModGrow, ModHalfTime, ModHardRock, ModHidden, ModMagnetised, ModMap, ModMirror, ModMuted, ModNightCore, ModNoFail, ModObjectScaleTween, ModOldNightCore, ModPerfect, ModPrecise, ModRandom, ModRateAdjust,
|
|
6534
|
-
export type {
|
|
6895
|
+
export { Accuracy, AccuracyMode, Anchor, AnimationLoopType, AnimationStyle, Axes, BankHitSampleInfo, Beatmap, BeatmapBackground, BeatmapColor, BeatmapControlPoints, BeatmapConverter, BeatmapCountdown, BeatmapDecoder, BeatmapDifficulty, BeatmapEditor, BeatmapEncoder, BeatmapEvents, BeatmapGeneral, BeatmapGenre, BeatmapHitObjects, BeatmapLanguage, BeatmapMetadata, BeatmapOverlayPosition, BeatmapProcessor, BeatmapVideo, Bin, BlendingEquation, BlendingParameters, BlendingType, BooleanModSetting, BreakPoint, Brent, Chandrupatla, Circle, CircleSizeCalculator, Command, CommandLoop, CommandTimeline, CommandTimelineGroup, CommandTrigger, ControlPointManager, DecimalModSetting, DifficultyAdjustModSetting, DifficultyControlPoint, DifficultyControlPointManager, DroidAPIRequestBuilder, DroidHitWindow, DroidLegacyModConverter, DroidLegacyScoreMultiplierCalculator, DroidPlayableBeatmap, DroidScoreMultiplierCalculator, Easing, EditorGridSize, EffectControlPoint, EffectControlPointManager, EmptyHitWindow, EnumModSetting, ErrorFunction, FileHitSampleInfo, GameMode, HitObject, HitObjectGenerationUtils, HitResult, HitSampleInfo, HitSoundType, HitWindow, IntegerModSetting, Interpolation, IterativePoissonBinomial, MapInfo, MathUtils, Mod, ModAccuracyChallenge, ModAlternate, ModApproachDifferent, ModAuto, ModAutopilot, ModBarrelRoll, ModBlinds, ModBloom, ModBubbles, ModCinema, ModClassic, ModCustomSpeed, ModDaycore, ModDeflate, ModDepth, ModDifficultyAdjust, ModDoubleTime, ModEasy, ModFlashlight, ModFreezeFrame, ModGrow, ModHalfTime, ModHardRock, ModHidden, ModMagnetised, ModMap, ModMirror, ModMuted, ModNightCore, ModNoFail, ModNoScope, ModObjectScaleTween, ModOldNightCore, ModPerfect, ModPrecise, ModRandom, ModRateAdjust, ModReallyEasy, ModRelax, ModRepel, ModReplayV6, ModScoreV2, ModSetting, ModSingleTap, ModSmallCircle, ModSpinIn, ModSpunOut, ModStrictTracking, ModSuddenDeath, ModSynesthesia, ModTargetPractice, ModTimeRamp, ModTouchDevice, ModTraceable, ModTransform, ModUtil, ModWiggle, ModWindDown, ModWindUp, Modes, NormalDistribution, NullableDecimalModSetting, NullableIntegerModSetting, NumberModSetting, ObjectTypes, OsuAPIRequestBuilder, OsuHitWindow, OsuLegacyScoreMultiplierCalculator, OsuPlayableBeatmap, OsuScoreMultiplierCalculatorV1, OsuScoreMultiplierCalculatorV2, PathApproximator, PathType, PlayableBeatmap, Playfield, PoissonBinomial, Polynomial, PreciseDroidHitWindow, Precision, RGBColor, Random, RangeConstrainedModSetting, RankedStatus, RotationDirection, SampleBank, SampleBankInfo, SampleControlPoint, SampleControlPointManager, ScoreMultiplierCalculator, SequenceHitSampleInfo, Slider, SliderHead, SliderNestedHitObject, SliderPath, SliderRepeat, SliderTail, SliderTick, Spinner, Storyboard, StoryboardAnimation, StoryboardCommandType, StoryboardDecoder, StoryboardElement, StoryboardEncoder, StoryboardEventType, StoryboardLayer, StoryboardLayerType, StoryboardParameterCommandType, StoryboardSample, StoryboardSprite, TimedHitSampleInfo, TimingControlPoint, TimingControlPointManager, UnadjustedOsuHitWindow, Utils, Vector2, Vector4, ZeroCrossingBracketing, normalize };
|
|
6896
|
+
export type { AccuracyHitCounts, ChandrupatlaOptions, CommandTimelineSelector, DroidAPIEndpoint, IBeatmap, ICommandTimeline, IMigratableDroidMod, IModApplicableToBeatmap, IModApplicableToDifficulty, IModApplicableToDifficultyWithMods, IModApplicableToDroid, IModApplicableToHitObject, IModApplicableToHitObjectWithMods, IModApplicableToOsu, IModApplicableToOsuStable, IModApplicableToTrackRate, IModFacilitatesAdjustment, If, ModSettingValueChange, ModSettingValueChangedListener, OmitType, OsuAPIEndpoint, OsuAPIResponse, PlaceableHitObject, RequestResponse, RootBounds, ScoreRank, SerializedMod };
|