mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Query item info for loot drops so names display instead of IDs
This commit is contained in:
parent
7afae3e768
commit
cc6fa12157
1 changed files with 6 additions and 0 deletions
|
|
@ -3576,6 +3576,12 @@ void GameHandler::useItemById(uint32_t itemId) {
|
|||
void GameHandler::handleLootResponse(network::Packet& packet) {
|
||||
if (!LootResponseParser::parse(packet, currentLoot)) return;
|
||||
lootWindowOpen = true;
|
||||
|
||||
// Query item info so loot window can show names instead of IDs
|
||||
for (const auto& item : currentLoot.items) {
|
||||
queryItemInfo(item.itemId, 0);
|
||||
}
|
||||
|
||||
if (currentLoot.gold > 0) {
|
||||
if (state == WorldState::IN_WORLD && socket) {
|
||||
// Auto-loot gold by sending CMSG_LOOT_MONEY (server handles the rest)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue