Merge pull request #894 from Lucky-56/patch-3

Locking weeks + settings/score reset option
This commit is contained in:
Kade M
2021-06-30 18:42:41 -07:00
committed by GitHub
10 changed files with 212 additions and 60 deletions

View File

@ -2788,17 +2788,13 @@ class PlayState extends MusicBeatState
}
#end
// if ()
StoryMenuState.weekUnlocked[Std.int(Math.min(storyWeek + 1, StoryMenuState.weekUnlocked.length - 1))] = true;
if (SONG.validScore)
{
NGio.unlockMedal(60961);
Highscore.saveWeekScore(storyWeek, campaignScore, storyDifficulty);
}
FlxG.save.data.weekUnlocked = StoryMenuState.weekUnlocked;
FlxG.save.flush();
StoryMenuState.unlockNextWeek(storyWeek);
}
else
{