mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +00:00
feat: add GetEnchantInfo for enchantment name resolution
GetEnchantInfo(enchantId) looks up the enchantment name from SpellItemEnchantment.dbc (field 14). Returns the display name like "Crusader", "+22 Intellect", or "Mongoose" for a given enchant ID. Used by equipment comparison addons and tooltip addons to display enchantment names on equipped gear. The enchant ID comes from the item's ITEM_FIELD_ENCHANTMENT update field. Also adds getEnchantName() to GameHandler for C++ access.
This commit is contained in:
parent
922d6bc8f6
commit
b9a1b0244b
3 changed files with 28 additions and 0 deletions
|
|
@ -2243,6 +2243,7 @@ public:
|
|||
const std::string& getSpellRank(uint32_t spellId) const;
|
||||
/// Returns the tooltip/description text from Spell.dbc (empty if unknown or has no text).
|
||||
const std::string& getSpellDescription(uint32_t spellId) const;
|
||||
std::string getEnchantName(uint32_t enchantId) const;
|
||||
const std::string& getSkillLineName(uint32_t spellId) const;
|
||||
/// Returns the DispelType for a spell (0=none,1=magic,2=curse,3=disease,4=poison,5+=other)
|
||||
uint8_t getSpellDispelType(uint32_t spellId) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue