From 92a516577b3f04e5079132a37aab326450a3ac19 Mon Sep 17 00:00:00 2001 From: Rob Kelly Date: Mon, 8 Sep 2025 17:59:46 -0600 Subject: [PATCH] Player HUD clear alert should only play when the alert level was in the danger zone --- src/ui/hud/player_hud.gd | 3 ++- src/ui/hud/player_hud.tscn | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ui/hud/player_hud.gd b/src/ui/hud/player_hud.gd index 372cae5..bba894a 100644 --- a/src/ui/hud/player_hud.gd +++ b/src/ui/hud/player_hud.gd @@ -23,4 +23,5 @@ func play_tank_full_alert() -> void: func _on_clear_alert() -> void: - alert_clear_player.play("alert_clear") + if World.instance.manager.alert_level >= 2: + alert_clear_player.play("alert_clear") diff --git a/src/ui/hud/player_hud.tscn b/src/ui/hud/player_hud.tscn index c31e316..a694f81 100644 --- a/src/ui/hud/player_hud.tscn +++ b/src/ui/hud/player_hud.tscn @@ -458,10 +458,10 @@ anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -offset_left = -20.2593 -offset_top = -19.6536 -offset_right = -20.2593 -offset_bottom = -19.6536 +offset_left = -20.7219 +offset_top = -16.7788 +offset_right = -20.7219 +offset_bottom = -16.7788 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("4_ud8na")