aboutsummaryrefslogtreecommitdiff
path: root/client/map/items
diff options
context:
space:
mode:
Diffstat (limited to 'client/map/items')
-rw-r--r--client/map/items/flour.gd21
-rw-r--r--client/map/items/flour.resbin0 -> 2775 bytes
-rw-r--r--client/map/items/flour.tscn10
-rw-r--r--client/map/items/flour_food_processor.gd22
-rw-r--r--client/map/items/processing.tscn2
-rw-r--r--client/map/items/tomato_food_processor.gd (renamed from client/map/items/tomat_food_processor.gd)0
6 files changed, 54 insertions, 1 deletions
diff --git a/client/map/items/flour.gd b/client/map/items/flour.gd
new file mode 100644
index 00000000..1cb52ee8
--- /dev/null
+++ b/client/map/items/flour.gd
@@ -0,0 +1,21 @@
+# Undercooked - a game about cooking
+# 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 Flour
+extends Item
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ base.add_child(load("res://map/items/flour.tscn").instantiate())
diff --git a/client/map/items/flour.res b/client/map/items/flour.res
new file mode 100644
index 00000000..19f2db82
--- /dev/null
+++ b/client/map/items/flour.res
Binary files differ
diff --git a/client/map/items/flour.tscn b/client/map/items/flour.tscn
new file mode 100644
index 00000000..c283eae5
--- /dev/null
+++ b/client/map/items/flour.tscn
@@ -0,0 +1,10 @@
+[gd_scene load_steps=2 format=3 uid="uid://dgo8cknr1o6ml"]
+
+[ext_resource type="ArrayMesh" uid="uid://b76c6o88lkei2" path="res://map/items/flour.res" id="1_55ndm"]
+
+[node name="Flour" type="Node3D"]
+
+[node name="Mesh" type="MeshInstance3D" parent="."]
+transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
+mesh = ExtResource("1_55ndm")
+skeleton = NodePath("")
diff --git a/client/map/items/flour_food_processor.gd b/client/map/items/flour_food_processor.gd
new file mode 100644
index 00000000..24ad976c
--- /dev/null
+++ b/client/map/items/flour_food_processor.gd
@@ -0,0 +1,22 @@
+# Undercooked - a game about cooking
+# 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 FlourFoodProcessor
+extends FoodProcessor
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ processing.color = Color(.9, .9, .9)
+ base.add_child(load("res://map/items/flour.tscn").instantiate())
diff --git a/client/map/items/processing.tscn b/client/map/items/processing.tscn
index 4904eb04..f8deb6be 100644
--- a/client/map/items/processing.tscn
+++ b/client/map/items/processing.tscn
@@ -17,7 +17,7 @@ mesh = SubResource("SphereMesh_baneh")
emission_shape = 6
emission_ring_axis = Vector3(0, 1, 0)
emission_ring_height = 0.2
-emission_ring_radius = 0.05
+emission_ring_radius = 0.1
emission_ring_inner_radius = 0.0
direction = Vector3(0, 1, 0)
spread = 180.0
diff --git a/client/map/items/tomat_food_processor.gd b/client/map/items/tomato_food_processor.gd
index 4003e246..4003e246 100644
--- a/client/map/items/tomat_food_processor.gd
+++ b/client/map/items/tomato_food_processor.gd