From 96a3a3c85d2435d358a389e19c6702043a63c85f Mon Sep 17 00:00:00 2001 From: tpart Date: Sun, 28 Sep 2025 16:17:00 +0200 Subject: Add cut particles to cheese --- client/map/items/cheese.gd | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client/map') diff --git a/client/map/items/cheese.gd b/client/map/items/cheese.gd index 72bde801..0e6d9df7 100644 --- a/client/map/items/cheese.gd +++ b/client/map/items/cheese.gd @@ -16,6 +16,14 @@ class_name Cheese extends Item +var cut: CPUParticles3D = load("res://map/items/cut.tscn").instantiate() + func _init(owned_by_: Node3D): super(owned_by_) base.add_child(load("res://map/items/cheese.tscn").instantiate()) + base.add_child(cut) + cut.color = Color("ffc844ff") + +func progress(position_: float, speed: float, warn: bool): + super(position_, speed, warn) + cut.emitting = speed > 0 -- cgit v1.2.3-70-g09d2