diff options
author | metamuffin <metamuffin@disroot.org> | 2024-08-17 16:52:36 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-08-17 16:52:36 +0200 |
commit | 49f5bd102b000391915b49485eb51156c5ef6b59 (patch) | |
tree | 93c8c5ae98ed684fccbb769583938686403c6170 /client | |
parent | 1adaa706e7ba366766fb238e30ef92cc30d16d82 (diff) | |
download | hurrycurry-49f5bd102b000391915b49485eb51156c5ef6b59.tar hurrycurry-49f5bd102b000391915b49485eb51156c5ef6b59.tar.bz2 hurrycurry-49f5bd102b000391915b49485eb51156c5ef6b59.tar.zst |
add more foodprocessor models
Diffstat (limited to 'client')
-rw-r--r-- | client/map/item_factory.gd | 7 | ||||
-rw-r--r-- | client/map/items/dough_food_processor.gd | 2 | ||||
-rw-r--r-- | client/map/items/milk_food_processor.gd | 22 | ||||
-rw-r--r-- | client/map/items/strawberry.tscn | 2 | ||||
-rw-r--r-- | client/map/items/strawberry_food_processor.gd | 23 | ||||
-rw-r--r-- | client/map/items/strawberry_puree_food_processor.gd | 22 |
6 files changed, 76 insertions, 2 deletions
diff --git a/client/map/item_factory.gd b/client/map/item_factory.gd index 39e1e12d..5a8c93e7 100644 --- a/client/map/item_factory.gd +++ b/client/map/item_factory.gd @@ -1,5 +1,6 @@ # Hurry Curry! - a game about cooking # Copyright 2024 nokoe +# Copyright 2024 metamuffin # # 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 @@ -110,5 +111,11 @@ static func produce(name: String, owned_by: Node3D) -> Item: return CoconutFoodProcessor.new(owned_by) "strawberry": return Strawberry.new(owned_by) + "strawberry-foodprocessor": + return StrawberryFoodProcessor.new(owned_by) + "strawberry-puree-foodprocessor": + return StrawberryPureeFoodProcessor.new(owned_by) + "milk-foodprocessor": + return MilkFoodProcessor.new(owned_by) var t: return GenericItem.new(owned_by, t) diff --git a/client/map/items/dough_food_processor.gd b/client/map/items/dough_food_processor.gd index bb8629e4..d72e4c58 100644 --- a/client/map/items/dough_food_processor.gd +++ b/client/map/items/dough_food_processor.gd @@ -18,4 +18,4 @@ extends FoodProcessorContent func _init(owned_by_: Node3D): super(owned_by_) - set_color(Color8(198, 195, 180)) + set_color(Color8(200, 180, 160)) diff --git a/client/map/items/milk_food_processor.gd b/client/map/items/milk_food_processor.gd new file mode 100644 index 00000000..4be2553b --- /dev/null +++ b/client/map/items/milk_food_processor.gd @@ -0,0 +1,22 @@ +# Hurry Curry! - a game about cooking +# Copyright 2024 metamuffin +# Copyright 2024 nokoe +# +# 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 MilkFoodProcessor +extends FoodProcessorContent + +func _init(owned_by_: Node3D): + super(owned_by_) + set_color(Color8(250,250,250)) diff --git a/client/map/items/strawberry.tscn b/client/map/items/strawberry.tscn index 90df0c3c..d7a9b0a0 100644 --- a/client/map/items/strawberry.tscn +++ b/client/map/items/strawberry.tscn @@ -1,6 +1,6 @@ [gd_scene load_steps=2 format=3 uid="uid://df1xktleeqg3m"] -[ext_resource type="ArrayMesh" uid="uid://c2uwqjxx7mnqp" path="res://map/items/strawberry.res" id="1_8dx1o"] +[ext_resource type="ArrayMesh" path="res://map/items/strawberry.res" id="1_8dx1o"] [node name="Strawberry" type="Node3D"] diff --git a/client/map/items/strawberry_food_processor.gd b/client/map/items/strawberry_food_processor.gd new file mode 100644 index 00000000..416da224 --- /dev/null +++ b/client/map/items/strawberry_food_processor.gd @@ -0,0 +1,23 @@ +# Hurry Curry! - a game about cooking +# Copyright 2024 metamuffin +# Copyright 2024 nokoe +# +# 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 StrawberryFoodProcessor +extends FoodProcessor + +func _init(owned_by_: Node3D): + super(owned_by_) + processing.color = Color(.9, .0, .0) + base.add_child(load("res://map/items/strawberry.tscn").instantiate()) diff --git a/client/map/items/strawberry_puree_food_processor.gd b/client/map/items/strawberry_puree_food_processor.gd new file mode 100644 index 00000000..5e3d97a3 --- /dev/null +++ b/client/map/items/strawberry_puree_food_processor.gd @@ -0,0 +1,22 @@ +# Hurry Curry! - a game about cooking +# Copyright 2024 metamuffin +# Copyright 2024 nokoe +# +# 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 StrawberryPureeFoodProcessor +extends FoodProcessorContent + +func _init(owned_by_: Node3D): + super(owned_by_) + set_color(Color8(200, 80, 80)) |