Port osu!std updates since f08134f

This commit is contained in:
MaxOhn
2024-10-10 16:18:18 +02:00
parent f9dfa5e35c
commit 5bdb2babed
16 changed files with 417 additions and 177 deletions
+17
View File
@@ -299,6 +299,23 @@ impl<'map> Performance<'map> {
}
}
/// Whether the calculated attributes belong to an osu!lazer or osu!stable
/// score.
///
/// Defaults to lazer.
///
/// This affects internal accuracy calculation because lazer considers
/// slider heads for accuracy whereas stable does not.
///
/// Only relevant for osu!standard.
pub fn lazer(self, lazer: bool) -> Self {
if let Self::Osu(osu) = self {
Self::Osu(osu.lazer(lazer))
} else {
self
}
}
/// Specify the amount of 300s of a play.
pub fn n300(self, n300: u32) -> Self {
match self {