mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
ui,game: show creature names in quest kill count tracker and progress messages
Quest kill count tracker in the HUD now resolves creature names from the cached creature query results and displays them as "Name: x/y" instead of bare "x/y". The system chat progress message on kill also includes the creature name when available, matching retail client behavior.
This commit is contained in:
parent
03c4d59592
commit
846ba58d2e
2 changed files with 15 additions and 5 deletions
|
|
@ -3994,9 +3994,12 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
}
|
||||
quest.killCounts[entry] = {count, reqCount};
|
||||
|
||||
std::string progressMsg = quest.title + ": " +
|
||||
std::to_string(count) + "/" +
|
||||
std::to_string(reqCount);
|
||||
std::string creatureName = getCachedCreatureName(entry);
|
||||
std::string progressMsg = quest.title + ": ";
|
||||
if (!creatureName.empty()) {
|
||||
progressMsg += creatureName + " ";
|
||||
}
|
||||
progressMsg += std::to_string(count) + "/" + std::to_string(reqCount);
|
||||
addSystemChatMessage(progressMsg);
|
||||
|
||||
LOG_INFO("Updated kill count for quest ", questId, ": ",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue