diff options
-rw-r--r-- | client/map/item_factory.gd | 1 | ||||
-rw-r--r-- | client/map/items/cooked_noodles.gd | 21 | ||||
-rw-r--r-- | client/map/items/cooked_noodles.gd.uid | 1 | ||||
-rw-r--r-- | client/map/items/cooked_noodles.res | bin | 0 -> 28962 bytes | |||
-rw-r--r-- | client/map/items/cooked_noodles.tscn | 10 |
5 files changed, 33 insertions, 0 deletions
diff --git a/client/map/item_factory.gd b/client/map/item_factory.gd index 904160f0..4818dd5f 100644 --- a/client/map/item_factory.gd +++ b/client/map/item_factory.gd @@ -31,6 +31,7 @@ static func produce(full_name: String, owned_by: Node3D) -> Item: match item.name: "bun": return Bun.new(owned_by) "cheese": return Cheese.new(owned_by) + "cooked-noodles": return CookedNoodles.new(owned_by) "sliced-cheese": return SlicedCheese.new(owned_by) "dirt": return Dirt.new(owned_by) "sliced-bun": return SlicedBun.new(owned_by) diff --git a/client/map/items/cooked_noodles.gd b/client/map/items/cooked_noodles.gd new file mode 100644 index 00000000..61127c3d --- /dev/null +++ b/client/map/items/cooked_noodles.gd @@ -0,0 +1,21 @@ +# Hurry Curry! - a game about cooking +# Copyright (C) 2025 Hurry Curry! contributors +# +# 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 CookedNoodles +extends Item + +func _init(owned_by_: Node3D): + super(owned_by_) + base.add_child(load("res://map/items/cooked_noodles.tscn").instantiate()) diff --git a/client/map/items/cooked_noodles.gd.uid b/client/map/items/cooked_noodles.gd.uid new file mode 100644 index 00000000..22d492d1 --- /dev/null +++ b/client/map/items/cooked_noodles.gd.uid @@ -0,0 +1 @@ +uid://daq274orgski5 diff --git a/client/map/items/cooked_noodles.res b/client/map/items/cooked_noodles.res Binary files differnew file mode 100644 index 00000000..7fc3be3f --- /dev/null +++ b/client/map/items/cooked_noodles.res diff --git a/client/map/items/cooked_noodles.tscn b/client/map/items/cooked_noodles.tscn new file mode 100644 index 00000000..419e5eaa --- /dev/null +++ b/client/map/items/cooked_noodles.tscn @@ -0,0 +1,10 @@ +[gd_scene load_steps=2 format=3 uid="uid://ct4f8jtnvfn56"] + +[ext_resource type="ArrayMesh" uid="uid://cwhr8luqwpo7a" path="res://map/items/cooked_noodles.res" id="1_ahfxi"] + +[node name="CookedNoodles" type="Node3D"] + +[node name="Mesh" type="MeshInstance3D" parent="."] +transform = Transform3D(0.378, 0, 0, 0, 0.378, 0, 0, 0, 0.378, -0.027, 0, 0.095) +mesh = ExtResource("1_ahfxi") +skeleton = NodePath("") |