feat: show exploration XP as floating combat text

Area discovery XP was only shown in the system chat log. Now it also
appears as a floating "+XP" number like kill XP, giving immediate
visual feedback when discovering new zones.
This commit is contained in:
Kelsi 2026-03-17 12:02:17 -07:00
parent 67e6c9a984
commit 1c3f2f4ae3

View file

@ -2002,6 +2002,8 @@ void GameHandler::handlePacket(network::Packet& packet) {
msg = buf;
}
addSystemChatMessage(msg);
addCombatText(CombatTextEntry::XP_GAIN,
static_cast<int32_t>(xpGained), 0, true);
// XP is updated via PLAYER_XP update fields from the server.
if (areaDiscoveryCallback_)
areaDiscoveryCallback_(areaName, xpGained);