aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/tomato.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2025-10-06 23:00:57 +0200
committernokoe <nokoe@mailbox.org>2025-10-06 23:00:57 +0200
commitd0bc8f954789a26817997d8349487514df1dad7e (patch)
tree816a8ee1c9c26f39d6aa2c4f17eb5a69127e3a81 /client/map/items/tomato.gd
parentc1d1e6d0a0be5759d11ac562715b90bcbc329fbc (diff)
downloadhurrycurry-d0bc8f954789a26817997d8349487514df1dad7e.tar
hurrycurry-d0bc8f954789a26817997d8349487514df1dad7e.tar.bz2
hurrycurry-d0bc8f954789a26817997d8349487514df1dad7e.tar.zst
cuttable class; splash when cutting steak
Diffstat (limited to 'client/map/items/tomato.gd')
-rw-r--r--client/map/items/tomato.gd29
1 files changed, 0 insertions, 29 deletions
diff --git a/client/map/items/tomato.gd b/client/map/items/tomato.gd
deleted file mode 100644
index 4782010f..00000000
--- a/client/map/items/tomato.gd
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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 Tomato
-extends Item
-
-var cut: CPUParticles3D = load("res://map/items/cut.tscn").instantiate()
-
-func _init(owned_by_: Node3D):
- super(owned_by_)
- base.add_child(load("res://map/items/tomato.tscn").instantiate())
- base.add_child(cut)
- cut.color = Color(1., 0., 0.)
-
-func progress(position_: float, speed: float, warn: bool):
- super(position_, speed, warn)
- cut.emitting = speed > 0