Skip to content

Commit 0177ef5

Browse files
committed
Update FreeplayState.hx
1 parent 381865e commit 0177ef5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

source/states/freeplay/FreeplayState.hx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,26 @@ class FreeplayState extends MusicBeatState
797797
return;
798798
}
799799

800+
if (archipelago.APItem.unknownSongs && APEntryState.inArchipelagoMode) {
801+
FlxG.camera.shake(0.005, 0.5);
802+
// 1 in 20 chance to play metal_pipe instead of badnoise
803+
FlxG.sound.play(
804+
FlxG.random.int(1, 20) == 1
805+
? Paths.sound("metal_pipe")
806+
: Paths.sound("badnoise" + FlxG.random.int(1, 3)),
807+
1
808+
);
809+
grpSongs.forEach(function(item:FlxSprite)
810+
{
811+
if (item.ID == curSelected) FlxTween.color(item, 1, 0xffcc0002, 0xffffffff, {ease: FlxEase.sineIn});
812+
});
813+
grpLocks.forEach(function(item:FlxSprite)
814+
{
815+
if (item.ID == curSelected) FlxTween.color(item, 1, 0xffcc0002, 0xffffffff, {ease: FlxEase.sineIn});
816+
});
817+
return;
818+
}
819+
800820
searchBar.hasFocus = false;
801821
fpManager.destroyFreeplayVocals();
802822
FlxG.sound.music.volume = 0;

0 commit comments

Comments
 (0)