diff --git a/buildnumber.txt b/buildnumber.txt index 6794342e..669268d4 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -1393 \ No newline at end of file +1395 \ No newline at end of file diff --git a/source/funkin/game/GameOverSubstate.hx b/source/funkin/game/GameOverSubstate.hx index 5b525f34..5a63b259 100644 --- a/source/funkin/game/GameOverSubstate.hx +++ b/source/funkin/game/GameOverSubstate.hx @@ -79,6 +79,7 @@ class GameOverSubstate extends MusicBeatSubstate if (!isEnding && ((!lossSFX.playing) || (character.animation.curAnim != null && character.animation.curAnim.name == "firstDeath" && character.animation.curAnim.finished)) && (FlxG.sound.music == null || !FlxG.sound.music.playing)) { CoolUtil.playMusic(Paths.music(gameOverSong), 100); + beatHit(0); } } diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index ac539ec3..4bf4a6bd 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -81,7 +81,7 @@ class PlayState extends MusicBeatState public var halloweenLevel:Bool = false; public var gameOverSong:String = "gameOver"; - public var lossSFX:String = "fnf_loss_sfx"; + public var lossSFX:String = "gameOverSFX"; public var retrySFX:String = "gameOverEnd"; public var stage:Stage; @@ -1081,9 +1081,9 @@ class PlayState extends MusicBeatState function gameOver(?character:String, ?gameOverSong:String, ?lossSFX:String, ?retrySFX:String) { character = character.getDefault((boyfriend != null) ? boyfriend.gameOverCharacter : "bf-dead"); - gameOverSong.getDefault(this.gameOverSong); - lossSFX.getDefault(this.lossSFX); - retrySFX.getDefault(this.retrySFX); + gameOverSong = gameOverSong.getDefault(this.gameOverSong); + lossSFX = lossSFX.getDefault(this.lossSFX); + retrySFX = retrySFX.getDefault(this.retrySFX); boyfriend.stunned = true;