the-crypt/Items/BounceWandCollectable.gd

7 lines
151 B
GDScript3
Raw Normal View History

2020-07-20 00:28:15 -05:00
extends Collectable
func _on_Area2D_body_entered(body):
if body.get("Inventory") != null:
body.Inventory.add_item(Globals.Conduit3)
queue_free()