Player HUD clear alert should only play when the alert level was in the danger zone

This commit is contained in:
Rob Kelly 2025-09-08 17:59:46 -06:00
parent 34dab35917
commit 92a516577b
2 changed files with 6 additions and 5 deletions

View File

@ -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")

View File

@ -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")