diff options
Diffstat (limited to 'client/player')
-rw-r--r-- | client/player/player.gd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/player/player.gd b/client/player/player.gd index 6962744c..31a7a337 100644 --- a/client/player/player.gd +++ b/client/player/player.gd @@ -45,6 +45,7 @@ var hand: Item = null var hand_base: Node3D = Node3D.new() var character_idx: int var is_customer: bool +var current_item_message = null var _anim_angle: float = 0.0 @@ -148,10 +149,12 @@ func clear_message(): item_bubble.remove_item() chat_bubble.remove_text() effect.clear_effect() + current_item_message = null func item_message(item_name: String, timeout_initial: float, timeout_remaining: float): item_bubble.set_item(item_name, timeout_initial, timeout_remaining) clear_timer.start(timeout_remaining) + current_item_message = item_name func text_message(m: String, _timeout_initial: float, timeout_remaining: float): chat_bubble.set_text(m) |