mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
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:
parent
67e6c9a984
commit
1c3f2f4ae3
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue