Filter out unavailable difficulties from Story Mode levels.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user