From 851b283d4ac2a4218f2863838c3aeb137e8fa179 Mon Sep 17 00:00:00 2001 From: tpart Date: Mon, 16 Sep 2024 12:49:03 +0200 Subject: Remove legacy items --- client/map/item_factory.gd | 2 -- client/map/items/bread.gd | 34 ---------------------------------- client/map/items/bread.res | Bin 7285 -> 0 bytes client/map/items/bread.tscn | 10 ---------- client/map/items/bread_slice.gd | 21 --------------------- client/map/items/bread_slice.res | Bin 5169 -> 0 bytes client/map/items/bread_slice.tscn | 9 --------- 7 files changed, 76 deletions(-) delete mode 100644 client/map/items/bread.gd delete mode 100644 client/map/items/bread.res delete mode 100644 client/map/items/bread.tscn delete mode 100644 client/map/items/bread_slice.gd delete mode 100644 client/map/items/bread_slice.res delete mode 100644 client/map/items/bread_slice.tscn (limited to 'client') diff --git a/client/map/item_factory.gd b/client/map/item_factory.gd index 2c77eb43..0d09fd95 100644 --- a/client/map/item_factory.gd +++ b/client/map/item_factory.gd @@ -24,12 +24,10 @@ static func produce(full_name: String, owned_by: Node3D) -> Item: var contents = c[1].split(",") if c.size() > 1 else [] match name: - # "bread-slice": return BreadSlice.new(owned_by) "bun": return Bun.new(owned_by) "sliced-bun": return SlicedBun.new(owned_by) "sliced-bun-top": return SlicedBunTop.new(owned_by) "sliced-bun-bottom": return SlicedBunBottom.new(owned_by) - "bread": return Bread.new(owned_by) "burned": return Burned.new(owned_by) "coconut": return Coconut.new(owned_by) "dough": return Dough.new(owned_by) diff --git a/client/map/items/bread.gd b/client/map/items/bread.gd deleted file mode 100644 index a3c109e1..00000000 --- a/client/map/items/bread.gd +++ /dev/null @@ -1,34 +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 . -# -class_name Bread -extends Item - -var steam: CPUParticles3D = preload("res://map/items/steam.tscn").instantiate() - -func _init(owned_by_: Node3D): - super(owned_by_) - base.add_child(load("res://map/items/bread.tscn").instantiate()) - steam.position.y += .1 - steam.color = Color(.6, .6, .6, .4) - base.add_child(steam) - -func progress(position_: float, speed: float, warn: bool): - super(position_, speed, warn) - steam.emitting = warn - -func finish(): - super() - steam.emitting = false diff --git a/client/map/items/bread.res b/client/map/items/bread.res deleted file mode 100644 index 4fe2dd65..00000000 Binary files a/client/map/items/bread.res and /dev/null differ diff --git a/client/map/items/bread.tscn b/client/map/items/bread.tscn deleted file mode 100644 index a787bb44..00000000 --- a/client/map/items/bread.tscn +++ /dev/null @@ -1,10 +0,0 @@ -[gd_scene load_steps=2 format=3 uid="uid://dsrhcbmij58ck"] - -[ext_resource type="ArrayMesh" uid="uid://cuym17dskutc8" path="res://map/items/bread.res" id="1_0eevh"] - -[node name="Bread" type="Node3D"] - -[node name="Mesh" type="MeshInstance3D" parent="."] -transform = Transform3D(0.75, 0, 0, 0, 0.75, 0, 0, 0, 0.75, 0, 0, 0) -mesh = ExtResource("1_0eevh") -skeleton = NodePath("") diff --git a/client/map/items/bread_slice.gd b/client/map/items/bread_slice.gd deleted file mode 100644 index f74b0058..00000000 --- a/client/map/items/bread_slice.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 . -# -class_name BreadSlice -extends Item - -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.res b/client/map/items/bread_slice.res deleted file mode 100644 index f78b75ae..00000000 Binary files a/client/map/items/bread_slice.res and /dev/null differ diff --git a/client/map/items/bread_slice.tscn b/client/map/items/bread_slice.tscn deleted file mode 100644 index 3a435e17..00000000 --- a/client/map/items/bread_slice.tscn +++ /dev/null @@ -1,9 +0,0 @@ -[gd_scene load_steps=2 format=3 uid="uid://ccajf36datccs"] - -[ext_resource type="ArrayMesh" uid="uid://cwftutpb2lxca" path="res://map/items/bread_slice.res" id="1_yv77k"] - -[node name="BreadSlice" type="Node3D"] - -[node name="Mesh" type="MeshInstance3D" parent="."] -mesh = ExtResource("1_yv77k") -skeleton = NodePath("") -- cgit v1.2.3-70-g09d2