Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
more week progress fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnimatingLegend committed Feb 17, 2024
1 parent 5dbacf6 commit 5656bf6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ class FreeplayState extends MusicBeatState
FlxG.sound.playMusic(Paths.music('freakyMenu'));
}

if (!FlxG.save.data.weekUnlocked)
if (!FlxG.save.data.WeekUnlocked)
{
if (StoryMenuState.weekUnlocked[1] || isDebug)
if (StoryMenuState.weekUnlocked[1]|| isDebug)
addWeek(['Bopeebo', 'Fresh', 'Dadbattle'], 1, ['dad']);

if (StoryMenuState.weekUnlocked[2] || isDebug)
Expand Down
3 changes: 2 additions & 1 deletion source/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ class MainMenuState extends MusicBeatState
{
startExitState(new FreeplayState());
});
if (!FlxG.save.data.weekUnlocked || StoryMenuState.weekUnlocked[7]) {
if (!FlxG.save.data.weekUnlocked || StoryMenuState.weekUnlocked[7])
{
menuItems.createItem(null, null, "kickstarter", selectDonate, true);
} else {
menuItems.createItem(null, null, "donate", selectDonate, true);
Expand Down
2 changes: 1 addition & 1 deletion source/Options.hx
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ class ResetSettings extends Option
FlxG.save.data.glowStrums = null;
FlxG.save.data.cursingShit = null;
FlxG.save.data.camhudZoom = null;
FlxG.save.data.weekUnlocked = null;
// FlxG.save.data.weekUnlocked = null;

Option.setupSaveData();
trace('All settings have been reset');
Expand Down
3 changes: 2 additions & 1 deletion source/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ class TitleState extends MusicBeatState
VideoState.seenVideo = FlxG.save.data.seenVideo;
}

if (FlxG.save.data.weekUnlocked != null) {
if (FlxG.save.data.weekUnlocked != null)
{
StoryMenuState.weekUnlocked = StoryMenuState.unlockWeeks();
FlxG.save.flush();
}
Expand Down

0 comments on commit 5656bf6

Please sign in to comment.