update formulas

This commit is contained in:
tsunyoku
2024-06-01 14:34:57 +01:00
parent 04d9179dc1
commit f1d8b7995b
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -515,7 +515,7 @@ impl<'m> OsuPP<'m> {
effective_miss_count: f32,
difficult_strain_count: f32,
) -> f32 {
0.94 / ((effective_miss_count / (2.0 * difficult_strain_count.sqrt())) + 1.0)
0.96 / ((effective_miss_count / (4.0 * difficult_strain_count.ln().powf(0.94))) + 1.0)
}
#[inline]
+7 -1
View File
@@ -19,6 +19,8 @@ pub(crate) struct Skill {
prev_time: Option<f32>,
pub(crate) object_strains: Vec<f32>,
difficulty: f32,
}
impl Skill {
@@ -33,6 +35,8 @@ impl Skill {
prev_time: None,
object_strains: Vec::new(),
difficulty: 0.0,
}
}
@@ -69,11 +73,13 @@ impl Skill {
weight *= DECAY_WEIGHT;
}
self.difficulty = difficulty;
difficulty
}
pub(crate) fn count_difficult_strains(&mut self) -> f32 {
let single_strain = self.difficulty_value() / 10.0;
let single_strain = self.difficulty / 10.0;
self.object_strains
.iter()