diff options
Diffstat (limited to 'client/map/items/pot.gd')
| -rw-r--r-- | client/map/items/pot.gd | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/client/map/items/pot.gd b/client/map/items/pot.gd index fa5b038d..ac865329 100644 --- a/client/map/items/pot.gd +++ b/client/map/items/pot.gd @@ -16,9 +16,24 @@  class_name Pot  extends Item +var steam: CPUParticles3D = load("res://map/items/steam.tscn").instantiate() +  func _init(owned_by_: Node3D):  	super(owned_by_)  	base.add_child(load("res://map/items/pot.tscn").instantiate()) +	base.add_child(steam) + +func progress(p: float, warn: bool): +	super(p, warn) +	steam.emitting = true +	if warn: +		steam.color = Color(.2, .2, .2) +	else: +		steam.color = Color(1., 1., 1.) + +func finish(warn: bool): +	super(warn) +	steam.emitting = false  static func base_position() -> Vector3:  	return Vector3(0., 0.015, 0.) | 
