aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/generic_item.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2025-10-06 22:38:42 +0200
committernokoe <nokoe@mailbox.org>2025-10-06 22:38:42 +0200
commit094417b7d289ff477670ffed6023dfdb55d73d00 (patch)
tree648c1232f1fc36148966e570c5317bfcd7dc9d82 /client/map/items/generic_item.gd
parentfc4de182fa5c9afca17069f09f362109c0a957a2 (diff)
downloadhurrycurry-094417b7d289ff477670ffed6023dfdb55d73d00.tar
hurrycurry-094417b7d289ff477670ffed6023dfdb55d73d00.tar.bz2
hurrycurry-094417b7d289ff477670ffed6023dfdb55d73d00.tar.zst
add height property to item, replace static function
Diffstat (limited to 'client/map/items/generic_item.gd')
-rw-r--r--client/map/items/generic_item.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/map/items/generic_item.gd b/client/map/items/generic_item.gd
index fd119feb..5f101646 100644
--- a/client/map/items/generic_item.gd
+++ b/client/map/items/generic_item.gd
@@ -16,6 +16,7 @@
class_name GenericItem
extends Item
-func _init(owned_by_: Node3D, scene: PackedScene):
+func _init(owned_by_: Node3D, scene: PackedScene, height_: float = height):
super(owned_by_)
+ height = height_
base.add_child(scene.instantiate())