drop on death

This commit is contained in:
Rendo 2025-11-30 00:15:42 +05:00
commit 27f1e0c0aa
5 changed files with 36 additions and 14 deletions

View file

@ -0,0 +1,9 @@
extends Node
func _ready() -> void:
if get_parent().player == null: return
get_parent().player.died.connect(on_death)
func on_death() -> void:
get_parent().system.drop_slot("bomb")

View file

@ -0,0 +1 @@
uid://b5eapvgoni1pj