Migrating from DRData to DRList - wardz/DRList-1.0 GitHub Wiki
To Quickly Get It Working:
- Embed the lib and change your
DRData = LibStub("DRData-1.0")
toDRData = LibStub("DRList-1.0")
. - Replace any usage of obsolete
DRData:GetProviders()
with DRList:GetSpells(). (Rarely used) - Replace any usage of obsolete
DRData:IterateProviders()
with DRList:IterateSpells(). (Rarely used)
Internal Notes:
- If you're referencing the lib's internal tables directly, you must now include the current expansion as an additional table subkey.
E.g:DRList.categoryNames.root
toDRList.categoryNames[DRList.gameExpansion].root
. The only exception for this is the spell list table. - Some functions and tables have been renamed, but their original names remain available as aliases for backward compatibility.
API Notes
DRList:IterateSpells()
will iterate through every single spell rank in Classic expansions. Check the spell names if you don't want duplicates.DRList:GetSpellCategory(x)
now has an optional second return value for spellIDs with shared DRs.DRList.spellList[spellID]
returns atable
instead of astring
for spellIDs with shared DRs.
- Always use
DRList:GetResetTime(category)
andDRList:NextDR(category)
instead of hardcoded values, as durations can now differ by category and game expansion.