From c403a6a40a341e19e4fc24c4819765404234bc55 Mon Sep 17 00:00:00 2001 From: KadeDeveloper Date: Tue, 20 Jul 2021 12:48:25 -0700 Subject: [PATCH] 7 no longer sends you to the void, also version bump --- source/MainMenuState.hx | 2 +- source/PlayState.hx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/MainMenuState.hx b/source/MainMenuState.hx index 00b3690..f359bbc 100644 --- a/source/MainMenuState.hx +++ b/source/MainMenuState.hx @@ -38,7 +38,7 @@ class MainMenuState extends MusicBeatState var newGaming2:FlxText; public static var firstStart:Bool = true; - public static var nightly:String = "-Pre-Release"; + public static var nightly:String = "-Pre-Release2"; public static var kadeEngineVer:String = "1.6" + nightly; public static var gameVer:String = "0.2.7.1"; diff --git a/source/PlayState.hx b/source/PlayState.hx index c341072..68b5f24 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -180,6 +180,7 @@ class PlayState extends MusicBeatState public var camHUD:FlxCamera; private var camGame:FlxCamera; + public var cannotDie = false; public static var offsetTesting:Bool = false; @@ -2406,6 +2407,7 @@ class PlayState extends MusicBeatState #end removedVideo = true; } + cannotDie = true; #if windows DiscordClient.changePresence("Chart Editor", null, null, true); #end @@ -2784,7 +2786,7 @@ class PlayState extends MusicBeatState } } - if (health <= 0) + if (health <= 0 && !cannotDie) { if (!usedTimeTravel) {