From cc0b06d8b42ea8e50ac594099f6c3e0af0d25610 Mon Sep 17 00:00:00 2001 From: Techwizz Date: Tue, 16 May 2023 11:52:29 -0600 Subject: [PATCH] Fixed a bug with early respawn --- .DS_Store | Bin 12292 -> 12292 bytes scripts/death.gd | 1 + 2 files changed, 1 insertion(+) diff --git a/.DS_Store b/.DS_Store index 24d410fbb74ae3bba7a3019a30a2a6e8903d392c..7588d406f3b4ae9d5703f15d36fb7e3290ef8519 100644 GIT binary patch delta 26 hcmZokXi3;$sKRMzXkx0PU}0!H*;deTbG1q*Hvno?2a*5) delta 16 XcmZokXi3;$s51G5nAhfNl}>H|JAej{ diff --git a/scripts/death.gd b/scripts/death.gd index b1dc7ef..ab57a26 100644 --- a/scripts/death.gd +++ b/scripts/death.gd @@ -23,6 +23,7 @@ func _process(delta): deathTimer = deathTimer + (10 * Global.respawnTimeModifier) * delta if deathTimer > 100: deathTimer = 0 + Global.playerDeathHealth = 100 Global.playerPleaseRespawn = true # Used so the Teddy script will know to reset variables and position of the player self.queue_free() $deathBar.value = deathTimer