aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/plate.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/map/items/plate.gd')
-rw-r--r--client/map/items/plate.gd6
1 files changed, 2 insertions, 4 deletions
diff --git a/client/map/items/plate.gd b/client/map/items/plate.gd
index b4ae8baf..e5b86df2 100644
--- a/client/map/items/plate.gd
+++ b/client/map/items/plate.gd
@@ -18,6 +18,7 @@ extends Item
func _init(owned_by_: Node3D):
super(owned_by_)
+ height = .05
add_child(load("res://map/items/plate.tscn").instantiate())
func add_contents(contents: Array[String]):
@@ -69,7 +70,7 @@ func add_contents(contents: Array[String]):
base.add_child(item)
item.position.y = height_sum
@warning_ignore("static_called_on_instance")
- height_sum += item.height()
+ height_sum += item.height
func setup_sounds():
take_sound.setup([preload("res://map/items/sounds/plate_take.ogg")])
@@ -77,6 +78,3 @@ func setup_sounds():
static func base_position() -> Vector3:
return Vector3(0., .025, 0.)
-
-static func height() -> float:
- return .05