trash can

This commit is contained in:
Rendo 2025-10-16 22:21:30 +05:00
commit 39c52694da
11 changed files with 57 additions and 5 deletions

View file

@ -0,0 +1,9 @@
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