fix order of float operations
This commit is contained in:
@@ -67,7 +67,7 @@ pub fn difficulty(
|
||||
let base_speed_performance = (5.0 * (speed_rating / 0.0675).max(1.0) - 4.0).powi(3) / 100_000.0;
|
||||
|
||||
let base_flashlight_performance = if mods.fl() {
|
||||
flashlight_rating * flashlight_rating * 25.0
|
||||
(flashlight_rating * flashlight_rating) * 25.0
|
||||
} else {
|
||||
0.0
|
||||
};
|
||||
|
||||
@@ -188,11 +188,9 @@ impl AimEvaluator {
|
||||
// * The maximum velocity we buff is equal to 125 / strainTime
|
||||
* angle_bonus.min(125.0 / osu_curr_obj.strain_time)
|
||||
// * scale buff from 150 bpm 1/4 to 200 bpm 1/4
|
||||
* base1
|
||||
* base1
|
||||
* (base1 * base1)
|
||||
// * Buff distance exceeding 50 (radius) up to 100 (diameter).
|
||||
* base2
|
||||
* base2;
|
||||
* (base2 * base2);
|
||||
}
|
||||
|
||||
// * Penalize wide angles if they're repeated, reducing the penalty as the lastAngle gets more acute.
|
||||
|
||||
Reference in New Issue
Block a user