diff options
author | nokoe <nokoe@mailbox.org> | 2025-10-06 22:38:42 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2025-10-06 22:38:42 +0200 |
commit | 094417b7d289ff477670ffed6023dfdb55d73d00 (patch) | |
tree | 648c1232f1fc36148966e570c5317bfcd7dc9d82 /client/map/items/item.gd | |
parent | fc4de182fa5c9afca17069f09f362109c0a957a2 (diff) | |
download | hurrycurry-094417b7d289ff477670ffed6023dfdb55d73d00.tar hurrycurry-094417b7d289ff477670ffed6023dfdb55d73d00.tar.bz2 hurrycurry-094417b7d289ff477670ffed6023dfdb55d73d00.tar.zst |
add height property to item, replace static function
Diffstat (limited to 'client/map/items/item.gd')
-rw-r--r-- | client/map/items/item.gd | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client/map/items/item.gd b/client/map/items/item.gd index 44482c9b..39c7afc1 100644 --- a/client/map/items/item.gd +++ b/client/map/items/item.gd @@ -24,6 +24,7 @@ var owned_by: Node3D var base: Node3D = Node3D.new() var rotation_target: float = 0. var position_target: Vector3 = Vector3(0., 0., 0.) +var height: float = 0.1 var progress_instance: Progress3D = preload("res://map/progress/progress.tscn").instantiate() var take_sound: PlayRandom = preload("res://audio/play_random.tscn").instantiate() @@ -145,6 +146,3 @@ func put(): static func base_position() -> Vector3: return Vector3(0., 0., 0.) - -static func height() -> float: - return .1 |