fix: populate item subclass names for TBC expansion

The TBC item query parser left subclassName empty, so TBC items showed
no weapon/armor type in tooltips or the character sheet (e.g., "Sword",
"Plate", "Shield" were all blank). The Classic and WotLK parsers
correctly map subClass IDs to names.

Fix: call getItemSubclassName() in the TBC parser, same as WotLK.
Expose getItemSubclassName() in the header (was static, now shared
across parser files).
This commit is contained in:
Kelsi 2026-03-22 20:30:08 -07:00
parent 7967878cd9
commit 3b4909a140
3 changed files with 3 additions and 2 deletions

View file

@ -2931,7 +2931,7 @@ network::Packet ItemQueryPacket::build(uint32_t entry, uint64_t guid) {
return packet;
}
static const char* getItemSubclassName(uint32_t itemClass, uint32_t subClass) {
const char* getItemSubclassName(uint32_t itemClass, uint32_t subClass) {
if (itemClass == 2) { // Weapon
switch (subClass) {
case 0: return "Axe"; case 1: return "Axe";