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.
This commit is contained in:
Kelsi 2026-03-21 11:02:46 -07:00
parent 24e2069225
commit 1988e778c7

View file

@ -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;