Updated cycle testing logic and various other behaviours for enhanced
system.
This commit is contained in:
parent
1ac71cc104
commit
7ffb93963f
10 changed files with 237 additions and 31 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue