mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
GetSkillLineRank(skillLineID) returns the local player's curRank, maxRank, modifier for a SkillLine.dbc id, or nil if unlearned -- keyed by id directly instead of forcing addons to map id -> localized name and string-match GetSkillLineInfo's by-name, by-position walk. Resolves the id to the player's skill slot via FUN_SKILL_LINE_TO_SLOT, then reads the CGPlayer +0xE68 skill table (the storage Player::CanUseItem's require-skill gate already uses). GetSkillLineName(skillLineID) is the id -> localized name half (pure SkillLine.dbc read, learned or not). Both live in the existing Spell::SkillLine module; no new offsets. Verified: Enchanting(333) 171/225/15, Tailoring(197) 261/300/0, name(182)=Herbalism, unlearned line -> nil.