diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/map/item_factory.gd | 20 | ||||
-rw-r--r-- | client/map/items/bread_slice_plate.gd | 21 | ||||
-rw-r--r-- | client/map/items/bread_slice_sliced_tomato_plate.gd | 23 | ||||
-rw-r--r-- | client/map/items/bread_slice_sliced_tomato_steak_plate.gd | 23 | ||||
-rw-r--r-- | client/map/items/bread_slice_steak_plate.gd | 23 | ||||
-rw-r--r-- | client/map/items/dirty_plate.gd | 21 | ||||
-rw-r--r-- | client/map/items/nigiri_plate.gd | 21 | ||||
-rw-r--r-- | client/map/items/plate_items.gd | 75 | ||||
-rw-r--r-- | client/map/items/sliced_tomato_plate.gd | 21 | ||||
-rw-r--r-- | client/map/items/sliced_tomato_steak_plate.gd | 23 | ||||
-rw-r--r-- | client/map/items/steak_plate.gd | 21 | ||||
-rw-r--r-- | client/map/items/tomato_soup_plate.gd | 21 |
12 files changed, 85 insertions, 228 deletions
diff --git a/client/map/item_factory.gd b/client/map/item_factory.gd index 6b13883a..27f6ce7c 100644 --- a/client/map/item_factory.gd +++ b/client/map/item_factory.gd @@ -22,7 +22,7 @@ static func produce(name: String, owned_by: Node3D) -> Item: "plate": return Plate.new(owned_by) "dirty-plate": - return DirtyPlate.new(owned_by) + return PlateItems.DirtyP.new(owned_by) "tomato": return Tomato.new(owned_by) "raw-steak": @@ -36,7 +36,7 @@ static func produce(name: String, owned_by: Node3D) -> Item: "steak-pot": return PotItems.SteakP.new(owned_by) "steak-plate": - return SteakPlate.new(owned_by) + return PlateItems.SteakP.new(owned_by) "foodprocessor": return FoodProcessor.new(owned_by) "tomato-foodprocessor": @@ -68,21 +68,21 @@ static func produce(name: String, owned_by: Node3D) -> Item: "tomato-soup-pot": return PotItems.TomatoSoupP.new(owned_by) "tomato-soup-plate": - return TomatoSoupPlate.new(owned_by) + return PlateItems.TomatoSoupP.new(owned_by) "burned": return Burned.new(owned_by) "bread-slice-plate": - return BreadSlicePlate.new(owned_by) + return PlateItems.BreadSliceP.new(owned_by) "bread-slice-steak-plate": - return BreadSliceSteakPlate.new(owned_by) + return PlateItems.BreadSliceSteakP.new(owned_by) "bread-slice-sliced-tomato-plate": - return BreadSliceSlicedTomatoPlate.new(owned_by) + return PlateItems.BreadSliceSlicedTomatoP.new(owned_by) "bread-slice-sliced-tomato-steak-plate": - return BreadSliceSlicedTomatoSteakPlate.new(owned_by) + return PlateItems.BreadSliceSlicedTomatoSteakP.new(owned_by) "sliced-tomato-plate": - return SlicedTomatoPlate.new(owned_by) + return PlateItems.SlicedTomatoP.new(owned_by) "sliced-tomato-steak-plate": - return SlicedTomatoSteakPlate.new(owned_by) + return PlateItems.SlicedTomatoSteakP.new(owned_by) "fish": return Fish.new(owned_by) "sliced-fish": @@ -104,7 +104,7 @@ static func produce(name: String, owned_by: Node3D) -> Item: "nigiri": return Nigiri.new(owned_by) "nigiri-plate": - return NigiriPlate.new(owned_by) + return PlateItems.NigiriP.new(owned_by) "coconut": return Coconut.new(owned_by) "coconut-foodprocessor": 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)) |