Skip to content

Commit

Permalink
fix solo bonus minimum to be at 60% instead of 50% (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
muskit authored May 2, 2023
1 parent 391b00b commit cce176c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Script/PlayMode/ScoreKeeper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ public void Add(double points) {
public double AddSolo(int notesHit, int notesMax) {
double ratio = (double) notesHit / notesMax;

if (ratio <= 0.5)
if (ratio < 0.6)
return 0;

// linear
double multiplier = math.clamp((ratio - 0.5) / 0.5, 0, 1);
double multiplier = math.clamp((ratio - 0.6) / 0.4, 0, 1);
double ptsEarned = 100 * notesHit * multiplier;

// +5% bonus points
Expand Down

0 comments on commit cce176c

Please sign in to comment.