diff options
Diffstat (limited to 'client/map/items/pot_fill.gd')
-rw-r--r-- | client/map/items/pot_fill.gd | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/client/map/items/pot_fill.gd b/client/map/items/pot_fill.gd index f5c8ad44..2c9ef929 100644 --- a/client/map/items/pot_fill.gd +++ b/client/map/items/pot_fill.gd @@ -1,5 +1,6 @@ # Hurry Curry! - a game about cooking # Copyright 2024 nokoe +# Copyright 2024 tpart # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -14,14 +15,12 @@ # along with this program. If not, see <https://www.gnu.org/licenses/>. # class_name PotFill -extends Pot +extends Item var fill: MeshInstance3D = load("res://map/items/pot_fill.tscn").instantiate() -func _init(owned_by_: Node3D): +func _init(owned_by_: Node3D, c: Color): super(owned_by_) - add_child(fill) - -func set_color(c: Color): var mat: BaseMaterial3D = fill.get_active_material(0) mat.albedo_color = c + base.add_child(fill) |