diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-27 00:38:13 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-27 00:38:13 +0200 |
commit | 0cdc668ff70f3eed492dcb5d9e68ba3d2d9fa541 (patch) | |
tree | ebf64c37476279bb2ab007a0a72b1bc0ce865501 /client/map/items | |
parent | 3f7625c02320c1e58da0f579750c76dc47603085 (diff) | |
parent | fd629cefc69189751f003dc3add47666f2742ae3 (diff) | |
download | hurrycurry-0cdc668ff70f3eed492dcb5d9e68ba3d2d9fa541.tar hurrycurry-0cdc668ff70f3eed492dcb5d9e68ba3d2d9fa541.tar.bz2 hurrycurry-0cdc668ff70f3eed492dcb5d9e68ba3d2d9fa541.tar.zst |
Merge branch 'master' of codeberg.org:metamuffin/undercooked
Diffstat (limited to 'client/map/items')
-rw-r--r-- | client/map/items/burned.gd | 8 | ||||
-rw-r--r-- | client/map/items/burned_pot.gd | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/client/map/items/burned.gd b/client/map/items/burned.gd index 5c98817a..ad7b4505 100644 --- a/client/map/items/burned.gd +++ b/client/map/items/burned.gd @@ -16,13 +16,17 @@ class_name Burned extends Item +var steam: CPUParticles3D = load("res://map/items/steam.tscn").instantiate() + func _init(owned_by_: Node3D): super(owned_by_) - var steam: CPUParticles3D = load("res://map/items/steam.tscn").instantiate() - steam.emitting = true steam.color = Color(0., 0., 0.) add_child(load("res://map/items/burned.tscn").instantiate()) base.add_child(steam) + +func _ready(): + steam.emitting = true + static func base_position() -> Vector3: return Vector3(0., .2, 0.) diff --git a/client/map/items/burned_pot.gd b/client/map/items/burned_pot.gd index dc749259..d38cae6e 100644 --- a/client/map/items/burned_pot.gd +++ b/client/map/items/burned_pot.gd @@ -18,6 +18,8 @@ extends PotFill func _init(owned_by_: Node3D): super(owned_by_) - steam.emitting = true steam.color = Color(0., 0., 0.) set_color(Color(.1, .1, .1)) + +func _ready(): + steam.emitting = true |