9 lines
263 B
GDScript
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
|