diff options
author | tpart <tpart120@proton.me> | 2024-09-16 12:12:12 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-16 12:12:12 +0200 |
commit | 4090b870fdc7f6b97b363e08ad3073fddb391246 (patch) | |
tree | 5b2f57f7a2cf7abfbb17b3815167d84643155808 /client/map/items/food_processor_fill.gd | |
parent | 44d3480c33c37676f97d7c49ec996c95495d6a59 (diff) | |
download | hurrycurry-4090b870fdc7f6b97b363e08ad3073fddb391246.tar hurrycurry-4090b870fdc7f6b97b363e08ad3073fddb391246.tar.bz2 hurrycurry-4090b870fdc7f6b97b363e08ad3073fddb391246.tar.zst |
Implement food processor contents in new item system
Diffstat (limited to 'client/map/items/food_processor_fill.gd')
-rw-r--r-- | client/map/items/food_processor_fill.gd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/client/map/items/food_processor_fill.gd b/client/map/items/food_processor_fill.gd new file mode 100644 index 00000000..aa92de69 --- /dev/null +++ b/client/map/items/food_processor_fill.gd @@ -0,0 +1,27 @@ +# Hurry Curry! - a game about cooking +# Copyright 2024 Rusty Striker +# 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 +# the Free Software Foundation, version 3 of the License only. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <https://www.gnu.org/licenses/>. +# +class_name FoodProcessorFill +extends Item + +var fill: MeshInstance3D = load("res://map/items/food_processor_fill.tscn").instantiate() + +func _init(owned_by_: Node3D, c: Color): + super(owned_by_) + var mat: BaseMaterial3D = fill.get_active_material(0) + mat.albedo_color = c + add_child(fill) |