diff options
| author | tpart <tpart120@proton.me> | 2025-10-09 21:05:15 +0200 |
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2025-10-09 21:05:23 +0200 |
| commit | 45c771e0ebbc08e6d9021e77bcd116fcb8079134 (patch) | |
| tree | bc4cda24050a7b30b2271d1f0f3147025790592a /client/map/items | |
| parent | 0134c4163fc6aba1aad8e0e8a5800b4967143bdb (diff) | |
| download | hurrycurry-45c771e0ebbc08e6d9021e77bcd116fcb8079134.tar hurrycurry-45c771e0ebbc08e6d9021e77bcd116fcb8079134.tar.bz2 hurrycurry-45c771e0ebbc08e6d9021e77bcd116fcb8079134.tar.zst | |
Add raw cheese pizza (#393)
Diffstat (limited to 'client/map/items')
| -rw-r--r-- | client/map/items/cheese_bit.res | bin | 0 -> 2156 bytes | |||
| -rw-r--r-- | client/map/items/raw_cheese_pizza.tscn | 31 | ||||
| -rw-r--r-- | client/map/items/raw_pizza.tscn | 2 | ||||
| -rw-r--r-- | client/map/items/rolled_dough.gd | 3 |
4 files changed, 35 insertions, 1 deletions
diff --git a/client/map/items/cheese_bit.res b/client/map/items/cheese_bit.res Binary files differnew file mode 100644 index 00000000..56d81add --- /dev/null +++ b/client/map/items/cheese_bit.res diff --git a/client/map/items/raw_cheese_pizza.tscn b/client/map/items/raw_cheese_pizza.tscn new file mode 100644 index 00000000..9daa8fda --- /dev/null +++ b/client/map/items/raw_cheese_pizza.tscn @@ -0,0 +1,31 @@ +[gd_scene load_steps=3 format=3 uid="uid://746ly6kg6fym"] + +[ext_resource type="ArrayMesh" uid="uid://cwstqugiw76tc" path="res://map/items/raw_pizza.res" id="1_nsa0n"] +[ext_resource type="ArrayMesh" uid="uid://68yn4bguhuq3" path="res://map/items/cheese_bit.res" id="2_7p5p4"] + +[node name="RawCheesePizza" type="Node3D"] + +[node name="Mesh" type="MeshInstance3D" parent="."] +transform = Transform3D(0.3, 0, 0, 0, 0.05, 0, 0, 0, 0.3, 0, 0.05, 0) +mesh = ExtResource("1_nsa0n") +skeleton = NodePath("") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +transform = Transform3D(0.7090622, 0, 0.24439889, 0, 0.5, 0, -0.24439889, 0, 0.7090622, 0, 0.0901646, 0) +mesh = ExtResource("2_7p5p4") + +[node name="MeshInstance3D2" type="MeshInstance3D" parent="."] +transform = Transform3D(0.26293755, 0, -0.70239866, 0, 0.5, 0, 0.70239866, 0, 0.26293755, -0.13107976, 0.0901646, -0.08822491) +mesh = ExtResource("2_7p5p4") + +[node name="MeshInstance3D3" type="MeshInstance3D" parent="."] +transform = Transform3D(0.59963775, 0, -0.4504826, 0, 0.5, 0, 0.4504826, 0, 0.59963775, -0.1088517, 0.0901646, 0.09697052) +mesh = ExtResource("2_7p5p4") + +[node name="MeshInstance3D4" type="MeshInstance3D" parent="."] +transform = Transform3D(-0.025716748, 0, 0.7495589, 0, 0.5, 0, -0.7495589, 0, -0.025716748, 0.09534076, 0.0901646, 0.10794736) +mesh = ExtResource("2_7p5p4") + +[node name="MeshInstance3D5" type="MeshInstance3D" parent="."] +transform = Transform3D(0.5133626, 0, 0.5467713, 0, 0.5, 0, -0.5467713, 0, 0.5133626, 0.09534076, 0.0901646, -0.14092311) +mesh = ExtResource("2_7p5p4") diff --git a/client/map/items/raw_pizza.tscn b/client/map/items/raw_pizza.tscn index 0cd00992..adc7c70d 100644 --- a/client/map/items/raw_pizza.tscn +++ b/client/map/items/raw_pizza.tscn @@ -2,7 +2,7 @@ [ext_resource type="ArrayMesh" uid="uid://cwstqugiw76tc" path="res://map/items/raw_pizza.res" id="1_lcgk8"] -[node name="Pizza" type="Node3D"] +[node name="RawPizza" type="Node3D"] [node name="Mesh" type="MeshInstance3D" parent="."] transform = Transform3D(0.3, 0, 0, 0, 0.05, 0, 0, 0, 0.3, 0, 0.05, 0) diff --git a/client/map/items/rolled_dough.gd b/client/map/items/rolled_dough.gd index 55f97ccb..691d8a35 100644 --- a/client/map/items/rolled_dough.gd +++ b/client/map/items/rolled_dough.gd @@ -28,6 +28,9 @@ func add_contents(contents: Array[String]): if contents == ["tomato-juice"]: base.add_child(load("res://map/items/raw_pizza.tscn").instantiate()) return + if contents == ["sliced-cheese","tomato-juice"]: + base.add_child(load("res://map/items/raw_cheese_pizza.tscn").instantiate()) + return base.add_child(load("res://map/items/rolled_dough.tscn").instantiate()) base.add_child(UnknownItem.new(owned_by, ",".join(contents))) |