aboutsummaryrefslogtreecommitdiff
path: root/client/map/items
diff options
context:
space:
mode:
Diffstat (limited to 'client/map/items')
-rw-r--r--client/map/items/bread_slice.gd (renamed from client/map/items/slice.gd)0
-rw-r--r--client/map/items/bread_slice_plate.gd (renamed from client/map/items/exterior_tree.gd)13
-rw-r--r--client/map/items/bread_slice_sliced_tomato_plate.gd23
-rw-r--r--client/map/items/bread_slice_sliced_tomato_steak_plate.gd23
-rw-r--r--client/map/items/bread_slice_steak_plate.gd23
-rw-r--r--client/map/items/plate.gd2
-rw-r--r--client/map/items/pot.gd2
-rw-r--r--client/map/items/sliced_tomato_plate.gd21
-rw-r--r--client/map/items/sliced_tomato_steak_plate.gd23
9 files changed, 120 insertions, 10 deletions
diff --git a/client/map/items/slice.gd b/client/map/items/bread_slice.gd
index 0449689a..0449689a 100644
--- a/client/map/items/slice.gd
+++ b/client/map/items/bread_slice.gd
diff --git a/client/map/items/exterior_tree.gd b/client/map/items/bread_slice_plate.gd
index d1e0b6b3..54a393bc 100644
--- a/client/map/items/exterior_tree.gd
+++ b/client/map/items/bread_slice_plate.gd
@@ -13,12 +13,9 @@
# 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 ExteriorTree
-extends Grass
+class_name BreadSlicePlate
+extends Plate
-func _init(rename: String, _neighbors: Array):
- super(rename, _neighbors)
- var random = RandomNumberGenerator.new()
- random.seed = rename.hash()
- var path = "res://map/tiles/tree_%s.tscn" % random.randi_range(1,5)
- base.add_child(load(path).instantiate())
+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/bread_slice_sliced_tomato_plate.gd b/client/map/items/bread_slice_sliced_tomato_plate.gd
new file mode 100644
index 00000000..63e74c21
--- /dev/null
+++ b/client/map/items/bread_slice_sliced_tomato_plate.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 BreadSliceSlicedTomatoPlate
+extends BreadSlicePlate
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ var tomato = load("res://map/items/sliced_tomato.tscn").instantiate()
+ tomato.position.y = .05
+ base.add_child(tomato)
diff --git a/client/map/items/bread_slice_sliced_tomato_steak_plate.gd b/client/map/items/bread_slice_sliced_tomato_steak_plate.gd
new file mode 100644
index 00000000..157c02e9
--- /dev/null
+++ b/client/map/items/bread_slice_sliced_tomato_steak_plate.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 BreadSliceSlicedTomatoSteakPlate
+extends BreadSliceSteakPlate
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ var tomato = load("res://map/items/sliced_tomato.tscn").instantiate()
+ tomato.position.y = .15
+ base.add_child(tomato)
diff --git a/client/map/items/bread_slice_steak_plate.gd b/client/map/items/bread_slice_steak_plate.gd
new file mode 100644
index 00000000..902cdf44
--- /dev/null
+++ b/client/map/items/bread_slice_steak_plate.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 BreadSliceSteakPlate
+extends BreadSlicePlate
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ var steak = load("res://map/items/steak.tscn").instantiate()
+ steak.position.y = .05
+ base.add_child(steak)
diff --git a/client/map/items/plate.gd b/client/map/items/plate.gd
index 91faf0b1..4431a6c8 100644
--- a/client/map/items/plate.gd
+++ b/client/map/items/plate.gd
@@ -18,7 +18,7 @@ extends Item
func _init(owned_by_: Node3D):
super(owned_by_)
- base.add_child(load("res://map/items/plate.tscn").instantiate())
+ add_child(load("res://map/items/plate.tscn").instantiate())
static func base_position() -> Vector3:
return Vector3(0., 0.015, 0.)
diff --git a/client/map/items/pot.gd b/client/map/items/pot.gd
index ac865329..89cbf4c4 100644
--- a/client/map/items/pot.gd
+++ b/client/map/items/pot.gd
@@ -20,7 +20,7 @@ var steam: CPUParticles3D = load("res://map/items/steam.tscn").instantiate()
func _init(owned_by_: Node3D):
super(owned_by_)
- base.add_child(load("res://map/items/pot.tscn").instantiate())
+ add_child(load("res://map/items/pot.tscn").instantiate())
base.add_child(steam)
func progress(p: float, warn: bool):
diff --git a/client/map/items/sliced_tomato_plate.gd b/client/map/items/sliced_tomato_plate.gd
new file mode 100644
index 00000000..e8ea2d7b
--- /dev/null
+++ b/client/map/items/sliced_tomato_plate.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 SlicedTomatoPlate
+extends Plate
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ base.add_child(load("res://map/items/sliced_tomato.tscn").instantiate())
diff --git a/client/map/items/sliced_tomato_steak_plate.gd b/client/map/items/sliced_tomato_steak_plate.gd
new file mode 100644
index 00000000..8dbb9c71
--- /dev/null
+++ b/client/map/items/sliced_tomato_steak_plate.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 SlicedTomatoSteakPlate
+extends SteakPlate
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ var tomato = load("res://map/items/sliced_tomato.tscn").instantiate()
+ tomato.position.y = .1
+ base.add_child(tomato)