Filter out unavailable difficulties from Story Mode levels.

This commit is contained in:
ImVeryBad
2026-03-04 20:45:51 -07:00
committed by Hundrec
parent b3eb709f4e
commit 365f8dcfea
+1 -1
View File
@@ -507,7 +507,7 @@ class StoryMenuState extends MusicBeatState
{
// "For now, NO erect in story mode" -Dave
var difficultyList:Array<String> = Constants.DEFAULT_DIFFICULTY_LIST;
var difficultyList:Array<String> = currentLevel.getDifficulties().filter(e -> Constants.DEFAULT_DIFFICULTY_LIST.contains(e));
// Use this line to displays all difficulties
// var difficultyList:Array<String> = currentLevel.getDifficulties();
var currentIndex:Int = difficultyList.indexOf(currentDifficultyId);