update formulas
This commit is contained in:
+1
-1
@@ -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]
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user