Skip to content

Commit

Permalink
Merge pull request #4 from jamuwu/patch-1
Browse files Browse the repository at this point in the history
Fix wrong variable use for length_bonus
  • Loading branch information
The-CJ authored Aug 22, 2020
2 parents 90fd752 + e3ade33 commit e527e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oppadc/osupp.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def calc(self, version:int=1, accuracy:float=100, combo:int=None, misses:int=0,
length_bonus:float = 0.95 + (0.4 * min(1, amount_objects_ober_2k))

if amount_hitobjects > 2000:
length_bonus += math.log10(amount_hitobjects) * 0.5
length_bonus += math.log10(amount_objects_ober_2k) * 0.5

miss_penality:float = 0.97 ** misses
combo_break:float = (combo**0.8) / (max_combo**0.8)
Expand Down

0 comments on commit e527e5c

Please sign in to comment.