Skip to content

Commit

Permalink
also points in freeplay
Browse files Browse the repository at this point in the history
  • Loading branch information
Snirozu committed Jul 8, 2024
1 parent e0e60de commit 1c9958a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3072,6 +3072,7 @@ class PlayState extends MusicBeatState
if(Math.isNaN(percent)) percent = 0;
if (!isInvalidScore()) {
Highscore.saveScore(SONG.song, songScore, storyDifficulty, percent);
online.FunkinPoints.save(ratingPercent, songMisses, noteDensity, totalNotesHit, combo, playbackRate);
if (replayRecorder != null)
replayRecorder.save();
}
Expand All @@ -3091,8 +3092,7 @@ class PlayState extends MusicBeatState
if (GameClient.isConnected()) {
Lib.application.window.resizable = true;
FlxG.sound.playMusic(Paths.music('freakyMenu'));
if (!isInvalidScore()) online.FunkinPoints.save(ratingPercent, songMisses, noteDensity, totalNotesHit, combo, playbackRate);
else online.Alert.alert("Calculated Points", "+" + online.FunkinPoints.calcFP(ratingPercent, songMisses, noteDensity, totalNotesHit, combo, playbackRate));
if (isInvalidScore()) online.Alert.alert("Calculated Points", "+" + online.FunkinPoints.calcFP(ratingPercent, songMisses, noteDensity, totalNotesHit, combo, playbackRate));
GameClient.clearOnMessage();
if (!skipResults)
FlxG.switchState(() -> new online.states.ResultsScreen());
Expand Down

0 comments on commit 1c9958a

Please sign in to comment.