From 2859c953725e15b78fbc54617fbbfb1983bf9dac Mon Sep 17 00:00:00 2001 From: Kelsi Date: Fri, 6 Feb 2026 16:53:09 -0800 Subject: [PATCH] Make killXp public for level-based mob coloring in UI --- include/game/game_handler.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/game/game_handler.hpp b/include/game/game_handler.hpp index 01502483..5125420d 100644 --- a/include/game/game_handler.hpp +++ b/include/game/game_handler.hpp @@ -279,6 +279,7 @@ public: uint32_t getPlayerXp() const { return playerXp_; } uint32_t getPlayerNextLevelXp() const { return playerNextLevelXp_; } uint32_t getPlayerLevel() const { return singlePlayerMode_ ? localPlayerLevel_ : serverPlayerLevel_; } + static uint32_t killXp(uint32_t playerLevel, uint32_t victimLevel); // Hearthstone callback (single-player teleport) using HearthstoneCallback = std::function; @@ -680,7 +681,6 @@ private: void awardLocalXp(uint64_t victimGuid, uint32_t victimLevel); void levelUp(); static uint32_t xpForLevel(uint32_t level); - static uint32_t killXp(uint32_t playerLevel, uint32_t victimLevel); // ---- Single-player combat ---- bool singlePlayerMode_ = false;