Updated cycle testing logic and various other behaviours for enhanced

system.
This commit is contained in:
Henry Faber 2026-06-29 22:12:28 +01:00
parent 1ac71cc104
commit 7ffb93963f
10 changed files with 237 additions and 31 deletions

View file

@ -33,6 +33,9 @@ func show_notification(weapon_name: String, player_node: Node2D, player_sprite_s
var icon_path = "res://graphics/" + weapon_name.to_lower() + ".png"
if ResourceLoader.exists(icon_path):
icon.texture = load(icon_path)
elif ResourceLoader.exists("res://graphics/stock.png"):
# Fallback to stock icon when no dedicated icon exists
icon.texture = load("res://graphics/stock.png")
else:
icon.texture = null