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_plate.gd21
-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/dirty_plate.gd21
-rw-r--r--client/map/items/nigiri_plate.gd21
-rw-r--r--client/map/items/plate_items.gd75
-rw-r--r--client/map/items/sliced_tomato_plate.gd21
-rw-r--r--client/map/items/sliced_tomato_steak_plate.gd23
-rw-r--r--client/map/items/steak_plate.gd21
-rw-r--r--client/map/items/tomato_soup_plate.gd21
11 files changed, 75 insertions, 218 deletions
diff --git a/client/map/items/bread_slice_plate.gd b/client/map/items/bread_slice_plate.gd
deleted file mode 100644
index f222b7c2..00000000
--- a/client/map/items/bread_slice_plate.gd
+++ /dev/null
@@ -1,21 +0,0 @@
-# Hurry Curry! - 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 BreadSlicePlate
-extends Plate
-
-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
deleted file mode 100644
index 4dc59897..00000000
--- a/client/map/items/bread_slice_sliced_tomato_plate.gd
+++ /dev/null
@@ -1,23 +0,0 @@
-# Hurry Curry! - 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
deleted file mode 100644
index 963c2892..00000000
--- a/client/map/items/bread_slice_sliced_tomato_steak_plate.gd
+++ /dev/null
@@ -1,23 +0,0 @@
-# Hurry Curry! - 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
deleted file mode 100644
index d6bca18f..00000000
--- a/client/map/items/bread_slice_steak_plate.gd
+++ /dev/null
@@ -1,23 +0,0 @@
-# Hurry Curry! - 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/dirty_plate.gd b/client/map/items/dirty_plate.gd
deleted file mode 100644
index 859d6b35..00000000
--- a/client/map/items/dirty_plate.gd
+++ /dev/null
@@ -1,21 +0,0 @@
-# Hurry Curry! - 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 DirtyPlate
-extends Plate
-
-func _init(owned_by_: Node3D):
- super(owned_by_)
- base.add_child(load("res://map/items/dirt.tscn").instantiate())
diff --git a/client/map/items/nigiri_plate.gd b/client/map/items/nigiri_plate.gd
deleted file mode 100644
index 210803d3..00000000
--- a/client/map/items/nigiri_plate.gd
+++ /dev/null
@@ -1,21 +0,0 @@
-# Hurry Curry! - 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 NigiriPlate
-extends Plate
-
-func _init(owned_by_: Node3D):
- super(owned_by_)
- base.add_child(load("res://map/items/nigiri.tscn").instantiate())
diff --git a/client/map/items/plate_items.gd b/client/map/items/plate_items.gd
new file mode 100644
index 00000000..c1f4df37
--- /dev/null
+++ b/client/map/items/plate_items.gd
@@ -0,0 +1,75 @@
+# 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 PlateItems
+
+class BreadSliceP extends Plate:
+ func _init(owned_by_: Node3D):
+ super(owned_by_)
+ base.add_child(load("res://map/items/bread_slice.tscn").instantiate())
+
+class BreadSliceSlicedTomatoP extends BreadSliceP:
+ 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)
+
+class BreadSliceSlicedTomatoSteakP extends BreadSliceSteakP:
+ 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)
+
+class BreadSliceSteakP extends BreadSliceP:
+ 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)
+
+class DirtyP extends Plate:
+ func _init(owned_by_: Node3D):
+ super(owned_by_)
+ base.add_child(load("res://map/items/dirt.tscn").instantiate())
+
+class SlicedTomatoP extends Plate:
+ func _init(owned_by_: Node3D):
+ super(owned_by_)
+ base.add_child(load("res://map/items/sliced_tomato.tscn").instantiate())
+
+class SlicedTomatoSteakP extends SteakP:
+ 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)
+
+class SteakP extends Plate:
+ func _init(owned_by_: Node3D):
+ super(owned_by_)
+ base.add_child(load("res://map/items/steak.tscn").instantiate())
+
+class TomatoSoupP extends PlateFill:
+ func _init(owned_by_: Node3D):
+ super(owned_by_)
+ set_color(Color(1., .3, .2))
+
+class NigiriP extends Plate:
+ func _init(owned_by_: Node3D):
+ super(owned_by_)
+ base.add_child(load("res://map/items/nigiri.tscn").instantiate())
diff --git a/client/map/items/sliced_tomato_plate.gd b/client/map/items/sliced_tomato_plate.gd
deleted file mode 100644
index 061a4d1f..00000000
--- a/client/map/items/sliced_tomato_plate.gd
+++ /dev/null
@@ -1,21 +0,0 @@
-# Hurry Curry! - 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
deleted file mode 100644
index 3d8070f0..00000000
--- a/client/map/items/sliced_tomato_steak_plate.gd
+++ /dev/null
@@ -1,23 +0,0 @@
-# Hurry Curry! - 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)
diff --git a/client/map/items/steak_plate.gd b/client/map/items/steak_plate.gd
deleted file mode 100644
index 6ff91420..00000000
--- a/client/map/items/steak_plate.gd
+++ /dev/null
@@ -1,21 +0,0 @@
-# Hurry Curry! - 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 SteakPlate
-extends Plate
-
-func _init(owned_by_: Node3D):
- super(owned_by_)
- base.add_child(load("res://map/items/steak.tscn").instantiate())
diff --git a/client/map/items/tomato_soup_plate.gd b/client/map/items/tomato_soup_plate.gd
deleted file mode 100644
index c5ec9312..00000000
--- a/client/map/items/tomato_soup_plate.gd
+++ /dev/null
@@ -1,21 +0,0 @@
-# Hurry Curry! - 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 TomatoSoupPlate
-extends PlateFill
-
-func _init(owned_by_: Node3D):
- super(owned_by_)
- set_color(Color(1., .3, .2))