Mob looting fix and dungeon closure.

This commit is contained in:
dingo
2026-01-25 18:04:47 -05:00
parent 85c95e9f6a
commit c1a97b219e
8 changed files with 157 additions and 65 deletions
+2 -2
View File
@@ -205,8 +205,8 @@ func _take_item(slot_index: int):
GameState.take_mob_loot_item(current_mob_id, slot_index)
print("[MobLootUI] Taking item at index %d from mob %d" % [slot_index, current_mob_id])
# Clear slot locally (server will update inventory)
_clear_slot(loot_slots[slot_index])
# Don't clear locally - wait for server to send updated loot state
# The server will send MOB_LOOT_STATE with remaining items
func _on_take_all():
if current_mob_id < 0: