From 17878b97cb2d7a04268b84ab54ca13a257c669d9 Mon Sep 17 00:00:00 2001 From: Hazuki Onohara <27200811+hazuki-san@users.noreply.github.com> Date: Fri, 20 Oct 2023 09:49:01 +0000 Subject: [PATCH] max and min value on stream nerf to prevent nan pp --- src/osu/pp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osu/pp.rs b/src/osu/pp.rs index 368700be..e0460bbb 100644 --- a/src/osu/pp.rs +++ b/src/osu/pp.rs @@ -459,8 +459,8 @@ impl OsuPpInner { let mut aim_value = (5.0 * (self.attrs.aim / 0.0675).max(1.0) - 4.0).powi(3) / 100_000.0; // stream aim nerf - if (self.attrs.aim / self.attrs.speed) < 1.03 && self.mods.rx() && self.mods.dt() { - aim_value *= self.attrs.aim / self.attrs.speed - 0.7 + if (self.attrs.aim / self.attrs.speed) < 1.03 && self.mods.rx() { + aim_value *= (self.attrs.aim / self.attrs.speed - 0.7).max(0.2).min(0.9) } let total_hits = self.total_hits();