From 1988e778c7656e9dc93f13274a86e84ad0c0de57 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sat, 21 Mar 2026 11:02:46 -0700 Subject: [PATCH] feat: fire CHAT_MSG_COMBAT_XP_GAIN on area exploration XP Fire CHAT_MSG_COMBAT_XP_GAIN from SMSG_EXPLORATION_EXPERIENCE when the player discovers a new area and gains exploration XP. Used by XP tracking addons to count all XP sources including discovery. --- src/game/game_handler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index fda63c81..035d738c 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -2078,6 +2078,8 @@ void GameHandler::handlePacket(network::Packet& packet) { // XP is updated via PLAYER_XP update fields from the server. if (areaDiscoveryCallback_) areaDiscoveryCallback_(areaName, xpGained); + if (addonEventCallback_) + addonEventCallback_("CHAT_MSG_COMBAT_XP_GAIN", {msg, std::to_string(xpGained)}); } } break;