Skip to content

Commit

Permalink
Fix rx score inflation on recalculations
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Dec 5, 2023
1 parent badbf45 commit 3780034
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions helpers/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ def calculate_rx_score(score: DBScore, beatmap: DBBeatmap) -> int:
(50 * (score.n50 / total_hits))
)

final_score = (
score.total_score - (avg_hit * score.max_combo)
)

mod_multiplier = calculate_mod_multiplier(Mods(score.mods))
difficulty_multiplier = calculate_difficulty_multiplier(beatmap, total_hits)

for combo in range(1, score.max_combo):
final_score += avg_hit * (
combo_multipliers = [
avg_hit * (
1 + (combo * difficulty_multiplier * mod_multiplier / 25)
)
for combo in range(1, score.max_combo)
]

final_score = sum(combo_multipliers)

return round(final_score)

0 comments on commit 3780034

Please sign in to comment.