From a3a4e6f2da74c9dd5231269001139071cedf5d55 Mon Sep 17 00:00:00 2001 From: nokoe Date: Sun, 23 Jun 2024 00:25:19 +0200 Subject: add progress --- client/scripts/tiles/floor.gd | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client/scripts/tiles') diff --git a/client/scripts/tiles/floor.gd b/client/scripts/tiles/floor.gd index 0c4af8a0..380f3d6d 100644 --- a/client/scripts/tiles/floor.gd +++ b/client/scripts/tiles/floor.gd @@ -41,6 +41,14 @@ static func interact_target() -> Vector3: func interact(): pass +func progress(p: float, warn: bool): + if item != null: + item.progress(p, warn) + +func finish(warn: bool): + if item != null: + item.finish(warn) + func put_item(i: Item): if item != null: push_error("already holding an item") -- cgit v1.2.3-70-g09d2