tools separated in inv
This commit is contained in:
@@ -41,13 +41,13 @@ func card_info() -> CardInfo:
|
||||
return item.card_info()
|
||||
|
||||
func interact(player : Player) -> bool:
|
||||
await pickup_animation(player)
|
||||
|
||||
queue_free()
|
||||
if player.can_pick_item(item):
|
||||
await pickup_animation(player)
|
||||
queue_free()
|
||||
player.pick_item(item)
|
||||
return true
|
||||
|
||||
player.pick_item(item)
|
||||
|
||||
return true
|
||||
return false
|
||||
|
||||
func pickup_animation(player : Player):
|
||||
available = false
|
||||
|
||||
Reference in New Issue
Block a user