diff options
author | nokoe <nokoe@mailbox.org> | 2024-06-23 00:25:19 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-23 19:31:29 +0200 |
commit | a3a4e6f2da74c9dd5231269001139071cedf5d55 (patch) | |
tree | 767882f1d0d43b406f1b67b50f193b14101436c9 /client/scripts/tiles | |
parent | 04cc939e31ec57b83f811022d408bacfc40ca627 (diff) | |
download | hurrycurry-a3a4e6f2da74c9dd5231269001139071cedf5d55.tar hurrycurry-a3a4e6f2da74c9dd5231269001139071cedf5d55.tar.bz2 hurrycurry-a3a4e6f2da74c9dd5231269001139071cedf5d55.tar.zst |
add progress
Diffstat (limited to 'client/scripts/tiles')
-rw-r--r-- | client/scripts/tiles/floor.gd | 8 |
1 files changed, 8 insertions, 0 deletions
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") |