résolution du bug de swap d'item #94
This commit is contained in:
@@ -127,6 +127,9 @@ func try_move(move_to : Vector2):
|
||||
|
||||
func pick_item(item : Item) -> Item:
|
||||
play_sfx("pick")
|
||||
if inventory.is_full():
|
||||
drop_item()
|
||||
|
||||
var available_slot_ind = inventory.get_best_available_slot_ind()
|
||||
if available_slot_ind == inventory.current_item_ind && inventory.items[available_slot_ind] != null:
|
||||
var current_item : Item = inventory.get_item()
|
||||
|
||||
Reference in New Issue
Block a user