Skip to content

Commit 98f01a5

Browse files
committed
this is just evil lmao
1 parent 0f31c93 commit 98f01a5

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

source/archipelago/APItem.hx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ class APChartModifier extends APItem {
366366
new APChartModifier(modifier);
367367
}
368368
}
369-
class APAprilFools extends APItem {
369+
class APrilFools extends APItem {
370370
private static var options:Map<Int, Void->Void> = new Map();
371371

372372
static function initializeOptions():Void {
@@ -410,6 +410,25 @@ class APAprilFools extends APItem {
410410
if (songList.length == 0) {
411411
archipelago.APItem.popup("No songs available to switch!", "April Fools!");
412412
return;
413+
} else {
414+
var randomSong:Int = FlxG.random.int(0, songList.length-1);
415+
switch (songList[randomSong].songName)
416+
{
417+
case 'Small Argument' | 'Beat Battle 2':
418+
Difficulty.list = ['Hard'];
419+
case "Beat Battle":
420+
Difficulty.list = ["Normal", "Reasonable", "Unreasonable", "Semi-Impossible", "Impossible"];
421+
default:
422+
Difficulty.loadFromWeek(backend.WeekData.weeksLoaded.get(backend.WeekData.weeksList[songList[randomSong].week]));
423+
}
424+
var randomDiff:Int = FlxG.random.int(0, Difficulty.list.length-1);
425+
var songLowercase:String = Paths.formatToSongPath(songList[randomSong].songName);
426+
var poop:String = backend.Highscore.formatSong(songLowercase, randomDiff);
427+
backend.Song.loadFromJson(poop, songLowercase);
428+
states.PlayState.isStoryMode = false;
429+
states.PlayState.storyDifficulty = randomDiff;
430+
LoadingState.prepareToSong();
431+
LoadingState.loadAndSwitchState(APEntryState.inArchipelagoMode ? new archipelago.APPlayState() : new states.PlayState());
413432
}
414433
}
415434
});

0 commit comments

Comments
 (0)