Mob visuals

This commit is contained in:
dingo
2025-12-27 21:34:54 -05:00
parent 04e3b88df9
commit f20e5290ee
5 changed files with 331 additions and 30 deletions
+2 -2
View File
@@ -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)