feat: add HONOR_GAIN floating combat text for PvP honor gains

Show '+X Honor' floating text in gold when SMSG_PVP_CREDIT is received,
matching WoW's native behavior. Also add HONOR_GAIN to the combat log
panel for a complete record. Previously only a chat message was added.
This commit is contained in:
Kelsi 2026-03-17 14:38:57 -07:00
parent b6ea78dfab
commit 8b57e6fa45
3 changed files with 11 additions and 1 deletions

View file

@ -2168,6 +2168,8 @@ void GameHandler::handlePacket(network::Packet& packet) {
std::dec, " rank=", rank);
std::string msg = "You gain " + std::to_string(honor) + " honor points.";
addSystemChatMessage(msg);
if (honor > 0)
addCombatText(CombatTextEntry::HONOR_GAIN, static_cast<int32_t>(honor), 0, true);
if (pvpHonorCallback_) {
pvpHonorCallback_(honor, victimGuid, rank);
}