From 846ba58d2e45f71a28edb1f568c439671bcf9c17 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 10 Mar 2026 07:45:53 -0700 Subject: [PATCH] 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. --- src/game/game_handler.cpp | 9 ++++++--- src/ui/game_screen.cpp | 11 +++++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 21bc04c0..23231ae7 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -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, ": ", diff --git a/src/ui/game_screen.cpp b/src/ui/game_screen.cpp index dffffbdc..ce441435 100644 --- a/src/ui/game_screen.cpp +++ b/src/ui/game_screen.cpp @@ -4687,8 +4687,15 @@ void GameScreen::renderQuestObjectiveTracker(game::GameHandler& gameHandler) { } else { // Kill counts for (const auto& [entry, progress] : q.killCounts) { - ImGui::TextColored(ImVec4(0.75f, 0.75f, 0.75f, 1.0f), - " %u/%u", progress.first, progress.second); + std::string creatureName = gameHandler.getCachedCreatureName(entry); + if (!creatureName.empty()) { + ImGui::TextColored(ImVec4(0.75f, 0.75f, 0.75f, 1.0f), + " %s: %u/%u", creatureName.c_str(), + progress.first, progress.second); + } else { + ImGui::TextColored(ImVec4(0.75f, 0.75f, 0.75f, 1.0f), + " %u/%u", progress.first, progress.second); + } } // Item counts for (const auto& [itemId, count] : q.itemCounts) {