Fix all tables consumed the same customer.

This commit is contained in:
JonShard
2026-08-06 18:49:57 +02:00
parent 1cf3afd440
commit d5c162a51a
12 changed files with 73 additions and 39 deletions
+3 -2
View File
@@ -96,11 +96,12 @@ func clearAllFood() -> void:
# Group called from Queue when trying to assign customers to tables
func try_consume_customer():
func try_consume_customer() -> bool:
if _state == TableState.EMPTY:
print("Table try_consume_customer, consumed a customer")
_state_end(TableState.EMPTY)
Signals.consumed_customer.emit()
return true
return false
func _ready() -> void: