feat: updated osu!standard difficulate calculation

This commit is contained in:
MaxOhn
2024-09-27 15:46:40 +02:00
parent daf718d74e
commit 3c57b9b409
18 changed files with 268 additions and 159 deletions
+10 -3
View File
@@ -1,6 +1,9 @@
use std::cmp::Ordering;
use rosu_map::section::hit_objects::{BorrowedCurve, CurveBuffers};
use rosu_map::section::{
general::GameMode,
hit_objects::{BorrowedCurve, CurveBuffers},
};
pub use rosu_map::{
section::hit_objects::{hit_samples::HitSoundType, PathControlPoint, PathType, SplineType},
@@ -76,8 +79,12 @@ impl Slider {
self.repeats + 1
}
pub(crate) fn curve<'a>(&self, bufs: &'a mut CurveBuffers) -> BorrowedCurve<'a> {
BorrowedCurve::new(&self.control_points, self.expected_dist, bufs)
pub(crate) fn curve<'a>(
&self,
mode: GameMode,
bufs: &'a mut CurveBuffers,
) -> BorrowedCurve<'a> {
BorrowedCurve::new(mode, &self.control_points, self.expected_dist, bufs)
}
}
+1
View File
@@ -175,6 +175,7 @@ impl_has_mod! {
fl: + Flashlight ["Flashlight"],
so: + SpunOut ["SpunOut"],
bl: - Blinds ["Blinds"],
tc: - Traceable ["Traceable"],
}
impl Default for GameMods {