delurbelako/scripts/structures/trash_can.gd
2025-10-16 22:21:30 +05:00

9 lines
263 B
GDScript

extends StructureBehaviour
@onready var inventory : Storage = structure_parent.inventory
func _ready() -> void:
inventory.stack_added.connect(on_stack_added)
func on_stack_added(_stack : Stack, _position: int) -> void:
inventory.internal_array[0].amount = 0