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
+1
View File
@@ -74,6 +74,7 @@ mass = 0.004
gravity_scale = 0.5
linear_damp = 100.0
script = ExtResource("2_tbkb3")
picked_up_layer = 64
release_mode = 1
[node name="CollisionShape3D" type="CollisionShape3D" parent="MoveHandle" unique_id=1692047616]
+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:
+2
View File
@@ -141,6 +141,7 @@ size = Vector3(0.05, 0.6713196, 0.05)
[node name="Label3D" type="Label3D" parent="Table" unique_id=662960977]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.8263302, 0)
pixel_size = 0.003
billboard = 2
text = "table state"
vertical_alignment = 0
@@ -148,6 +149,7 @@ line_spacing = -15.0
[node name="Label3DTime" type="Label3D" parent="Table" unique_id=1534849507]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.0147986, 0)
visible = false
pixel_size = 0.003
billboard = 2
text = "20.1s"