Migrating from DRData to DRList - wardz/DRList-1.0 GitHub Wiki

To Quickly Get It Working:

  1. Embed the lib and change your DRData = LibStub("DRData-1.0") to DRData = LibStub("DRList-1.0").
  2. Replace any usage of obsolete DRData:GetProviders() with DRList:GetSpells(). (Rarely used)
  3. 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 to DRList.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 a table instead of a string for spellIDs with shared DRs.
  • Always use DRList:GetResetTime(category) and DRList:NextDR(category) instead of hardcoded values, as durations can now differ by category and game expansion.