chore: simplify ar bonus

This commit is contained in:
tsunyoku
2022-11-20 15:26:45 +00:00
parent e0603def89
commit 2176d13e86
+2 -14
View File
@@ -372,13 +372,7 @@ impl<'m> OsuPP<'m> {
}
// AR bonus
let mut ar_factor = if self.mods.rx() {
if attributes.ar > 10.67 {
0.4 * (attributes.ar - 10.67)
} else {
0.0
}
} else if attributes.ar > 10.33 {
let mut ar_factor = if attributes.ar > 10.33 {
0.3 * (attributes.ar - 10.33)
} else {
0.0
@@ -467,13 +461,7 @@ impl<'m> OsuPP<'m> {
// AR bonus
if attributes.ar > 10.33 {
let mut ar_factor = if self.mods.rx() {
if attributes.ar > 10.67 {
0.4 * (attributes.ar - 10.67)
} else {
0.0
}
} else if attributes.ar > 10.33 {
let mut ar_factor = if attributes.ar > 10.33 {
0.3 * (attributes.ar - 10.33)
} else {
0.0