added a quick updating thing to resource extraction + fixed a bug where the timer warnings would play, upon death

This commit is contained in:
JHDev2006
2025-10-15 14:37:05 +01:00
parent 447b6d3ea7
commit 6b598e717d
5 changed files with 17 additions and 2 deletions

View File

@@ -26,6 +26,8 @@ func _process(_delta: float) -> void:
get_parent().visible = percent < 1 and Settings.file.visuals.visible_timers
frame = lerp(0, 6, percent)
if percent >= warn_threshold and Settings.file.audio.extra_sfx == 1:
if node is Timer:
if node.is_stopped(): return
if can_warn:
can_warn = false
AudioManager.play_global_sfx("timer_warning")