Skip to content

Commit

Permalink
tweak miss penalty
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazuki-san committed Oct 22, 2023
1 parent 3ebd887 commit 9386d40
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/osu/pp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ impl OsuPpInner {

// stream aim nerf
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)
aim_value *= (self.attrs.aim / self.attrs.speed - 0.5).max(0.2).min(0.9)
}

let total_hits = self.total_hits();
Expand All @@ -476,7 +476,7 @@ impl OsuPpInner {
if self.effective_miss_count > 0.0 {
if self.mods.rx() {
aim_value *= 0.97
* (0.9 - (self.effective_miss_count / total_hits).powf(0.775))
* (0.94 - (self.effective_miss_count / total_hits).powf(0.775))
.powf(self.effective_miss_count.powf(0.875));
} else {
aim_value *= 0.97
Expand Down Expand Up @@ -574,15 +574,9 @@ impl OsuPpInner {
// * Penalize misses by assessing # of misses relative to the total # of objects.
// * Default a 3% reduction for any # of misses.
if self.effective_miss_count > 0.0 {
if self.mods.rx() {
speed_value *= 0.97
* (0.9 - (self.effective_miss_count / total_hits).powf(0.775))
.powf(self.effective_miss_count.powf(0.875));
} else {
speed_value *= 0.97
* (1.0 - (self.effective_miss_count / total_hits).powf(0.775))
.powf(self.effective_miss_count.powf(0.875));
}
speed_value *= 0.97
* (1.0 - (self.effective_miss_count / total_hits).powf(0.775))
.powf(self.effective_miss_count.powf(0.875));
}

speed_value *= self.get_combo_scaling_factor();
Expand Down

0 comments on commit 9386d40

Please sign in to comment.