From 5656bf6c932e3e31a81b6dba79dde71e1dbe3542 Mon Sep 17 00:00:00 2001 From: Legend Date: Fri, 16 Feb 2024 23:01:15 -0500 Subject: [PATCH] more week progress fixes --- source/FreeplayState.hx | 4 ++-- source/MainMenuState.hx | 3 ++- source/Options.hx | 2 +- source/TitleState.hx | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/source/FreeplayState.hx b/source/FreeplayState.hx index a716713..60df9ff 100644 --- a/source/FreeplayState.hx +++ b/source/FreeplayState.hx @@ -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) diff --git a/source/MainMenuState.hx b/source/MainMenuState.hx index cde649d..a8f2331 100644 --- a/source/MainMenuState.hx +++ b/source/MainMenuState.hx @@ -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); diff --git a/source/Options.hx b/source/Options.hx index 9f933d6..d196c39 100644 --- a/source/Options.hx +++ b/source/Options.hx @@ -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'); diff --git a/source/TitleState.hx b/source/TitleState.hx index 415f206..ee077be 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -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(); }