feat: track and display honor/arena points from update fields

Add PLAYER_FIELD_HONOR_CURRENCY and PLAYER_FIELD_ARENA_CURRENCY to the
update field system for WotLK (indices 1422/1423) and TBC (1505/1506).
Parse values from both CREATE_OBJECT and VALUES update paths, and show
them in the character Stats tab under a PvP Currency section.
This commit is contained in:
Kelsi 2026-03-20 04:36:30 -07:00
parent 0830215b31
commit f88d90ee88
6 changed files with 50 additions and 0 deletions

View file

@ -1249,6 +1249,22 @@ void InventoryScreen::renderCharacterScreen(game::GameHandler& gameHandler) {
ImGui::Text("%s", fmtTime(levelSec).c_str()); ImGui::NextColumn();
ImGui::Columns(1);
}
// PvP Currency (TBC/WotLK only)
uint32_t honor = gameHandler.getHonorPoints();
uint32_t arena = gameHandler.getArenaPoints();
if (honor > 0 || arena > 0) {
ImGui::Separator();
ImGui::TextDisabled("PvP Currency");
ImGui::Columns(2, "##pvpcurrency", false);
ImGui::SetColumnWidth(0, 130);
ImGui::Text("Honor Points:"); ImGui::NextColumn();
ImGui::TextColored(ImVec4(0.9f, 0.75f, 0.2f, 1.0f), "%u", honor); ImGui::NextColumn();
ImGui::Text("Arena Points:"); ImGui::NextColumn();
ImGui::TextColored(ImVec4(0.9f, 0.75f, 0.2f, 1.0f), "%u", arena); ImGui::NextColumn();
ImGui::Columns(1);
}
ImGui::EndTabItem();
}