mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: display detailed honor/arena/token costs for vendor items
Load ItemExtendedCost.dbc and show specific costs (e.g. "2000 Honor", "200 Arena", "30x Badge of Justice") instead of generic "[Tokens]" for vendor items with extended costs. Items with both gold and token costs now show both. Token item names are resolved from item info cache.
This commit is contained in:
parent
595ea466c2
commit
5230815353
2 changed files with 76 additions and 2 deletions
|
|
@ -423,6 +423,18 @@ private:
|
|||
bool spellIconDbLoaded_ = false;
|
||||
VkDescriptorSet getSpellIcon(uint32_t spellId, pipeline::AssetManager* am);
|
||||
|
||||
// ItemExtendedCost.dbc cache: extendedCostId -> cost details
|
||||
struct ExtendedCostEntry {
|
||||
uint32_t honorPoints = 0;
|
||||
uint32_t arenaPoints = 0;
|
||||
uint32_t itemId[5] = {};
|
||||
uint32_t itemCount[5] = {};
|
||||
};
|
||||
std::unordered_map<uint32_t, ExtendedCostEntry> extendedCostCache_;
|
||||
bool extendedCostDbLoaded_ = false;
|
||||
void loadExtendedCostDBC();
|
||||
std::string formatExtendedCost(uint32_t extendedCostId, game::GameHandler& gameHandler);
|
||||
|
||||
// Death Knight rune bar: client-predicted fill (0.0=depleted, 1.0=ready) for smooth animation
|
||||
float runeClientFill_[6] = {1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue