Skip to content

Commit

Permalink
buff hdfl on taiko
Browse files Browse the repository at this point in the history
  • Loading branch information
jeenyuhs authored and Hazuki-san committed Nov 3, 2023
1 parent 01a795a commit c9c0262
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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.22"
version = "0.9.23"
authors = ["MaxOhn <[email protected]>", "Aoba Suzukaze <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down
8 changes: 7 additions & 1 deletion src/taiko/pp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,16 @@ impl TaikoPpInner {
diff_value *= 1.025;
}

if self.mods.hr() {
if self.mods.hr() && self.mods.rx() {
diff_value *= 1.12;
} else if self.mods.hr() {
diff_value *= 1.05;
}

if self.mods.fl() {
diff_value *= 1.05 * len_bonus;
} else if self.mods.fl() && self.mods.rx() {
diff_value *= 1.12 * len_bonus;
}

let acc = self.custom_accuracy();
Expand Down Expand Up @@ -380,6 +384,8 @@ impl TaikoPpInner {
// * Slight HDFL Bonus for accuracy. A clamp is used to prevent against negative values
if self.mods.hd() && self.mods.fl() {
acc_value *= (1.075 * len_bonus).max(1.05);
} else if self.mods.hd() && self.mods.fl() && self.mods.rx() {
acc_value *= 1.15 * (len_bonus + 0.2);
}

acc_value
Expand Down

0 comments on commit c9c0262

Please sign in to comment.