Mob visuals
This commit is contained in:
@@ -270,7 +270,7 @@ func _on_inventory_gui_input(event: InputEvent, slot_index: int):
|
||||
# Check if we should equip or use
|
||||
var drag_item = DragManager.get_drag_item()
|
||||
var item_type = drag_item.get("type", drag_item.get("Type", ""))
|
||||
|
||||
GameState.send_use_item(slot_index)
|
||||
# If released over same slot or no target, treat as click
|
||||
# For now, just end the drag
|
||||
DragManager.end_drag()
|
||||
@@ -282,7 +282,7 @@ func _on_inventory_gui_input(event: InputEvent, slot_index: int):
|
||||
var item_type = item.get("type", item.get("Type", ""))
|
||||
if item_type == "Consumable":
|
||||
# Use consumable on right click
|
||||
GameState.send_use_item(slot_index)
|
||||
_show_hotbar_menu(slot_index)
|
||||
elif item_type in ["Weapon", "Armor", "Accessory"]:
|
||||
# Equip on right click
|
||||
GameState.send_equip_item(slot_index)
|
||||
|
||||
Reference in New Issue
Block a user