Skip to content

Commit

Permalink
take doubletime into account when looking at length and duration till…
Browse files Browse the repository at this point in the history
… next obj
  • Loading branch information
jeenyuhs authored and Hazuki-san committed Oct 1, 2023
1 parent 4583406 commit 3a18c43
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/osu/pp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,15 @@ impl OsuPpInner {

if self.mods.rx() {
let diff_ratio = self.get_distance_duration_ratio();
let length = self.map.hit_length();
let mut length = self.map.hit_length();

aim_value *= 2.1_f64.powf(diff_ratio + ((length) / self.total_hits() / 2.0)) * 0.2;
if self.mods.dt() {
length /= 1.5;
}

aim_value *= 2.1_f64.powf(diff_ratio + (length / self.total_hits() / 2.0)) * 0.2;

if (length) <= 60.0_f64 {
if length <= 60.0_f64 {
// maybe say length / total hits instead of 130.
aim_value *= 1.21 * (length / 120.0).sqrt() + 0.1
}
Expand Down Expand Up @@ -769,7 +773,10 @@ impl OsuPpInner {
let _dist = (next_obj.pos.x - obj.pos.x).powi(2) + (next_obj.pos.y - obj.pos.y).powi(2);
let dist = _dist.sqrt();

let duration = next_obj.start_time - obj.end_time();
let mut duration = next_obj.start_time - obj.end_time();
if self.mods.dt() {
duration /= 1.19; // should be 1.5, but it buffs maps too much
}

let mut ratio = 0.0;

Expand Down

0 comments on commit 3a18c43

Please sign in to comment.