rename speed to clock_rate

This commit is contained in:
MaxOhn
2022-03-20 17:07:42 +01:00
parent 58b2ffba08
commit df9398de95
12 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ impl<'map> ManiaGradualDifficultyAttributes<'map> {
other => panic!("can not calculate mania difficulty on a {:?} map", other),
};
let clock_rate = mods.speed();
let clock_rate = mods.clock_rate();
let strain = Strain::new(columns);
let columns = columns as f32;
let difficulty_objects = ManiaObjectIter::new(&map.hit_objects, columns, clock_rate);
+2 -2
View File
@@ -98,7 +98,7 @@ impl<'map> ManiaStars<'map> {
/// Suitable to plot the difficulty of a map over time.
#[inline]
pub fn strains(self) -> Strains {
let clock_rate = self.clock_rate.unwrap_or_else(|| self.mods.speed());
let clock_rate = self.clock_rate.unwrap_or_else(|| self.mods.clock_rate());
let strain = calculate_strain(self);
Strains {
@@ -140,7 +140,7 @@ fn calculate_strain(params: ManiaStars<'_>) -> Strain {
other => panic!("can not calculate mania difficulty on a {:?} map", other),
};
let clock_rate = clock_rate.unwrap_or_else(|| mods.speed());
let clock_rate = clock_rate.unwrap_or_else(|| mods.clock_rate());
let mut strain = Strain::new(columns);
let columns = columns as f32;
+1 -1
View File
@@ -141,7 +141,7 @@ impl<'map> ManiaPP<'map> {
}
let mut od = 34.0 + 3.0 * (10.0 - self.map.od as f64).max(0.0).min(10.0);
let clock_rate = self.mods.speed();
let clock_rate = self.mods.clock_rate();
let mut multiplier = 0.8;