refactor mania hitwindows

This commit is contained in:
MaxOhn
2024-02-14 15:37:56 +01:00
parent 3f1b4e52a1
commit 0fdb91fa47
3 changed files with 14 additions and 38 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
use rosu_map::section::general::GameMode;
use crate::util::mods::Mods;
use crate::util::{float_ext::FloatExt, mods::Mods};
use super::{converted::Converted, Beatmap};
@@ -157,7 +157,7 @@ impl BeatmapAttributesBuilder {
GameMode::Mania => {
let mut value = if !self.is_convert {
34.0 + 3.0 * (10.0 - self.od).clamp(0.0, 10.0)
} else if self.od > 4.0 {
} else if self.od.round_even() > 4.0 {
34.0
} else {
47.0