Skip to content

Commit

Permalink
Results screen - new rank after practice mode fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasercar committed Mar 1, 2025
1 parent 5054c58 commit b9ccfc9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion source/funkin/play/ResultState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,19 @@ class ResultState extends MusicBeatSubState
final cameraScroll:FunkinCamera;
final cameraEverything:FunkinCamera;

/**
* Whether the game is currently in Practice Mode.
* If true, player will not lose gain or lose score from notes.
*/
var isPracticeMode(get, never):Bool;

function get_isPracticeMode():Bool
{
return PlayState.instance.isPracticeMode;
}



public function new(params:ResultsStateParams)
{
super();
Expand Down Expand Up @@ -816,7 +829,7 @@ class ResultState extends MusicBeatSubState
newRank: rank,
songId: params.songId,
difficultyId: params.difficultyId,
playRankAnim: true
playRankAnim: (isPracticeMode == true) ? false : true
}
}
});
Expand Down

0 comments on commit b9ccfc9

Please sign in to comment.