feat: remove aim, reduce flashlight when using autopilot

This commit is contained in:
tsunyoku
2022-11-12 13:54:18 +00:00
parent 297419543f
commit befcce7dc9
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -149,6 +149,11 @@ impl<'map> OsuStars<'map> {
flashlight_rating *= 0.7;
}
if mods.ap() {
aim_rating = 0.0;
flashlight_rating *= 0.4;
}
let base_aim_performance = (5.0 * (aim_rating / 0.0675).max(1.0) - 4.0).powi(3) / 100_000.0;
let base_speed_performance =
(5.0 * (speed_rating / 0.0675).max(1.0) - 4.0).powi(3) / 100_000.0;
+4
View File
@@ -456,6 +456,10 @@ impl OsuPpInner {
}
fn compute_aim_value(&self) -> f64 {
if self.mods.ap() {
return 0.0;
}
let mut aim_value = (5.0 * (self.attrs.aim / 0.0675).max(1.0) - 4.0).powi(3) / 100_000.0;
let total_hits = self.total_hits();