aboutsummaryrefslogtreecommitdiff
path: root/client/map/items
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-25 00:16:59 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-25 00:16:59 +0200
commit6db6de3aaea9a139a754453f99cb149cd79aec17 (patch)
tree67ae13e2f2a363f68485ff8f6dff493c122afe15 /client/map/items
parent78b722cf5825108c7d4ea4c248f4e7aa7932b494 (diff)
parentcf11d11099b8ddc03dc0c26f590193d35ba1bafd (diff)
downloadhurrycurry-6db6de3aaea9a139a754453f99cb149cd79aec17.tar
hurrycurry-6db6de3aaea9a139a754453f99cb149cd79aec17.tar.bz2
hurrycurry-6db6de3aaea9a139a754453f99cb149cd79aec17.tar.zst
Merge branch 'master' of codeberg.org:metamuffin/undercooked
Diffstat (limited to 'client/map/items')
-rw-r--r--client/map/items/bread_slice.resbin0 -> 5169 bytes
-rw-r--r--client/map/items/bread_slice.tscn9
-rw-r--r--client/map/items/burned_pot.gd23
-rw-r--r--client/map/items/leek-pot.gd24
-rw-r--r--client/map/items/leek.gd25
-rw-r--r--client/map/items/leek.resbin0 -> 11769 bytes
-rw-r--r--client/map/items/leek.tscn10
-rw-r--r--client/map/items/leek_tomato_juice_pot.gd24
-rw-r--r--client/map/items/pot_fill.gd27
-rw-r--r--client/map/items/pot_fill.resbin0 -> 704 bytes
-rw-r--r--client/map/items/pot_fill.tscn12
-rw-r--r--client/map/items/slice.gd21
-rw-r--r--client/map/items/tomato_juice_pot.gd21
-rw-r--r--client/map/items/tomato_soup_pot.gd21
14 files changed, 217 insertions, 0 deletions
diff --git a/client/map/items/bread_slice.res b/client/map/items/bread_slice.res
new file mode 100644
index 00000000..f78b75ae
--- /dev/null
+++ b/client/map/items/bread_slice.res
Binary files differ
diff --git a/client/map/items/bread_slice.tscn b/client/map/items/bread_slice.tscn
new file mode 100644
index 00000000..3a435e17
--- /dev/null
+++ b/client/map/items/bread_slice.tscn
@@ -0,0 +1,9 @@
+[gd_scene load_steps=2 format=3 uid="uid://ccajf36datccs"]
+
+[ext_resource type="ArrayMesh" uid="uid://cwftutpb2lxca" path="res://map/items/bread_slice.res" id="1_yv77k"]
+
+[node name="BreadSlice" type="Node3D"]
+
+[node name="Mesh" type="MeshInstance3D" parent="."]
+mesh = ExtResource("1_yv77k")
+skeleton = NodePath("")
diff --git a/client/map/items/burned_pot.gd b/client/map/items/burned_pot.gd
new file mode 100644
index 00000000..dc749259
--- /dev/null
+++ b/client/map/items/burned_pot.gd
@@ -0,0 +1,23 @@
+# 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 BurnedPot
+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))
diff --git a/client/map/items/leek-pot.gd b/client/map/items/leek-pot.gd
new file mode 100644
index 00000000..3b16d3cf
--- /dev/null
+++ b/client/map/items/leek-pot.gd
@@ -0,0 +1,24 @@
+# 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 LeekPot
+extends Pot
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ var leek: Node3D = load("res://map/items/leek.tscn").instantiate()
+ leek.rotation_degrees = Vector3(14.5, 0, -25)
+ leek.position.x = .03
+ base.add_child(leek)
diff --git a/client/map/items/leek.gd b/client/map/items/leek.gd
new file mode 100644
index 00000000..fd74bd68
--- /dev/null
+++ b/client/map/items/leek.gd
@@ -0,0 +1,25 @@
+# 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 Leek
+extends Item
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ var leek: Node3D = load("res://map/items/leek.tscn").instantiate()
+ leek.rotation_degrees = Vector3(90, 0, 0)
+ leek.position.z = -.25
+ leek.position.y = .1
+ base.add_child(leek)
diff --git a/client/map/items/leek.res b/client/map/items/leek.res
new file mode 100644
index 00000000..4bf31849
--- /dev/null
+++ b/client/map/items/leek.res
Binary files differ
diff --git a/client/map/items/leek.tscn b/client/map/items/leek.tscn
new file mode 100644
index 00000000..1bd5a01b
--- /dev/null
+++ b/client/map/items/leek.tscn
@@ -0,0 +1,10 @@
+[gd_scene load_steps=2 format=3 uid="uid://cmpwfkdnrm6e6"]
+
+[ext_resource type="ArrayMesh" uid="uid://cix4ji823kitw" path="res://map/items/leek.res" id="1_sum7m"]
+
+[node name="Leek" type="Node3D"]
+
+[node name="leek" type="MeshInstance3D" parent="."]
+transform = Transform3D(1, 0, 0, 0, 0.75, 0, 0, 0, 1, 0, 0, 0)
+mesh = ExtResource("1_sum7m")
+skeleton = NodePath("")
diff --git a/client/map/items/leek_tomato_juice_pot.gd b/client/map/items/leek_tomato_juice_pot.gd
new file mode 100644
index 00000000..fc6cb465
--- /dev/null
+++ b/client/map/items/leek_tomato_juice_pot.gd
@@ -0,0 +1,24 @@
+# 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 LeekTomatoJuicePot
+extends TomatoJuicePot
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ var leek: Node3D = load("res://map/items/leek.tscn").instantiate()
+ leek.rotation_degrees = Vector3(14.5, 0, -25)
+ leek.position.x = .03
+ base.add_child(leek)
diff --git a/client/map/items/pot_fill.gd b/client/map/items/pot_fill.gd
new file mode 100644
index 00000000..bd262c63
--- /dev/null
+++ b/client/map/items/pot_fill.gd
@@ -0,0 +1,27 @@
+# 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 PotFill
+extends Pot
+
+var fill: MeshInstance3D = load("res://map/items/pot_fill.tscn").instantiate()
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ add_child(fill)
+
+func set_color(c: Color):
+ var mat: BaseMaterial3D = fill.get_active_material(0)
+ mat.albedo_color = c
diff --git a/client/map/items/pot_fill.res b/client/map/items/pot_fill.res
new file mode 100644
index 00000000..06c8590c
--- /dev/null
+++ b/client/map/items/pot_fill.res
Binary files differ
diff --git a/client/map/items/pot_fill.tscn b/client/map/items/pot_fill.tscn
new file mode 100644
index 00000000..2b3a1eda
--- /dev/null
+++ b/client/map/items/pot_fill.tscn
@@ -0,0 +1,12 @@
+[gd_scene load_steps=3 format=3 uid="uid://cwo8o5a6f5p4i"]
+
+[ext_resource type="ArrayMesh" uid="uid://bduftri3viodq" path="res://map/items/pot_fill.res" id="1_5suf6"]
+
+[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_djkvw"]
+resource_local_to_scene = true
+
+[node name="PotFill" type="MeshInstance3D"]
+transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
+mesh = ExtResource("1_5suf6")
+skeleton = NodePath("")
+surface_material_override/0 = SubResource("StandardMaterial3D_djkvw")
diff --git a/client/map/items/slice.gd b/client/map/items/slice.gd
new file mode 100644
index 00000000..0449689a
--- /dev/null
+++ b/client/map/items/slice.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 BreadSlice
+extends Item
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ base.add_child(load("res://map/items/bread_slice.tscn").instantiate())
diff --git a/client/map/items/tomato_juice_pot.gd b/client/map/items/tomato_juice_pot.gd
new file mode 100644
index 00000000..a27eeb1a
--- /dev/null
+++ b/client/map/items/tomato_juice_pot.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 TomatoJuicePot
+extends PotFill
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ set_color(Color(1., 0., 0.))
diff --git a/client/map/items/tomato_soup_pot.gd b/client/map/items/tomato_soup_pot.gd
new file mode 100644
index 00000000..1194fae3
--- /dev/null
+++ b/client/map/items/tomato_soup_pot.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 TomatoSoupPot
+extends PotFill
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ set_color(Color(1., .3, .2))