debug unlock weeks
This commit is contained in:
parent
8da131a9ed
commit
30fb4f665b
@ -64,6 +64,21 @@ class FreeplayState extends MusicBeatState
|
|||||||
{
|
{
|
||||||
var data:Array<String> = initSonglist[i].split(':');
|
var data:Array<String> = initSonglist[i].split(':');
|
||||||
var meta = new SongMetadata(data[0], Std.parseInt(data[2]), data[1]);
|
var meta = new SongMetadata(data[0], Std.parseInt(data[2]), data[1]);
|
||||||
|
#if debug
|
||||||
|
songs.push(meta);
|
||||||
|
var format = StringTools.replace(meta.songName, " ", "-");
|
||||||
|
switch (format) {
|
||||||
|
case 'Dad-Battle': format = 'Dadbattle';
|
||||||
|
case 'Philly-Nice': format = 'Philly';
|
||||||
|
}
|
||||||
|
|
||||||
|
var diffs = [];
|
||||||
|
FreeplayState.loadDiff(0,format,meta.songName,diffs);
|
||||||
|
FreeplayState.loadDiff(1,format,meta.songName,diffs);
|
||||||
|
FreeplayState.loadDiff(2,format,meta.songName,diffs);
|
||||||
|
FreeplayState.songData.set(meta.songName,diffs);
|
||||||
|
trace('loaded diffs for ' + meta.songName);
|
||||||
|
#else
|
||||||
if(Std.parseInt(data[2]) <= FlxG.save.data.weekUnlocked - 1)
|
if(Std.parseInt(data[2]) <= FlxG.save.data.weekUnlocked - 1)
|
||||||
{
|
{
|
||||||
songs.push(meta);
|
songs.push(meta);
|
||||||
@ -80,6 +95,7 @@ class FreeplayState extends MusicBeatState
|
|||||||
FreeplayState.songData.set(meta.songName,diffs);
|
FreeplayState.songData.set(meta.songName,diffs);
|
||||||
trace('loaded diffs for ' + meta.songName);
|
trace('loaded diffs for ' + meta.songName);
|
||||||
}
|
}
|
||||||
|
#end
|
||||||
}
|
}
|
||||||
|
|
||||||
//trace("\n" + diffList);
|
//trace("\n" + diffList);
|
||||||
|
@ -78,7 +78,14 @@ class StoryMenuState extends MusicBeatState
|
|||||||
|
|
||||||
function unlockWeeks():Array<Bool>
|
function unlockWeeks():Array<Bool>
|
||||||
{
|
{
|
||||||
var weeks:Array<Bool> = [true];
|
var weeks:Array<Bool> = [];
|
||||||
|
#if debug
|
||||||
|
for(i in 0...weekNames.length)
|
||||||
|
weeks.push(true);
|
||||||
|
return weeks;
|
||||||
|
#end
|
||||||
|
|
||||||
|
weeks.push(true);
|
||||||
|
|
||||||
for(i in 0...FlxG.save.data.weekUnlocked)
|
for(i in 0...FlxG.save.data.weekUnlocked)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user