refonte de l'inventaire en 3D et nettoyage des prints
This commit is contained in:
@@ -37,7 +37,9 @@ func _input(_event):
|
||||
player.drop_item()
|
||||
|
||||
if Input.is_action_just_pressed("action"):
|
||||
if can_interact:
|
||||
if current_inspect is InventoryGuiItemMouseDetector:
|
||||
GameInfo.game_data.player_data.inventory.set_current_item(inspected.index)
|
||||
elif can_interact:
|
||||
var interactable = current_inspect as Interactable
|
||||
player.try_interact(interactable)
|
||||
elif can_use_item:
|
||||
@@ -91,8 +93,8 @@ func inspect(node: Node):
|
||||
inspected = node
|
||||
if inspected is InspectableEntity:
|
||||
inspected_card_info = inspected.card_info()
|
||||
elif inspected is InventoryGuiItem and inspected.item != null:
|
||||
inspected_card_info = inspected.item.card_info()
|
||||
elif inspected is InventoryGuiItemMouseDetector:
|
||||
inspected_card_info = inspected.card_info()
|
||||
elif inspected is RegionPoint:
|
||||
inspected_card_info = inspected.card_info()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user