From 2bce5151baeb34d8dc39d5449b33cfeb60fcc022 Mon Sep 17 00:00:00 2001 From: MtH Date: Thu, 6 May 2021 12:54:57 +0200 Subject: [PATCH] test in freeplay if debug --- source/FreeplayState.hx | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/source/FreeplayState.hx b/source/FreeplayState.hx index 12d1e114c..d6040e87c 100644 --- a/source/FreeplayState.hx +++ b/source/FreeplayState.hx @@ -49,6 +49,18 @@ class FreeplayState extends MusicBeatState override function create() { + #if discord_rpc + // Updating Discord Rich Presence + DiscordClient.changePresence("In the Menus", null); + #end + + var isDebug:Bool = false; + + #if debug + isDebug = true; + addSong('Test', 1, 'bf-pixel'); + #end + var initSonglist = CoolUtil.coolTextFile(Paths.txt('freeplaySonglist')); for (i in 0...initSonglist.length) @@ -62,17 +74,6 @@ class FreeplayState extends MusicBeatState FlxG.sound.playMusic(Paths.music('freakyMenu')); } - #if discord_rpc - // Updating Discord Rich Presence - DiscordClient.changePresence("In the Menus", null); - #end - - var isDebug:Bool = false; - - #if debug - isDebug = true; - #end - if (StoryMenuState.weekUnlocked[2] || isDebug) addWeek(['Bopeebo', 'Fresh', 'Dadbattle'], 1, ['dad']);