mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-16 01:03:51 +00:00
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:
parent
7967878cd9
commit
3b4909a140
3 changed files with 3 additions and 2 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue