diff options
Diffstat (limited to 'client/map/items/tomato.gd')
| -rw-r--r-- | client/map/items/tomato.gd | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/client/map/items/tomato.gd b/client/map/items/tomato.gd index 989e4a54..43e2e64d 100644 --- a/client/map/items/tomato.gd +++ b/client/map/items/tomato.gd @@ -16,6 +16,18 @@  class_name Tomato  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/tomato.tscn").instantiate()) +	base.add_child(cut) +	cut.color = Color(1., 0., 0.) + +func progress(p: float, warn: bool): +	super(p, warn) +	cut.emitting = true + +func finish(warn: bool): +	super(warn) +	cut.emitting = false | 
