Skip to content

Commit

Permalink
last tweak before bed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazuki-san committed Oct 20, 2023
1 parent aaf90d3 commit 748e615
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rina-pp"
version = "0.9.18"
version = "0.9.19"
authors = ["MaxOhn <[email protected]>", "Aoba Suzukaze <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down
9 changes: 2 additions & 7 deletions src/osu/pp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.0 && self.mods.rx() {
aim_value *= self.attrs.aim / self.attrs.speed - 0.5
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
}

let total_hits = self.total_hits();
Expand Down Expand Up @@ -550,11 +550,6 @@ impl OsuPpInner {
if length <= 65.0_f64 {
aim_value *= (length / 489.0).sqrt() * 1.4 + 0.49
}

// give length bonus to maps over 2 minutes long.
if length >= 120.0 {
aim_value *= 0.95 + 0.4 * length.log10() * 0.2
}
}

aim_value
Expand Down

0 comments on commit 748e615

Please sign in to comment.