Skip to content

Commit

Permalink
decrease dens note score with time
Browse files Browse the repository at this point in the history
  • Loading branch information
Snirozu committed Oct 22, 2024
1 parent 824a4a4 commit d25eb1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1979,7 +1979,7 @@ class PlayState extends MusicBeatState

if (songNotes[2] <= 0 && playsAsBF() ? gottaHitNote : !gottaHitNote) {
if (densLast != -1 && songNotes[0] - densLast > 1 && songNotes[0] - densLast <= 150) {
denseNotes += (150 - (songNotes[0] - densLast)) * 0.00005;
denseNotes += (150 - (songNotes[0] - densLast)) * 0.00005 / (1 + denseNotes);
}
densLast = songNotes[0];
}
Expand Down Expand Up @@ -2068,6 +2068,8 @@ class PlayState extends MusicBeatState
}
}
}
if (ClientPrefs.isDebug())
trace("note density score: " + denseNotes);
for (event in songData.events) //Event Notes
for (i in 0...event[1].length)
makeEvent(event, i);
Expand Down

0 comments on commit d25eb1b

Please sign in to comment.