WoWInterface SVN LibSpellName2SID

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 178 to Rev 179
    Reverse comparison

Rev 178 → Rev 179

populator/branches/Classic/LibSpellName2SID-1.1-Classic-Populator/LibSpellName2SID-1.1-Populator.lua
2087,12 → 2087,18
tinsert(DEBUGmsgs[DBG_CurrentEvent], tostring(GetTime()).. ": Got: universalClassName (no validation needed) = ".. universalClassName);
-- GetNumSpecializations(...) does not exist in Classic, and all classes have 3 specs anyway
-- local ClassNumSpecs = GetNumSpecializations(false, false); -- Number of Specialisations
local ClassNumSpecs = 3;
local ClassNumSpecs = 3; -- Will tru the following line instead:
-- local ClassNumSpecs = GetNumTalentTabs():
print(AddonName.. ": ClassNumSpecs = ".. tostring(ClassNumSpecs));
tinsert(DEBUGmsgs[DBG_CurrentEvent], tostring(GetTime()).. ": Got: ClassNumSpecs (no validation needed) = ".. ClassNumSpecs);
-- Ordered list of Class specs' IDs and Names -- Do we still use this?
tinsert(DEBUGmsgs[DBG_CurrentEvent], tostring(GetTime()).. ": Order list of Class specs' IDs and Names: START");
-- GetSpecializationInfo(num) does not exist in Classic. FIX !
local specID, specName = GetSpecializationInfo(1);
-- local specID, specName = GetSpecializationInfo(1);
-- NB: Wowpedia note on the line bellow:
-- Return values id, description, and isUnlocked were added in Patch 4.0.1.
local specID, specName = GetTalentTabInfo(1);
print(AddonName.. ": specID, specName = ".. tostring(specID).. ", ".. tostring(specName));
tinsert(DEBUGmsgs[DBG_CurrentEvent], tostring(GetTime()).. ": Order list of Class specs' IDs and Names: END");
 
---- Check the tables' skeleton structure and build whatever may be missing ----
2182,7 → 2188,7
tinsert(DEBUGmsgs[DBG_CurrentEvent], tostring(GetTime()).. ": Create the ".. universalClassName.. " \'Specs\' tables: START");
-- print(AddonName.. ": Will now create the ".. universalClassName.. "'s \'Specs\' tables.");
for i = 1, ClassNumSpecs do
local specID, specName = GetSpecializationInfo(i);
local specID, specName = GetTalentTabInfo(i);
-- print(AddonName.. ": ".. i.. " = ".. specName.. " = ".. specID); -- For reference
if not METADATA_table[universalClassName].Specs then
METADATA_table[universalClassName].Specs = { [specName] = specID }; -- Reference