This commit is contained in:
Rendo 2025-10-17 18:22:49 +05:00
commit 074bb21ffd
18 changed files with 99 additions and 51 deletions

View file

@ -15,9 +15,10 @@ func switch_recipe(recipe: Recipe) -> void:
for i in range(len(selected_recipe.ingridients)):
inventory.input_array[i].filter = selected_recipe.ingridients[i].item
func _process(_delta: float) -> void:
func _tick(_current_tick : int) -> void:
if inventory.output_slot.amount <= 0:
return
inventory.refresh()
var output : Structure = get_output_structure()
if output == null:
return