Show weapon damage/speed in item tooltips

- parse and cache item class/subclass, damage range, and attack delay from item query responses
- render weapon damage, speed, and DPS in the shared item-link tooltip
- render weapon damage, speed, and DPS in vendor hover tooltips
- keep armor and primary stat lines intact
This commit is contained in:
Kelsi 2026-02-18 03:46:03 -08:00
parent a100baff39
commit 1de2f4c8a0
3 changed files with 46 additions and 3 deletions

View file

@ -1408,11 +1408,16 @@ public:
struct ItemQueryResponseData {
uint32_t entry = 0;
std::string name;
uint32_t itemClass = 0;
uint32_t subClass = 0;
uint32_t displayInfoId = 0;
uint32_t quality = 0;
uint32_t inventoryType = 0;
int32_t maxStack = 1;
uint32_t containerSlots = 0;
float damageMin = 0.0f;
float damageMax = 0.0f;
uint32_t delayMs = 0;
int32_t armor = 0;
int32_t stamina = 0;
int32_t strength = 0;