mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: show random suffix names in auction house item listings
Append suffix name from getRandomPropertyName() to auction browse results so items display as "Leggings of the Eagle" instead of just "Leggings" in the auction house search table. Uses the randomPropertyId field from the SMSG_AUCTION_LIST_RESULT packet data.
This commit is contained in:
parent
99f4ded3b5
commit
a13dfff9a1
1 changed files with 6 additions and 0 deletions
|
|
@ -22305,6 +22305,12 @@ void GameScreen::renderAuctionHouseWindow(game::GameHandler& gameHandler) {
|
|||
const auto& auction = results.auctions[i];
|
||||
auto* info = gameHandler.getItemInfo(auction.itemEntry);
|
||||
std::string name = info ? info->name : ("Item #" + std::to_string(auction.itemEntry));
|
||||
// Append random suffix name (e.g., "of the Eagle") if present
|
||||
if (auction.randomPropertyId != 0) {
|
||||
std::string suffix = gameHandler.getRandomPropertyName(
|
||||
static_cast<int32_t>(auction.randomPropertyId));
|
||||
if (!suffix.empty()) name += " " + suffix;
|
||||
}
|
||||
game::ItemQuality quality = info ? static_cast<game::ItemQuality>(info->quality) : game::ItemQuality::COMMON;
|
||||
ImVec4 qc = InventoryScreen::getQualityColor(quality);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue